Vim - movement Flashcards
move the cursor 1 word
w
move the cursor back 1 word
b
move the cursor to the end of a word
e
move to the previous end of word
ge
Move to the end of a line
$
Move to the first non-blank character of a line
^
Move to the first character on a line
0
or <Home>
search forward in the line for a single character ‘x’.
fx
search forward in the line for a single character ‘x’, but stop 1 character before the searched character.
tx
search forward in the line for a single character ‘x’, but stop 1 character before the searched character.
tx
repeat a single character search forwards
;
repeat a single character search backwards
,
Abort a single character search
f<Esc>
match parenthesis
%
move to line 33
33G
move to the start of a file
1G
or gg
move to the halfway mark in a file
50%
move to the first visible line
H
move to the middle visible line
M
move to the last visible line
L
see where you are in a file
CTRL-G
show line numbers
:set number
show the ruler
:set ruler
move the viewing window up half a screen
CTRL-u
move the viewing window down a screen
CTRL-d
scroll one line up
CTRL-e
scroll one line down
CTRL-y