keywords:
Bookmark and Share



Front Back
:x
exit saving the changes
:q
quit as long as there are no changes
ZZ
exit and save changes if any have been made
:q!
exit and ignore any changes
i
insert before the cursor
I
insert before the line
a
append after the cursor
A
append after the line
o
open a new line after current line
O
open a new line before the current line
r
replace one character
R
replace many characters
what direction does h move?
left
what direction does j move?
down
what direction does k move?
up
what direction does l move?
right
w
move to the next word
W
move to the next blank delimited word
b
move to the beginning of the word
B
move to the beginning of blank delimited word
e
move to the end of the word
E
move to the end of blank delimited word
(
move a sentence back
)
move a sentence forward
{
move a paragraph back
}
move a paragraph forward
0
move to the beginning of line
$
move to the endo of the line
1G
move to the first line of the file
G
move to the last line of the file
nG
move to the nth line of the file
:n
move to the nth line of the file
fc
move forward to c
Fc
move backward to c
H
move to top of screen
M
move to middle of screen
L
move to bottom of screen
x
delete character to the right of the cursor
X
delete character to the left of the cursor
D
delete to the end of the line
dd
delete current line
:d
delete current line
yy
yank the current line
:y
yank the current line
c
change to the end of the line
cc
change the whole line
p
put after the position or after the line
P
put before the position or before the line
/string
search forward for string
?string
search backward for string
x of y cards Next >|