Professional Documents
Culture Documents
Vim Cheat Sheet en
Vim Cheat Sheet en
:6 # e W % { % M 0 } 'x ^ fi b w
Ctrl-N
gd
Movement/Range
Character H zt h j k l
v V
Mode Commands
ESC C-[
C-v
*
k h j l Ctrl-B
b
B
e Line 0 ^ zz $
enter normal mode enter visual mode enter visual line mode enter visual block mode enter insert mode enter replace mode append append at end of line yank/copy (range) delete/cut (range) modify (range) delete/cut (character) delete to end of line modify to end of line paste after cursor join lines replace (character) indent indent leftward redo undo
General Commands
begin/end of line
[{
[{
]}
EX Commands
save(:wq save and quit) quit(:q! quit anyway) edit file x new window vim help jump to line #xx
]}
mx
Ctrl-W p :split Ctrl-W k
H top of win Ctrl-F M mid of win L btm of win L zb C-B gg mx G 'x C-F
Ctrl-W j Ctrl-W l
Search
Split window
:vsp :di!s
C-W p C-W w
fx
/xxx
to character x to right
to definition of current word
:sp
gd
search xxx
next/prev search result