To exit Vim type: <ESC> :q! <ENTER>
to trash all changes.
OR type: <ESC> :wq <ENTER>
to save the changes.
h
left
j
down
k
up
l
right
these commands can be prefixed with a number:
5l
will move 5 times to the right
3j
will move 5 times down
... and so on
w
go forward word by word
b
go backward word by word
e
jump to the end of a word
these commands can be prefixed with a number:
5w
move 5 words forward
... and so on
$
jump to the end of line
0
jump to the beggining of the line
^
jump the first non-empty character on the line
f+the char where we want to jump
jump to the next specific character on the line
F+the char where we want to jump
jump to the previous specific character on the line
)
move by one sentence down
(
move by one sentence up
}
move by one paragraph down
{
move by one paragraph up
x
deletes character
dw
deletes word
d$
deletes to the end of the line