|
:w
|
Save
|
|
:x
|
Save & Exit
|
|
:q
|
Exit if no changes made
|
|
:q!
|
Exit & discard any changes
|
|
h
|
Cursor left
|
|
j
|
Cursor down
|
|
k
|
Cursor up
|
|
l
|
Cursor right
|
|
w
|
Next Word
|
|
W
|
Next Blank delimited word
|
|
b
|
Start of word
|
|
B
|
Start of blank delimited work
|
|
e
|
End of word
|
|
E
|
End of blank delimited work
|
|
0
|
Beginning of line
|
|
$
|
End of line
|
|
1G
|
Start of file
|
|
G
|
End of file
|
|
:n
|
nth line
|
|
/string
|
Search forward for string
|
|
/?string
|
Search backwards for string
|
|
n
|
Go to next match
|
|
N
|
Go to previous match
|
|
:set ic
|
Ignore case while searching
|
|
set noic
|
Case-sensitive searching
|
|
*
|
Search for next instance of current word
|
|
#
|
Search for last instance of current word
|
|
i
|
Insert before cursor
|
|
a
|
Append after cursor
|
|
A
|
Append after line
|
|
o
|
Add new line after current line
|
|
O
|
Add new line before current line
|
|
r
|
Overwrite one character
|
|
R
|
Overwrite many characters
|
|
C
|
Rewrite the rest of line
|
|
cc
|
Rewrite the whole line
|
|
cw
|
Rewrite the word
|
|
yw
|
Copy word
|
|
yy
|
Copy line
|
|
p
|
Put copied line
|
|
x
|
Delete character to right of cursor
|
|
X
|
Delete character to left of cursor
|
|
D
|
Delete the rest of line
|
|
dd
|
Delete the line
|
|
dw
|
Delete the word
|
|
u
|
Undo last change
|
|
U
|
Undo all changes to line
|
|
J
|
Join lines
|
|
nJ
|
Join next n lines
|
|
.
|
Repeat last command
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.