vim Flashcards
Move to end of line
$
Move to beginning of line
Move to beginning of file
1G or gg
Move to end of file
G
Move to line n
:n
or
nG
Move page forward
Ctrl-F
Move page backward
Ctrl-B
Scroll up (half a screen)
Ctrl-U
Scroll down (half a screen)
Ctrl-D
Show current position and file info
Ctrl-G
Move one character up
↑ or k
Move one character down
↓ or j
Move one character left
← or h
Move one character right
→ or l
Move one word forward
w
Move one word backward
b
Move to end of next word
e
Insert at cursor
Insert at beginning of line
Append after cursor
AAppend at end of line
i
I
a
A
Insert blank line below current
Insert blank line above current
o
O
Append at end of word
ea
Exit Insert Mode
Esc
Replace a single character
r
Join line below to current line
J
Undo last change
u
Indent current line
> >
Unindent current line
«
Indent current line in Insert Mode
Ctrl-T
Unindent current line in Insert Mode
Ctrl-D