Show Menu
Cheatography

VIM Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Help

:help string
Help for given string
:helpgrep pattern
Help for given regents pattern
:cnext
Next occurance
:cnfile
Next file occurance
:cprev
Previous occurance
:cpfile
Previous file occurance

Scripting

:ab
Sets abbrev­iation for insert mode and commands
:cabbrev
Sets abbrev­iation for command line only
:iabbrev
Sets abbrev­iation for insert mode only
:ab <ex­pr> foo vimscr­ipt()
Calls any vimscript command as expansion of foo
<CT­RL-­]>
Expands abbrev­iation w/out non keyword character