colon right quit

June 23rd, 2007

For the vim users out there… are you tired of hitting Esc just to save and exit? Add this tidbit to your .vimrc:

inoremap :wq <ESC>:wq<CR>

This will let you type ‘:wq’ to write and quit while still in insert mode.

Leave a Reply