开发者

Keybindings based on delay in vim

I would want vim to leave insert mode if the last key pressed is a } and no other key has been pressed for a while. Is this poss开发者_高级运维ible?


Adding a :timer command is still on the Vim TODO list.

If you want to vote for Vim features, you have to become a registered Vim user or sponsor. See the sponsor page.


Not sure it's worth it, but I think you should be able to do a workaround with info linked below. Notice that the particular keycodes in main tip need to be changed in latest versions of Vim:

http://vim.wikia.com/wiki/Timer_to_execute_commands_periodically

http://groups.google.com/group/vim_use/browse_thread/thread/8c535e5cf2b35f63/e40998ff7f2d909b?lnk=gst&q=yakov&pli=1

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜