Wednesday, May 24, 2006

prevent vim from going to replace mode

Simpliest trick on the block. Took me long time to figure out.


imap <Insert> <Nop>

And that's it. Now regardless of how many times you press Insert in command mode - or whether in insert mode already - you will be/remain in insert mode.

Of course, you still can go to replace mode by pressing R in command mode.

No comments: