Moving Around Quickly Flashcards
Scroll forward one screen
Control-F
Scroll backward one screen
Control-B
Scroll forward half screen (down)
Control-D
Scroll backward half screen (up)
Control-U
Move current line to top of screen and scroll
z (enter)
Move current line to center of screen and scroll
z.
Move current line to bottom of screen and scroll
z-
Redraw the screen
Control-L
Move to home, the top line on the screen
H
Move to the middle line on screen
M
Move to the last line on screen
L
Move to n lines below top line
nH
Move to n lines above last line
nL
Move to the first character of next line
(enter) or +
Move to the first character of previous line
-
Move to the first nonblank character of current line
Move to character n of current line
n|
Move to end of word counting punctuation
e
Move to end of word ignoring punctuation
E
Move to beginning of current sentence
(
Move to beginning of next sentence
)
Move to beginning of current paragraph
{
Move to beginning of next paragraph
}
Move to beginning of current section
[[
Move to beginning of next section
]]
Move ahead 3 sentences
3)
Search forward
/searchtext(enter)
Search backward
?searchtext(enter)
Repeat search same direction
n
Repeat search opposite direction
N
Repeat search forward
/(enter)
Repeat search backward
?(enter)
Disable search wrapping
:set nowrapscan
Enable search wrapping
:set wrapscan
Delete from before the cursor up to and through the word “move”
d?move
Find next occurrence of x in the line, where x is a character
fx
Find previous occurrence of x in the line, where x is a character
Fx
Find character before next occurrence of x in the line
tx
Find character after previous occurrence of x in the line.
Tx
Repeat previous find command in same direction
;
Repeat previous find in opposite direction
’ (apostrophe)
Display current line number
Control-G
Move cursor to the beginning of line 44
44G