Vimtutor Flashcards
Direction Controls
h (left), j (down), k (up), l (right)
Delete any character under the cursor
x
Insert text
i
Append text
a
Delete word
dw
Delete to the end of a line
d$
Delete operator
d
Delete motions
w - start of the next word excluding the first character
e - to the end of the current word including the last character
$ - to the end of the line including the last character
Moving through a line
nw - n words forward
ne - to move the cursor to the end of the nth word forward
0 - moves to the start of the line
Delete an entire line
dd
Undo last command
u
Redo last command
CTRL-r
Put command
After deleting, press p to paste
Replace
r and then whatever letter you want to replace it with
Change
c
ce - until the end of a word
Show location and file status
CTRL-g
Move to bottom of file
G