Vim Cheat Sheet en
Vim Cheat Sheet en
Vim Cheat Sheet en
Character
H
:6
#
zt
Ctrl-B
l
j
next/prev word
next/prev WORD
end of word/WORD
begin/end of line
Line
%
0
^
M
zz
[{
fi
}
Paragraph, Block
{
[{
]}
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
ESC
fx
to character x to right
gd
to definition of current
word
C-[
v
V
C-v
i
R
a
A
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
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
/xxx
search xxx
C-W p
next/prev search
result
C-W w
to next window