Vim Key Mappings

One of the things I always found awkward about Vim is stretching for the ESC key to get out of insert mode.

Here's a little trick that I like to add into my .vimrc file:

CODE:
  1. map  <space> i
  2. imap <S-space> <esc>

This will let you escape insert mode by pressing shift and space and enter insert mode by pressing space.

/* Pete Graham */

Post a Comment

Your email is never published nor shared. Required fields are marked *