Navigation Flashcards
Move Up
k
Move Down
J
Move Right
l
Move Left
h
Move to end of the next word
e
Move to start of the next word
w
Move to the beginning of the line
^ or 0
Move to the end of the line
$
Page Up
Ctrl + b
Page Down
Ctrl + f
Move to end of file
G or :$
Move to start of file
gg or :1
Motion: end of word without whitespace
e
Motions: end of word with whitespace
w
Motion: Start of word with whitespace
b
Move cursor to top line in Window
H
Move cursor to bottom line in Window
L
Move current line the cursor is on to top of the window
zt
Move current line the cursor is on to bottom of the window
zb
Copy to line register
“xyy (where x is the register to copy to)
Paste a register
“xp (where x is the register to paste)
Add a mark
mq
Go to next mark
‘q
Start recording a macro
qx (where x is the register to copy to)
End recording a macro
q
Play a macro
@x (where x is the register where the macro is stored)
Display assci value of character
ga
Move backwards by one word
b
Open a new line below
o
Open a new line above
O
Replace more than one character
R
Copy/Yank
y
Copy/Yank one word
yw
Indent in visual mode
>
Unident in visual mode
Insert comment into .vimrc file
”.
For example “.Adds a break between lines and command area
Move to top line
:1
Move to bottom line
:$
Move to any line
:n where n is the line number
Find the next instance of the word the cursor is on
* to go forward # to go backward
Open a file from a link within that file
gf