Alphabetical List of Keys in Command Mode

For brevity, control characters are marked by ^.

CommandAction
a Append text after cursor.
A Append text at end-of-line.
^A Search for next occurrence of word under cursor.
b Back up to beginning of word in current line.
B Back up one word, treating punctuation marks as words.
^B Scroll backward one window.
c Change text up to target of next movement command.
C Change to end of current line.
^C End insert mode; interrupts a long operation.
d Delete up to target of next movement command.
D Delete to end of current line.
^D

Scroll down half-window; in insert mode, unindent to shiftwidth if autoindent is set.

e Move to end of word.
E Move to end of word, treating punctuation as part of word.
^E Show one more line at bottom of window.
f Find next character typed forward on current line.
F Find next character typed backward on current line.
^F Scroll forward one window.
g Unused.
G Go to specified line or end-of-file.
^G Print information about file on status line.
h Left arrow cursor key.
H Move cursor to home position.
^H Left arrow cursor key; Backspace key in insert mode.
i Insert text before cursor.
I Insert text before first nonblank character on line.
^I

Unused in command mode; in insert mode, same as Tab key.

j Down arrow cursor key.
J Join previous line to current line.
^J Down arrow cursor key; in insert mode, move down a line.
k Up arrow cursor key.
K Unused.
^K Unused.
l Right arrow cursor key.
L Move cursor to last position ...

Get Linux in a Nutshell, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.