Monday, May 16, 2011

Map F1 to Esc in Vim

If you are like me, you press F1 key instead of Esc quite often.  It can be especially annoying when using Vim.  Add the following line to your .vimrc:

imap <F1> <Esc>

Now pressing F1 is treated as if you pressed Esc.  When you really need help you can use :help command instead.

No comments:

Post a Comment