Vim Visual Cheat Sheet
Character
H
:6
#
zt
word, WORD(all non-blank ch)
Ctrl-B
l
j
next/prev word
next/prev WORD
end of word/WORD
begin/end of line
Line
%
0
^
M
zz
[{
fi
}
begin (non-blank) of line
Paragraph, Block
{
prev/ next paragraph
[{
]}
begin/end of block
% matching parenthesis
'x
Ctrl-N
Window, File
gd
H top of win
]}
Ctrl-F
mx
Ctrl-W k
Ctrl-W p
:split
M mid of win
L btm of win
zb
Ctrl-W j
C-B
C-F
scroll to
zt top
scroll to
zz middle
to
zb scroll
bottom
prev/next page
gg
begin/end of file
mx
'x
mark/jump to x
:vsplit
:diffsplit
Created by vgod, Dec. 2009
ESC
find current word
backward/forward
fx
to character x to right
gd
to definition of current
word
C-[
v
V
C-v
i
R
a
A
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
General Commands
y
d
c
x
D
C
p
J
r
>
<
.
u
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
EX Commands
:w
:q
:e x
:n
:h
:xx
save(:wq save and quit)
quit(:q! quit anyway)
edit file x
new window
vim help
jump to line #xx
Auto-completion [insert mode]
C-N
Search
Ctrl-W l
/fooCl
Mode Commands
Movement/Range
auto-complete
next/prev keyword
auto-complete file
name
C-P
C-X C-F
Split window
:vsp
:sp
vertically/horizontally
split
:diffs
split and diff
/xxx
search xxx
C-W p
to last accessed window
next/prev search
result
C-W w
to next window