VimLondon, 28th May 2013
Dave Aitken (@actionshrimp)
Esc, C-[, C-c*
*breaks abbreviations, InsertLeave autocmd
:inoremap <C-c> <Esc>
e.g. :set textwidth=80
goes well with :set colorcolumn=80
gw motion
gwgw/gww
gwap
gggwG
e.g. :iabbr teh the
Auto-fix common typos: teh -> the
:abbr, :iabbr
Bonus: These also work in the shell!
But beware the curse of C-w...
C-r <register name>
/, : (although often better to use q: and q/)
= expression register:
C-n / C-p - next/prev word completion
C-l - line completion, (suprisingly useful, smart about tabs)
prefix the thing you're looking for with 'i_'
:help i_^w
(this also works for other modes, e.g. v_ for visual)
also... :help Insert-mode