Vim Keystrokes – Mosky’s Notes
Normal Mode

Moving

Left | Up
Right | Down
Character
h
l
Vim Word
b
<S-Left>*
e

ge
w
<S-Right>*
Non-Blank Word
B
<C-Left>*
E

gE
W
<C-Right>*
Within Line
^
$
<End>*

0
<Home>*

Line
k
j
Page
<S-Up>*
<S-Down>*
Within Document
gg
<C-Home>*
G
<C-End>*
Search a Character
T{char}
t{char}

F{char}
f{char}

,
;
Search a Word
#
*

gd


gD

Search
?
/

N
n
Mark
m{mark}
`{mark}
'{mark}


:marks
Tag
CTRL-T
:pop
CTRL-]
:tag {name}
:tag


g]
:tselect {name}
:tselect


:tags
Jump
CTRL-O
CTRL-I
<Tab>


:jumps
  • *: Also works in the insert mode; note <Home> & `0` and <C-End> & `G` are similar but not the same.
  • `b` in Vim is similar to <M-b> in Bash.
  • `e` in Vim is similar to <M-f> in Bash.
  • Try <Fn-Left> for <Home> on Mac.
  • Try <Fn-Right> for <End> on Mac.
  • For tags, try `$ ctags -R`.