Hobblin
Hobblin

Reputation: 925

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 possible?

Upvotes: 1

Views: 190

Answers (2)

Herbert Sitz
Herbert Sitz

Reputation: 22226

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

Upvotes: 1

johnsyweb
johnsyweb

Reputation: 141780

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.

Upvotes: 1

Related Questions