Miscellaneous Commands

Command

Action

<

Shift text described by following motion command left by one shiftwidth. {vim}

>

Shift text described by following motion command right by one shiftwidth. {vim}

<<

Shift line left one shift width (default is eight spaces).

>>

Shift line right one shift width (default is eight spaces).

>}

Shift right to end of paragraph.

<%

Shift left until matching parenthesis, brace, or bracket. (Cursor must be on the matching symbol.)

= =

Indent line in C-style, or using program specified in equalprg option. {vim}

g

Start many multiple character commands in vim.

K

Look up word under cursor in manpages (or program defined in keywordprg). {vim}

^O

Return to previous jump. {vim}

q

Record keystrokes. {vim}

^Q

Same as ^V. {vim} (On some terminals, resume data flow.)

^T

Return to the previous location in the tag stack. (vim)

^]

Perform a tag lookup on the text under the cursor.

^\

Enter ex line-editing mode.

^^

(Caret key with Ctrl key pressed) Return to previously edited file.

Get Linux in a Nutshell, 6th 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.