You are on page 1of 1

d delete navigation y copy/paste

w/b fwd/bwd word


W/B fwd/bwd full word
e/E end of word
fx fwd. to char. x
( start of sentence
) end of sentence
0/$ start/end of line
{ start of paragraph
} end of paragraph
/ab search fwd to ab
ma mark position as a
`a return to pos. a
C-b/f Page up/down
Hello there! Vim is a modern version of Vi, the venerable Unix text
editor. Here is a cheat sheet for Vim. This line ends here.
So. This is some silly samp;le text to demo navigation. In Vim.
A new line.
w
e
E
W
2W
fn
)
$
b
}
(
tV
0
Combine navigation with commands to do powerful things
A

B
a
s
i
c

V
i
m

C
h
e
a
t

S
h
e
e
t
S
o
u
r
c
e
:

h
t
t
p
:
/
/
c
o
d
e
.
a
h
r
e
n
.
o
r
g
/
L
i
c
e
n
s
e
:

h
t
t
p
:
/
/
c
r
e
a
t
i
v
e
c
o
m
m
o
n
s
.
o
r
g
/
l
i
c
e
n
s
e
s
/
b
y
-
s
a
/
3
.
0
/
Vim Modes
Command Line Mode
w save le
q quit vim
e edit new le
Write/Insert Mode
mode to enter text
Different sets of actions can
be performed in each mode
cursor position
:
esc
i,o,a esc
Command Mode
navigation/modication
T
h
i
s

c
o
m
m
a
n
d
moves
cursor
here
c change
cw change word
cW change full word
ce chg to word end
cfx chg to char. x
c( chg to sent. start
c) chg to sent. end
... so on ...
cc change line
r repl char @ cursor
R replace multiple
~ chg case @ cursor
c`a chg to pos. a
dw delete word
dW delete full word
de del to word end
dfx del to char. x
d( del to sent. start
d) del to sent. end
... so on ...
dd delete line
x del char @ cursor
D del to end of line
... so on ...
yw yank/copy word
yy yank/copy line
p
paste yanked or
deleted text
miscellaneous
u undo
C-r redo
J join lines
C-x is short for Ctrl-x

You might also like