Dummkopf's guide to vim
Hal Burgiss
hal at burgiss.net
Sat Sep 13 21:17:49 UTC 2008
On Sat, Sep 13, 2008 at 07:40:35PM +0200, Florian Diesch wrote:
> > This is IMOHO stupid. It should start in edit mode because that is
I missed the first part of this. If it hasn't been mentioned all the
power of vim is configurable. So starting in insertmode is easy:
echo set insertmode >> ~/.vimrc
Also, handy keyboard mappings for exiting, no matter what mode you are
in:
" F3, exit w/o saving ...
nmap <F3> q!
map! <F3> ^L:q!<CR>
map <F3> :q!<CR>
vmap <F3> <ESC>^O:q!
" F4, save and then exit
map! <F4> ^L:wq<CR>
map <F4> :wq<CR>
vmap <F4> <ESC>^O:wq<CR>
--
Hal
More information about the ubuntu-users
mailing list