Miscellaneous Commands

Command

Action

<

Shift line left to position indicated by following movement command.

>

Shift line right to position indicated by following movement command.

<<

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, bracket, etc. (Cursor must be on the matching symbol.)

=

Indent line in C-style, or using program specified in equalprg option. (vim)

K

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

^[

Abort command or end input mode.

^]

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 Mac OS X Panther in a Nutshell, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.