home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / mac / vim55rt.sit / runtime / doc / index.txt < prev    next >
Encoding:
Text File  |  1999-09-25  |  51.3 KB  |  1,206 lines  |  [TEXT/MPS ]

  1. *index.txt*     For Vim version 5.5.  Last change: 1999 Sep 14
  2.  
  3.  
  4.           VIM REFERENCE MANUAL    by Bram Moolenaar
  5.  
  6.  
  7. This file contains a list of all commands for each mode, with a tag and a
  8. short description.  The lists are sorted on ASCII value.
  9.  
  10. Tip: When looking for certain functionality, use a search command.  E.g.,
  11. to look for deleting something, use: "/delete".
  12.  
  13. 1. Insert mode                |insert-index|
  14. 2. Normal mode                |normal-index|
  15.    2.1. Text objects            |objects|
  16.    2.2. Window commands            |CTRL-W|
  17.    2.3. Square bracket commands        |[|
  18.    2.4. Commands starting with 'g'    |g|
  19. 3. Visual mode                |visual-index|
  20. 4. Command-line editing            |ex-edit-index|
  21. 5. EX commands                |ex-cmd-index|
  22.  
  23. For an overview of options see help.txt |option-list|.
  24. For a complete description of each option see options.txt |options|.
  25. For a complete listing of all help items see |help-tags|.
  26.  
  27. ==============================================================================
  28. 1. Insert mode                        *insert-index*
  29.  
  30. tag        char        action    ~
  31. -----------------------------------------------------------------------
  32. |i_CTRL-@|    CTRL-@        insert previously inserted text and stop
  33.                 insert
  34. |i_CTRL-A|    CTRL-A        insert previously inserted text
  35.         CTRL-B        not used |i_CTRL-B-gone|
  36. |i_CTRL-C|    CTRL-C        quit insert mode, without checking for
  37.                 abbreviation, unless 'insertmode' set.
  38. |i_CTRL-D|    CTRL-D        delete one shiftwidth of indent in the current
  39.                 line
  40. |i_CTRL-E|    CTRL-E        insert the character which is below the cursor
  41.         CTRL-F        not used
  42.         CTRL-G        reserved for future expansion
  43. |i_<BS>|    <BS>        delete character before the cursor
  44. |i_digraph|    {char1}<BS>{char2}
  45.                 enter digraph (only when 'digraph' option set)
  46. |i_CTRL-H|    CTRL-H        same as <BS>
  47. |i_<Tab>|    <Tab>        insert a <Tab> character
  48. |i_CTRL-I|    CTRL-I        same as <Tab>
  49. |i_<NL>|    <NL>        same as <CR>
  50. |i_CTRL-J|    CTRL-J        same as <CR>
  51. |i_CTRL-K|    CTRL-K {char1} {char2}
  52.                 enter digraph
  53. |i_CTRL-L|    CTRL-L        when 'insertmode' set: Leave Insert mode
  54. |i_<CR>|    <CR>        begin new line
  55. |i_CTRL-M|    CTRL-M        same as <CR>
  56. |i_CTRL-N|    CTRL-N        find next match for keyword in front of the
  57.                 cursor
  58. |i_CTRL-O|    CTRL-O        execute a single command and return to insert
  59.                 mode
  60. |i_CTRL-P|    CTRL-P        find previous match for keyword in front of
  61.                 the cursor
  62. |i_CTRL-Q|    CTRL-Q        same as CTRL-V (used for terminal control flow)
  63. |i_CTRL-R|    CTRL-R {0-9a-z"%#:=}
  64.                 insert the contents of a register
  65. |i_CTRL-R_CTRL-R| CTRL-R CTRL-R {0-9a-z"%#:=}
  66.                 insert the contents of a register literally
  67. |i_CTRL-R_CTRL-O| CTRL-R CTRL-O {0-9a-z"%#:=}
  68.                 insert the contents of a register literally
  69.                 and don't auto-indent
  70. |i_CTRL-R_CTRL-P| CTRL-R CTRL-P {0-9a-z"%#:=}
  71.                 insert the contents of a register literally
  72.                 and fix indent.
  73.         CTRL-S        (used for terminal control flow)
  74. |i_CTRL-T|    CTRL-T        insert one shiftwidth of indent in current
  75.                 line
  76. |i_CTRL-U|    CTRL-U        delete all entered characters in the current
  77.                 line
  78. |i_CTRL-V|    CTRL-V {char}    insert next non-digit literally
  79. |i_CTRL-V_digit| CTRL-V {number} insert three digit decimal number as a single
  80.                 byte.
  81. |i_CTRL-W|    CTRL-W        delete word before the cursor
  82. |i_CTRL-X|    CTRL-X {mode}    enter CTRL-X sub mode, see below
  83. |i_CTRL-Y|    CTRL-Y        insert the character which is above the cursor
  84. |i_CTRL-Z|    CTRL-Z        when 'insertmode' set: suspend Vim
  85. |i_<Esc>|    <Esc>        end insert mode (unless 'insertmode' set)
  86. |i_CTRL-[|    CTRL-[        same as <Esc>
  87. |i_CTRL-\_CTRL-N| CTRL-\ CTRL-N     go to Normal mode
  88.         CTRL-\ a - z    reserved for extensions
  89.         CTRL-\ others    not used
  90. |i_CTRL-]|    CTRL-]        trigger abbreviation
  91.         CTRL-^        not used
  92. |i_CTRL-_|    CTRL-_        When 'allowrevins' set: change language
  93.                 (Hebrew, Farsi) {only when compiled with
  94.                 +rightleft feature}
  95.  
  96.         <Space> to '~'    not used, except '0' and '^' followed by
  97.                 CTRL-D
  98.  
  99. |i_0_CTRL-D|    0 CTRL-D    delete all indent in the current line
  100. |i_^_CTRL-D|    ^ CTRL-D    delete all indent in the current line, restore
  101.                 it in the next line
  102.  
  103. |i_<Del>|    <Del>        delete character under the cursor
  104.  
  105.         Meta characters (0x80 to 0xff, 128 to 255)
  106.                 not used
  107.  
  108. |i_<Left>|    <Left>        cursor one character left
  109. |i_<S-Left>|    <S-Left>    cursor one word left
  110. |i_<C-Left>|    <C-Left>    cursor one word left
  111. |i_<Right>|    <Right>        cursor one character right
  112. |i_<S-Right>|    <S-Right>    cursor one word right
  113. |i_<C-Right>|    <C-Right>    cursor one word right
  114. |i_<Up>|    <Up>        cursor one line up
  115. |i_<S-Up>|    <S-Up>        same as <PageUp>
  116. |i_<Down>|    <Down>        cursor one line down
  117. |i_<S-Down>|    <S-Down>    same as <PageDown>
  118. |i_<Home>|    <Home>        cursor to start of line
  119. |i_<C-Home>|    <C-Home>    cursor to start of file
  120. |i_<End>|    <End>        cursor past end of line
  121. |i_<C-End>|    <C-End>        cursor past end of file
  122. |i_<PageUp>|    <PageUp>    one screenfull backward
  123. |i_<PageDown>|    <PageDown>    one screenfull forward
  124. |i_<F1>|    <F1>        same as <Help>
  125. |i_<Help>|    <Help>        stop insert mode and display help window
  126. |i_<Insert>|    <Insert>    toggle Insert/Replace mode
  127. |i_<LeftMouse>|    <LeftMouse>    cursor at mouse click
  128. |i_<MouseDown>|    <MouseDown>    scroll three lines downwards
  129. |i_<S-MouseDown>| <S-MouseDown>    scroll a full page downwards
  130. |i_<MouseUp>|    <MouseUp>    scroll three lines upwards
  131. |i_<S-MouseUp>|    <S-MouseUp>    scroll a full page upwards
  132.  
  133. commands in CTRL-X submode
  134.  
  135. |i_CTRL-X_CTRL-D|    CTRL-X CTRL-D    complete defined identifiers
  136. |i_CTRL-X_CTRL-E|    CTRL-X CTRL-E    scroll up
  137. |i_CTRL-X_CTRL-F|    CTRL-X CTRL-F    complete file names
  138. |i_CTRL-X_CTRL-I|    CTRL-X CTRL-I    complete identifiers
  139. |i_CTRL-X_CTRL-K|    CTRL-X CTRL-K    complete identifiers from dictionary
  140. |i_CTRL-X_CTRL-L|    CTRL-X CTRL-L    complete whole lines
  141. |i_CTRL-X_CTRL-L|    CTRL-X CTRL-N    next completion
  142. |i_CTRL-X_CTRL-L|    CTRL-X CTRL-P    previous completion
  143. |i_CTRL-X_CTRL-Y|    CTRL-X CTRL-Y    scroll down
  144. |i_CTRL-X_CTRL-]|    CTRL-X CTRL-]    complete tags
  145. {not available when compiled without the +insert_expand feature}
  146.  
  147. ==============================================================================
  148. 2. Normal mode                        *normal-index*
  149.  
  150. CHAR     any non-blank character
  151. WORD     any sequences of non-blank characters
  152. N     a number entered before the command
  153. {motion} a cursor movement command
  154. Nmove     the text that is moved over with a {motion}
  155. SECTION     a section that possibly starts with '}' instead of '{'
  156.  
  157. note: 1 = cursor movement command; 2 = can be undone/redone
  158.  
  159. tag        char          note action in Normal mode    ~
  160. ------------------------------------------------------------------------------
  161.         CTRL-@           not used
  162. |CTRL-A|    CTRL-A        2  add N to number at/after cursor
  163. |CTRL-B|    CTRL-B        1  scroll N screens Backwards
  164. |CTRL-C|    CTRL-C           interrupt current (search) command
  165. |CTRL-D|    CTRL-D           scroll Down N lines (default: half a screen)
  166. |CTRL-E|    CTRL-E           scroll N lines upwards (N lines Extra)
  167. |CTRL-F|    CTRL-F        1  scroll N screens Forward
  168. |CTRL-G|    CTRL-G           display current file name and position
  169. |<BS>|        <BS>        1  same as "h"
  170. |CTRL-H|    CTRL-H        1  same as "h"
  171. |<Tab>|        <Tab>        1  go to N newer entry in jump list
  172. |CTRL-I|    CTRL-I        1  same as <Tab>
  173. |<NL>|        <NL>        1  same as "j"
  174. |CTRL-J|    CTRL-J        1  same as "j"
  175.         CTRL-K           not used
  176. |CTRL-L|    CTRL-L           redraw screen
  177. |<CR>|        <CR>        1  cursor to the first CHAR N lines lower
  178. |CTRL-M|    CTRL-M>        1  same as <CR>
  179. |CTRL-N|    CTRL-N        1  same as "j"
  180. |CTRL-O|    CTRL-O        1  go to N older entry in jump list
  181. |CTRL-P|    CTRL-P        1  cursor N lines upward
  182.         CTRL-Q           (used for terminal control flow)
  183. |CTRL-R|    CTRL-R        2  redo changes which were undone with 'u'
  184.         CTRL-S           (used for terminal control flow)
  185. |CTRL-T|    CTRL-T           jump to N older Tag in tag list
  186. |CTRL-U|    CTRL-U           scroll N lines Upwards (default: half a
  187.                    screen)
  188. |CTRL-V|    CTRL-V           start blockwise Visual mode
  189. |CTRL-W|    CTRL-W {char}       window commands, see |CTRL-W|
  190. |CTRL-X|    CTRL-X        2  subtract N from number at/after cursor
  191. |CTRL-Y|    CTRL-Y           scroll N lines downwards
  192. |CTRL-Z|    CTRL-Z           suspend program (or start new shell)
  193.         CTRL-[ <Esc>       not used
  194. |CTRL-\_CTRL-N| CTRL-\ CTRL-N       go to Normal mode (no-op)
  195.         CTRL-\ a - z       reserved for extensions
  196.         CTRL-\ others      not used
  197. |CTRL-]|    CTRL-]           :ta to ident under cursor
  198. |CTRL-^|    CTRL-^           edit Nth alternate file (equivalent to
  199.                    ":e #N")
  200.         CTRL-_           not used
  201.  
  202. |<Space>|    <Space>        1  same as "l"
  203. |!|        !{motion}{filter}
  204.                 2  filter Nmove text through the {filter}
  205.                    command
  206. |!!|        !!{filter}    2  filter N lines through the {filter} command
  207. |quote|        "{a-zA-Z0-9.%#:-"}  use buffer {a-zA-Z0-9.%#:-"} for next
  208.                    delete, yank or put (upper case to append)
  209.                    ({.%#:} only work with put)
  210. |#|        #        1  search backward for the Nth occurrence of
  211.                    the ident under the cursor
  212. |$|        $        1  cursor to the end of Nth next line
  213. |%|        %        1  find the next (curly/square) bracket on
  214.                    this line and go to its match, or go to
  215.                    matching comment bracket, or go to matching
  216.                    preprocessor directive.
  217. |N%|        {count}%    1  go to N percentage in the file
  218. |&|        &        2  repeat last :s
  219. |'|        '{a-zA-Z0-9}    1  cursor to the first CHAR on the line with
  220.                    mark {a-zA-Z0-9}
  221. |''|        ''        1  cursor to the first CHAR of the line where
  222.                    the cursor was before the latest jump.
  223. |'<|        '<        1  cursor to the first CHAR of the line where
  224.                    highlighted area starts/started in the
  225.                    current buffer.
  226. |'>|        '>        1  cursor to the first CHAR of the line where
  227.                    highlighted area ends/ended in the current
  228.                    buffer.
  229. |'[|        '[        1  cursor to the first CHAR on the line of the
  230.                    start of last operated text or start of
  231.                    putted text
  232. |']|        ']        1  cursor to the first CHAR on the line of the
  233.                    end of last operated text or end of putted
  234.                    text
  235. |(|        (        1  cursor N sentences backward
  236. |)|        )        1  cursor N sentences forward
  237. |star|        *        1  search forward for the Nth occurrence of
  238.                    the ident under the cursor
  239. |+|        +        1  cursor to the first CHAR N lines lower
  240. |,|        ,        1  repeat latest f, t, F or T in opposite
  241.                    direction N times
  242. |-|        -        1  cursor to the first CHAR N lines higher
  243. |.|        .        2  repeat last change with count replaced with
  244.                    N
  245. |/|        /{pattern}<CR>    1  search forward for the Nth occurrence of
  246.                    {pattern}
  247. |/<CR>|        /<CR>        1  search forward for {pattern} of last search
  248. |count|        0        1  cursor to the first char of the line
  249. |count|        1           prepend to command to give a count
  250. |count|        2            "
  251. |count|        3            "
  252. |count|        4            "
  253. |count|        5            "
  254. |count|        6            "
  255. |count|        7            "
  256. |count|        8            "
  257. |count|        9            "
  258. |:|        :           start entering an Ex command
  259. |N:|        {count}:       start entering an Ex command with range
  260.                    from current line to N lines down
  261. |;|        ;        1  repeat latest f, t, F or T N times
  262. |<|        <{motion}    2  shift Nmove lines one 'shiftwidth'
  263.                    leftwards
  264. |<<|        <<        2  shift N lines one 'shiftwidth' leftwards
  265. |=|        ={motion}    2  filter Nmove lines through "indent"
  266. |==|        ==        2  filter N lines through "indent"
  267. |>|        >{motion}    2  shift Nmove lines one 'shiftwidth'
  268.                    rightwards
  269. |>>|        >>        2  shift N lines one 'shiftwidth' rightwards
  270. |?|        ?{pattern}<CR>    1  search backward for the Nth previous
  271.                    occurrence of {pattern}
  272. |?<CR>|        ?<CR>        1  search backward for {pattern} of last search
  273. |@|        @{a-z}        2  execute the contents of named buffer {a-z}
  274.                    N times
  275. |@:|        @:           repeat the previous ":" command N times
  276. |@@|        @@        2  repeat the previous @{a-z} N times
  277. |A|        A        2  append text after the end of the line N times
  278. |B|        B        1  cursor N WORDS backward
  279. |C|        ["x]C        2  change from the cursor position to the end
  280.                    of the line, and N-1 more lines [into
  281.                    buffer x]; synonym for "c$"
  282. |D|        ["x]D        2  delete the characters under the cursor
  283.                    until the end of the line and N-1 more
  284.                    lines [into buffer x]; synonym for "d$"
  285. |E|        E        1  cursor forward to the end of WORD N
  286. |F|        F{char}        1  cursor to the Nth occurrence of {char} to
  287.                    the left
  288. |G|        G        1  cursor to line N, default last line
  289. |H|        H        1  cursor to line N from top of screen
  290. |I|        I        2  insert text before the first CHAR on the
  291.                    line N times
  292. |J|        J        2  Join N lines; default is 2
  293. |K|        K           lookup Keyword under the cursor with
  294.                    'keywordprg'
  295. |L|        L        1  cursor to line N from bottom of screen
  296. |M|        M        1  cursor to middle line of screen
  297. |N|        N        1  repeat the latest '/' or '?' N times in
  298.                    opposite direction
  299. |O|        O        2  begin a new line above the cursor and
  300.                    insert text, repeat N times
  301. |P|        ["x]P        2  put the text [from buffer x] before the
  302.                    cursor N times
  303. |Q|        Q           switch to "Ex" mode
  304. |R|        R        2  enter replace mode: overtype existing
  305.                    characters, repeat the entered text N-1
  306.                    times
  307. |S|        ["x]S        2  delete N lines [into buffer x] and start
  308.                    insert; synonym for "^cc" or "0cc",
  309.                    depending on autoindent
  310. |T|        T{char}        1  cursor till after Nth occurrence of {char}
  311.                    to the left
  312. |U|        U        2  undo all latest changes on one line
  313. |V|        V           start linewise Visual mode
  314. |W|        W        1  cursor N WORDS forward
  315. |X|        ["x]X        2  delete N characters before the cursor [into
  316.                    buffer x]
  317. |Y|        ["x]Y           yank N lines [into buffer x]; synonym for
  318.                    "yy"
  319. |ZZ|        ZZ           store current file if modified, and exit
  320. |ZQ|        ZQ           exit current file always
  321. |[|        [{char}           square bracket command (see below)
  322.         \           not used
  323. |]|        ]{char}           square bracket command (see below)
  324. |^|        ^        1  cursor to the first CHAR of the line
  325. |_|        _        1  cursor to the first CHAR N - 1 lines lower
  326. |`|        `{a-zA-Z0-9}    1  cursor to the mark {a-zA-Z0-9}
  327. |`<|        `<        1  cursor to the start of the highlighted area
  328. |`>|        `>        1  cursor to the end of the highlighted area
  329. |`[|        `[        1  cursor to the start of last operated text
  330.                    or start of putted text
  331. |`]|        `]        1  cursor to the end of last operated text or
  332.                    end of putted text
  333. |``|        ``        1  cursor to the position before latest jump
  334. |a|        a        2  append text after the cursor N times
  335. |b|        b        1  cursor N words backward
  336. |c|        ["x]c{motion}    2  delete Nmove text [into buffer x] and start
  337.                    insert
  338. |cc|        ["x]cc        2  delete N lines [into buffer x] and start
  339.                    insert
  340. |d|        ["x]d{motion}    2  delete Nmove text [into buffer x]
  341. |dd|        ["x]dd        2  delete N lines [into buffer x]
  342. |e|        e        1  cursor forward to the end of word N
  343. |f|        f{char}        1  cursor to Nth occurrence of {char} to the
  344.                    right
  345. |g|        g{char}           extended commands, see below
  346. |h|        h        1  cursor N chars to the left
  347. |i|        i        2  insert text before the cursor N times
  348. |j|        j        1  cursor N lines downward
  349. |k|        k        1  cursor N lines upward
  350. |l|        l        1  cursor N chars to the right
  351. |m|        m{A-Za-z}       set mark {A-Za-z} at cursor position
  352. |n|        n        1  repeat the latest '/' or '?' N times
  353. |o|        o        2  begin a new line below the cursor and
  354.                    insert text, repeat N times
  355. |p|        ["x]p        2  put the text [from register x] after the
  356.                    cursor N times
  357. |q|        q{0-9a-zA-Z"}       record typed characters into named register
  358.                    {0-9a-zA-Z"} (upper case to append)
  359. |q|        q           (while recording) stops recording
  360. |r|        r{char}        2  replace N chars with {char}
  361. |s|        ["x]s        2  (substitute) delete N characters [into
  362.                    buffer x] and start insert
  363. |t|        t{char}        1  cursor till before Nth occurrence of {char}
  364.                    to the right
  365. |u|        u        2  undo changes
  366. |v|        v           start characterwise Visual mode
  367. |w|        w        1  cursor N words forward
  368. |x|        ["x]x        2  delete N characters under and after the
  369.                    cursor [into buffer x]
  370. |y|        ["x]y{motion}       yank Nmove text [into buffer x]
  371. |yy|        ["x]yy           yank N lines [into buffer x]
  372. |z<CR>|        z<CR>           redraw, cursor line to top of window,
  373.                    cursor on first non-blank
  374. |zN<CR>|    z{height}<CR>       redraw, make window {height} lines high
  375. |z.|        z.           redraw, cursor line to center of window,
  376.                    cursor on first non-blank
  377. |z-|        z-           redraw, cursor line at bottom of window,
  378.                    cursor on first non-blank
  379. |zb|        zb           redraw, cursor line at bottom of window
  380. |ze|        ze           when 'wrap' off scroll horizontally to
  381.                    position the cursor at the end (right side)
  382.                    of the screen
  383. |zh|        zh           when 'wrap' off scroll screen N characters
  384.                    to the right
  385. |zl|        zl           when 'wrap' off scroll screen N characters
  386.                    to the left
  387. |zs|        zs           when 'wrap' off scroll horizontally to
  388.                    position the cursor at the start (left
  389.                    side) of the screen
  390. |zt|        zt           redraw, cursor line at top of window
  391. |zz|        zz           redraw, cursor line at center of window
  392. |z<Left>|    z<Left>           same as "zh"
  393. |z<Right>|    z<Right>       same as "zl"
  394. |{|        {        1  cursor N paragraphs backward
  395. |bar|        |        1  cursor to column N
  396. |}|        }        1  cursor N paragraphs forward
  397. |~|        ~        2  'tildeop' off: switch case of N characters
  398.                    under cursor and move the cursor N
  399.                    characters to the right
  400. |~|        ~{motion}       'tildeop' on: switch case of Nmove text
  401. |<C-End>|    <C-End>        1  same as "G"
  402. |<C-Home>|    <C-Home>    1  same as "gg"
  403. |<C-Left>|    <C-Left>    1  same as "b"
  404. |<C-LeftMouse>|    <C-LeftMouse>       ":ta" to the keyword at the mouse click
  405. |<C-Right>|    <C-Right>    1  same as "w"
  406. |<C-RightMouse>| <C-RightMouse>       same as "CTRL-T"
  407. |<Del>|        ["x]<Del>    2  same as "x"
  408. |N<Del>|    {count}<Del>       remove the last digit from {count}
  409. |<Down>|    <Down>        1  same as "j"
  410. |<End>|        <End>        1  same as "$"
  411. |<F1>|        <F1>           same as <Help>
  412. |<Help>|    <Help>           open a help window
  413. |<Home>|    <Home>        1  same as "0"
  414. |<Insert>|    <Insert>    2  same as "i"
  415. |<Left>|    <Left>        1  same as "h"
  416. |<LeftMouse>|    <LeftMouse>    1  move cursor to the mouse click position
  417. |<MiddleMouse>| <MiddleMouse>    2  same as "P" at the mouse click position
  418. |<PageDown>|    <PageDown>       same as CTRL-F
  419. |<PageUp>|    <PageUp>       same as CTRL-B
  420. |<Right>|    <Right>        1  same as "l"
  421. |<RightMouse>|    <RightMouse>       start Visual mode, move cursor to the mouse
  422.                    click position
  423. |<S-Down>|    <S-Down>    1  same as CTRL-F
  424. |<S-Left>|    <S-Left>    1  same as "b"
  425. |<S-LeftMouse>|    <S-LeftMouse>       same as "*" at the mouse click position
  426. |<S-Right>|    <S-Right>    1  same as "w"
  427. |<S-RightMouse>| <S-RightMouse>       same as "#" at the mouse click position
  428. |<S-Up>|    <S-Up>        1  same as CTRL-B
  429. |<Undo>|    <Undo>        2  same as "u"
  430. |<Up>|        <Up>        1  same as "k"
  431. |<MouseDown>|    <MouseDown>       scroll three lines downwards
  432. |<S-MouseDown>|    <S-MouseDown>       scroll a full page downwards
  433. |<MouseUp>|    <MouseUp>       scroll three lines upwards
  434. |<S-MouseUp>|    <S-MouseUp>       scroll a full page upwards
  435.  
  436. ==============================================================================
  437. 2.1 Text objects                        *objects*
  438.  
  439. These can be used after an operator or in Visual mode to select an object.
  440.  
  441. tag        command           action in Normal mode    ~
  442. ------------------------------------------------------------------------------
  443. |v_a(|        a(           same as ab
  444. |v_a)|        a)           same as ab
  445. |v_a<|        a<           "a <>" from '<' to the matching '>'
  446. |v_a>|        a>           same as a<
  447. |v_aB|        aB           "a Block" from "[{" to "]}" (with brackets)
  448. |v_aW|        aW           "a WORD" (with white space)
  449. |v_a[|        a[           "a []" from '[' to the matching ']'
  450. |v_a]|        a]           same as a[
  451. |v_ab|        ab           "a block" from "[(" to "])" (with braces)
  452. |v_ap|        ap           "a paragraph" (with white space)
  453. |v_as|        as           "a sentence" (with white space)
  454. |v_aw|        aw           "a word" (with white space)
  455. |v_a{|        a{           same as aB
  456. |v_a}|        a}           same as aB
  457. |v_i(|        i(           same as ib
  458. |v_i)|        i)           same as ib
  459. |v_i<|        i<           "inner <>" from '<' to the matching '>'
  460. |v_i>|        i>           same as i<
  461. |v_iB|        iB           "inner Block" from "[{" and "]}"
  462. |v_iW|        iW           "inner WORD"
  463. |v_i[|        i[           "inner []" from '[' to the matching ']'
  464. |v_i]|        i]           same as i[
  465. |v_ib|        ib           "inner block" from "[(" to "])"
  466. |v_ip|        ip           "inner paragraph"
  467. |v_is|        is           "inner sentence"
  468. |v_iw|        iw           "inner word"
  469. |v_i{|        i{           same as iB
  470. |v_i}|        i}           same as iB
  471.  
  472. ==============================================================================
  473. 2.2 Window commands                        *CTRL-W*
  474.  
  475. tag        command           action in Normal mode    ~
  476. ------------------------------------------------------------------------------
  477. |CTRL-W_CTRL-B|    CTRL-W CTRL-B       same as "CTRL-W b"
  478. |CTRL-W_CTRL-C|    CTRL-W CTRL-C       same as "CTRL-W c"
  479. |CTRL-W_CTRL-D|    CTRL-W CTRL-D       same as "CTRL-W d"
  480. |CTRL-W_CTRL-F|    CTRL-W CTRL-F       same as "CTRL-W f"
  481.         CTRL-W CTRL-G       same as "CTRL-W g .."
  482. |CTRL-W_CTRL-I|    CTRL-W CTRL-I       same as "CTRL-W i"
  483. |CTRL-W_CTRL-J|    CTRL-W CTRL-J       same as "CTRL-W j"
  484. |CTRL-W_CTRL-K|    CTRL-W CTRL-K       same as "CTRL-W k"
  485. |CTRL-W_CTRL-N|    CTRL-W CTRL-N       same as "CTRL-W n"
  486. |CTRL-W_CTRL-O|    CTRL-W CTRL-O       same as "CTRL-W o"
  487. |CTRL-W_CTRL-P|    CTRL-W CTRL-P       same as "CTRL-W p"
  488. |CTRL-W_CTRL-Q|    CTRL-W CTRL-Q       same as "CTRL-W q"
  489. |CTRL-W_CTRL-R|    CTRL-W CTRL-R       same as "CTRL-W r"
  490. |CTRL-W_CTRL-S|    CTRL-W CTRL-S       same as "CTRL-W s"
  491. |CTRL-W_CTRL-T|    CTRL-W CTRL-T       same as "CTRL-W t"
  492. |CTRL-W_CTRL-W|    CTRL-W CTRL-W       same as "CTRL-W w"
  493. |CTRL-W_CTRL-X|    CTRL-W CTRL-X       same as "CTRL-W x"
  494. |CTRL-W_CTRL-Z|    CTRL-W CTRL-Z       same as "CTRL-W z"
  495. |CTRL-W_CTRL-]|    CTRL-W CTRL-]       same as "CTRL-W ]"
  496. |CTRL-W_CTRL-^|    CTRL-W CTRL-^       same as "CTRL-W ^"
  497. |CTRL-W_CTRL-_|    CTRL-W CTRL-_       same as "CTRL-W _"
  498. |CTRL-W_+|    CTRL-W +       increase current window height N lines
  499. |CTRL-W_-|    CTRL-W -       decrease current window height N lines
  500. |CTRL-W_=|    CTRL-W =       make all windows the same height
  501. |CTRL-W_R|    CTRL-W R       rotate windows upwards N times
  502. |CTRL-W_S|    CTRL-W S       same as "CTRL-W s"
  503. |CTRL-W_W|    CTRL-W W       go to N previous window (wrap around)
  504. |CTRL-W_]|    CTRL-W ]       split window and jump to tag under cursor
  505. |CTRL-W_^|    CTRL-W ^       split current window and edit alternate
  506.                    file N
  507. |CTRL-W__|    CTRL-W _       set current window height to N (default:
  508.                    very high)
  509. |CTRL-W_b|    CTRL-W b       go to bottom window
  510. |CTRL-W_c|    CTRL-W c       close current window (like |:close|)
  511. |CTRL-W_d|    CTRL-W d       split window and jump to definition under
  512.                    the cursor
  513. |CTRL-W_f|    CTRL-W f       split window and edit file name under the
  514.                    cursor
  515. |CTRL-W_g_CTRL-]| CTRL-W g CTRL-]  split window and do |:tjump| to tag under
  516.                    cursor
  517. |CTRL-W_g]|    CTRL-W g ]       split window and do |:tselect| for tag
  518.                    under cursor
  519. |CTRL-W_g}|    CTRL-W g }       do a |:ptjump| to the tag under the cursor
  520. |CTRL-W_i|    CTRL-W i       split window and jump to declaration of
  521.                    identifier under the cursor
  522. |CTRL-W_j|    CTRL-W j       go to N next window (stop at last window)
  523. |CTRL-W_k|    CTRL-W k       go to N previous window (stop at first
  524.                    window)
  525. |CTRL-W_n|    CTRL-W n       open new window, N lines high
  526. |CTRL-W_o|    CTRL-W o       close all but current window (like |:only|)
  527. |CTRL-W_p|    CTRL-W p       go to previous (last accessed) window
  528. |CTRL-W_q|    CTRL-W q       quit current window (like |:quit|)
  529. |CTRL-W_r|    CTRL-W r       rotate windows downwards N times
  530. |CTRL-W_s|    CTRL-W s       split current window in two parts, new
  531.                    window N lines high
  532. |CTRL-W_t|    CTRL-W t       go to top window
  533. |CTRL-W_w|    CTRL-W w       go to N next window (wrap around)
  534. |CTRL-W_x|    CTRL-W x       exchange current window with window N
  535.                    (default: next window)
  536. |CTRL-W_z|    CTRL-W z       close preview window
  537. |CTRL-W_}|    CTRL-W }       show tag under cursor in preview window
  538. |CTRL-W_<Down>|    CTRL-W <Down>       same as "CTRL-W j"
  539. |CTRL-W_<Up>|    CTRL-W <Up>       same as "CTRL-W k"
  540.  
  541. ==============================================================================
  542. 2.3 Square bracket commands                    *[* *]*
  543.  
  544. tag        char          note action in Normal mode    ~
  545. ------------------------------------------------------------------------------
  546. |[_CTRL-D|    [_CTRL-D       jump to first #define found in current and
  547.                    included files matching the word under the
  548.                    cursor, start searching at beginning of
  549.                    current file
  550. |[_CTRL-I|    [_CTRL-I       jump to first line in current and included
  551.                    files that contains the word under the
  552.                    cursor, start searching at beginning of
  553.                    current file
  554. |[#|        [#        1  cursor to N previous unmatched #if, #else
  555.                    or #ifdef
  556. |[(|        [(        1  cursor N times back to unmatched '('
  557. |[star|        [*        1  same as "[/"
  558. |[/|        [/        1  cursor to N previous start of a C comment
  559. |[D|        [D           list all defines found in current and
  560.                    included files matching the word under the
  561.                    cursor, start searching at beginning of
  562.                    current file
  563. |[I|        [I           list all lines found in current and
  564.                    included files that contain the word under
  565.                    the cursor, start searching at beginning of
  566.                    current file
  567. |[P|        [P        2  same as "[p"
  568. |[[|        [[        1  cursor N sections backward
  569. |[]|        []        1  cursor N SECTIONS backward
  570. |[d|        [d           show first #define found in current and
  571.                    included files matching the word under the
  572.                    cursor, start searching at beginning of
  573.                    current file
  574. |[f|        [f           same as "gf"
  575. |[i|        [i           show first line found in current and
  576.                    included files that contains the word under
  577.                    the cursor, start searching at beginning of
  578.                    current file
  579. |[p|        [p        2  like "P", but adjust indent to current line
  580. |[m|        [m        1  cursor N times back to start of member
  581.                    function
  582. |[{|        [{        1  cursor N times back to unmatched '{'
  583. |[<MiddleMouse> [<MiddleMouse>    2  same as "[p"
  584.  
  585. |]_CTRL-D|    ]_CTRL-D       jump to first #define found in current and
  586.                    included files matching the word under the
  587.                    cursor, start searching at cursor position
  588. |]_CTRL-I|    ]_CTRL-I       jump to first line in current and included
  589.                    files that contains the word under the
  590.                    cursor, start searching at cursor position
  591. |]#|        ]#        1  cursor to N next unmatched #endif or #else
  592. |])|        ])        1  cursor N times forward to unmatched ')'
  593. |]star|        ]*        1  same as "]/"
  594. |]/|        ]/        1  cursor to N next end of a C comment
  595. |]D|        ]D           list all #defines found in current and
  596.                    included files matching the word under the
  597.                    cursor, start searching at cursor position
  598. |]I|        ]I           list all lines found in current and
  599.                    included files that contain the word under
  600.                    the cursor, start searching at cursor
  601.                    position
  602. |]P|        ]P        2  same as "[p"
  603. |][|        ][        1  cursor N SECTIONS forward
  604. |]]|        ]]        1  cursor N sections forward
  605. |]d|        ]d           show first #define found in current and
  606.                    included files matching the word under the
  607.                    cursor, start searching at cursor position
  608. |]f|        ]f           same as "gf"
  609. |]i|        ]i           show first line found in current and
  610.                    included files that contains the word under
  611.                    the cursor, start searching at cursor
  612.                    position
  613. |]p|        ]p        2  like "p", but adjust indent to current line
  614. |]m|        ]m        1  cursor N times forward to end of member
  615.                    function
  616. |]}|        ]}        1  cursor N times forward to unmatched '}'
  617. |]<MiddleMouse> ]<MiddleMouse>    2  same as "]p"
  618.  
  619. ==============================================================================
  620. 2.4 Commands starting with 'g'                        *g*
  621.  
  622. tag        char          note action in Normal mode    ~
  623. ------------------------------------------------------------------------------
  624. |g_CTRL-A|    g_CTRL-A       only when compiled with MEM_PROFILE
  625.                    defined: dump a memory profile
  626. |g_CTRL-G|    g_CTRL-G       show information about current cursor
  627.                    position
  628. |g_CTRL-H|    g_CTRL-H       start Select block mode
  629. |g_CTRL-]|    g_CTRL-]       |:tjump| to the tag under the cursor
  630. |g#|        g#        1  like "#", but without using "\<" and "\>"
  631. |g$|        g$        1  when 'wrap' off go to rightmost character of
  632.                    the current line that is on the screen;
  633.                    when 'wrap' on go to the rightmost character
  634.                    of the current screen line
  635. |gstar|        g*        1  like "*", but without using "\<" and "\>"
  636. |g0|        g0        1  when 'wrap' off go to leftmost character of
  637.                    the current line that is on the screen;
  638.                    when 'wrap' on go to the leftmost character
  639.                    of the current screen line
  640. |g?|        g?        2  Rot13 encoding operator
  641. |g?g?|        g??        2  Rot13 encode current line
  642. |g?g?|        g?g?        2  Rot13 encode current line
  643. |gD|        gD        1  goto definiton of word under the cursor in
  644.                    current file
  645. |gE|        gE        1  go backwards to the end of the previous
  646.                    WORD
  647. |gH|        gH           start Select line mode
  648. |gI|        gI        2  like "I", but always start in column 1
  649. |gJ|        gJ        2  join lines without inserting space
  650. |gP|        ["x]gP        2  put the text [from register x] before the
  651.                    cursor N times, leave the cursor after it
  652. |gR|        gR        2  enter virtual replace mode
  653. |gU|        gU{motion}    2  make Nmove text uppercase
  654. |gV|        gV           don't reselect the previous Visual area
  655.                    when executing a mapping or menu in Select
  656.                    mode
  657. |g]|        g]           :tselect on the tag under the cursor
  658. |g^|        g^        1  when 'wrap' off go to leftmost non-white
  659.                    character of the current line that is on
  660.                    the screen; when 'wrap' on go to the
  661.                    leftmost non-white character of the current
  662.                    screen line
  663. |ga|        ga           print ascii value of character under the
  664.                    cursor
  665. |gd|        gd        1  goto definiton of word under the cursor in
  666.                    current function
  667. |ge|        ge        1  go backwards to the end of the previous
  668.                    word
  669. |gf|        gf           start editing the file whose name is under
  670.                    the cursor
  671. |gg|        gg        1  cursor to line N, default first line
  672. |gh|        gh           start Select mode
  673. |gj|        gj        1  like "j", but when 'wrap' on go N screen
  674.                    lines down
  675. |gk|        gk        1  like "k", but when 'wrap' on go N screen
  676.                    lines up
  677. |gm|        gm        1  go to character at middle of the screenline
  678. |go|        go        1  cursor to byte N in the buffer
  679. |gp|        ["x]gp        2  put the text [from register x] after the
  680.                    cursor N times, leave the cursor after it
  681. |gq|        gq{motion}    2  format Nmove text
  682. |gr|        gr{char}    2  virtual replace N chars with {char}
  683. |gs|        gs           goto sleep for N seconds (default 1)
  684. |gu|        gu{motion}    2  make Nmove text lowercase
  685. |gv|        gv           reselect the previous Visual area
  686. |g~|        g~{motion}    2  swap case for Nmove text
  687. |g<Down>|    g<Down>        1  same as "gj"
  688. |g<End>|    g<End>        1  same as "g$"
  689. |g<Home>|    g<Home>        1  same as "g0"
  690. |g<LeftMouse>|    g<LeftMouse>       same as <C-LeftMouse>
  691.         g<MiddleMouse>       same as <C-MiddleMouse>
  692. |g<RightMouse>|    g<RightMouse>       same as <C-RightMouse>
  693. |g<Up>|        g<Up>        1  same as "gk"
  694.  
  695. ==============================================================================
  696. 3. Visual mode                        *visual-index*
  697.  
  698. Most commands in Visual mode are the same as in Normal mode. The ones listed
  699. here are those that are different.
  700.  
  701. tag        command          note action in Visual mode    ~
  702. ------------------------------------------------------------------------------
  703. |v_CTRL-\_CTRL-N| CTRL-\ CTRL-N       stop Visual mode
  704. |v_CTRL-G|    CTRL-G           toggle between Visual mode and Select mode
  705. |v_<BS>|    <BS>        2  Select mode: delete highlighted area
  706. |v_CTRL-H|    CTRL-H        2  same as <BS>
  707. |v_CTRL-O|    CTRL-O           switch from Select to Visual mode for one
  708.                    command
  709. |v_CTRL-V|    CTRL-V           make Visual mode blockwise or stop Visual
  710.                    mode
  711. |v_CTRL-]|    CTRL-]           jump to highlighted tag
  712. |v_!|        !{filter}    2  filter the highlighted lines through the
  713.                    external command {filter}
  714. |v_:|        :           start a command-line with the highlighted
  715.                    lines as a range
  716. |v_<|        <        2  shift the highlighted lines one
  717.                    'shiftwidth' left
  718. |v_=|        =        2  filter the highlighted lines through the
  719.                    external program given with the 'equalprg'
  720.                    option
  721. |v_>|        >        2  shift the highlighted lines one
  722.                    'shiftwidth' right
  723. |v_b_A|        A        2  block mode: append same text in all lines,
  724.                    after the highlighted area
  725. |v_C|        C        2  delete the highlighted lines and start
  726.                    insert
  727. |v_D|        D        2  delete the highlighted lines
  728. |v_b_I|        I        2  block mode: insert same text in all lines,
  729.                    before the highlighted area
  730. |v_J|        J        2  join the highlighted lines
  731. |v_K|        K           run 'keywordprg' on the highlighted area
  732. |v_O|        O           Move horizontally to other corner of area.
  733.         Q           does not start Ex mode
  734. |v_R|        R        2  delete the highlighted lines and start
  735.                    insert
  736. |v_S|        S        2  delete the highlighted lines and start
  737.                    insert
  738. |v_U|        U        2  make highlighted area uppercase
  739. |v_V|        V           make Visual mode linewise or stop Visual
  740.                    mode
  741. |v_X|        X        2  delete the highlighted lines
  742. |v_Y|        Y           yank the highlighted lines
  743. |v_a(|        a(           same as ab
  744. |v_a)|        a)           same as ab
  745. |v_a<|        a<           extend highlighted area with a <> block
  746. |v_a>|        a>           same as a<
  747. |v_aB|        aB           extend highlighted area with a {} block
  748. |v_aW|        aW           extend highlighted area with "a WORD"
  749. |v_a[|        a[           extend highlighted area with a [] block
  750. |v_a]|        a]           same as a[
  751. |v_ab|        ab           extend highlighted area with a () block
  752. |v_ap|        ap           extend highlighted area with a paragraph
  753. |v_as|        as           extend highlighted area with a sentence
  754. |v_aw|        aw           extend highlighted area with "a word"
  755. |v_a{|        a{           same as aB
  756. |v_a}|        a}           same as aB
  757. |v_c|        c        2  delete highlighted area and start insert
  758. |v_d|        d        2  delete highlighted area
  759. |v_gJ|        gJ        2  join the highlighted lines without
  760.                    inserting spaces
  761. |v_gq|        gq        2  format the highlighted lines
  762. |v_gv|        gv           exchange current and previous highlighted
  763.                    area
  764. |v_i(|        i(           same as ib
  765. |v_i)|        i)           same as ib
  766. |v_i<|        i<           extend highlighted area with inner <> block
  767. |v_i>|        i>           same as i<
  768. |v_iB|        iB           extend highlighted area with inner {} block
  769. |v_iW|        iW           extend highlighted area with "inner WORD"
  770. |v_i[|        i[           extend highlighted area with inner [] block
  771. |v_i]|        i]           same as i[
  772. |v_ib|        ib           extend highlighted area with inner () block
  773. |v_ip|        ip           extend highlighted area with inner paragraph
  774. |v_is|        is           extend highlighted area with inner sentence
  775. |v_iw|        iw           extend highlighted area with "inner word"
  776. |v_i{|        i{           same as iB
  777. |v_i}|        i}           same as iB
  778. |v_o|        o           move cursor to other corner of area
  779. |v_r|        r        2  delete highlighted area and start insert
  780. |v_s|        s        2  delete highlighted area and start insert
  781. |v_u|        u        2  make highlighted area lowercase
  782. |v_v|        v           make Visual mode characterwise or stop
  783.                    Visual mode
  784. |v_x|        x        2  delete the highlighted area
  785. |v_y|        y           yank the highlighted area
  786. |v_~|        ~        2  swap case for the highlighted area
  787.  
  788. ==============================================================================
  789. 4. Command-line editing                    *ex-edit-index*
  790.  
  791. Get to the command-line with the ':', '!', '/' or '?' commands.
  792. Normal characters are inserted at the current cursor position.
  793. "Completion" below refers to context-sensitive completion.  It will complete
  794. file names, tags, commands etc. as appropriate.
  795.  
  796.         CTRL-@        not used
  797. |c_CTRL-A|    CTRL-A        do completion on the pattern in front of the
  798.                 cursor and insert all matches
  799. |c_CTRL-B|    CTRL-B        cursor to begin of command-line
  800. |c_CTRL-C|    CTRL-C        same as <ESC>
  801. |c_CTRL-D|    CTRL-D        list completions that match the pattern in
  802.                 front of the cursor
  803. |c_CTRL-E|    CTRL-E        cursor to end of command-line
  804.         CTRL-F        not used
  805.         CTRL-G        not used
  806. |c_<BS>|    <BS>        delete the character in front of the cursor
  807. |c_digraph|    {char1} <BS> {char2}
  808.                 enter digraph when 'digraph' is on
  809. |c_CTRL-H|    CTRL-H        same as <BS>
  810. |c_<Tab>|    <Tab>        if 'wildchar' is <Tab>: Do completion on
  811.                 the pattern in front of the cursor
  812. |c_<S-Tab>|    <S-Tab>        same as CTRL-P
  813. |c_wildchar|    'wildchar'    Do completion on the pattern in front of the
  814.                 cursor (default: <Tab>)
  815. |c_CTRL-I|    CTRL-I        same as <Tab>
  816. |c_<NL>|    <NL>        same as <CR>
  817. |c_CTRL-J|    CTRL-J        same as <CR>
  818. |c_CTRL-K|    CTRL-K {char1} {char2}
  819.                 enter digraph
  820. |c_CTRL-L|    CTRL-L        do completion on the pattern in front of the
  821.                 cursor and insert the longest common part
  822. |c_<CR>|    <CR>        execute entered command
  823. |c_<CR>|    CTRL-M        same as <CR>
  824. |c_CTRL-N|    CTRL-N        after using 'wildchar' with multiple matches:
  825.                 go to next match, otherwise: same as <Down>
  826.         CTRL-O        not used
  827. |c_CTRL-P|    CTRL-P        after using 'wildchar' with multiple matches:
  828.                 go to previous match, otherwise: same as <Up>
  829. |c_CTRL-Q|    CTRL-Q        same as CTRL-V (used for terminal control flow)
  830. |c_CTRL-R|    CTRL-R {0-9a-z"%#:=}
  831.                 insert the contents of a register
  832.         CTRL-S        (used for terminal control flow)
  833. |c_CTRL-U|    CTRL-U        remove all characters
  834. |c_CTRL-V|    CTRL-V        insert next non-digit literally, insert three
  835.                 digit decimal number as a single byte.
  836. |c_CTRL-W|    CTRL-W        delete the word in front of the cursor
  837.         CTRL-X        not used (reserved for completion)
  838.         CTRL-Y        not used
  839.         CTRL-Z        not used (reserved for suspend)
  840. |c_<Esc>|    <Esc>        abandon command-line without executing it
  841. |c_<Esc>|    CTRL-[        same as <Esc>
  842. |c_CTRL-\_CTRL-N| CTRL-\ CTRL-N     go to Normal mode, abandon command-line
  843.         CTRL-\ a - z    reserved for extensions
  844.         CTRL-\ others    not used
  845.         CTRL-]        not used
  846.         CTRL-^        not used
  847. |c_CTRL-_|    CTRL-_        when 'allowrevins' set: change language
  848.                 (Hebrew, Farsi)
  849. |c_<Del>|    <Del>        delete the character under the cursor
  850.  
  851. |c_<Left>|    <Left>        cursor left
  852. |c_<S-Left>|    <S-Left>    cursor one word left
  853. |c_<C-Left>|    <C-Left>    cursor one word left
  854. |c_<Right>|    <Right>        cursor right
  855. |c_<S-Right>|    <S-Right>    cursor one word right
  856. |c_<C-Right>|    <C-Right>    cursor one word right
  857. |c_<Up>|    <Up>        recall previous command-line from history that
  858.                 matches pattern in front of the cursor
  859. |c_<S-Up>|    <S-Up>        recall previous command-line from history
  860. |c_<Down>|    <Down>        recall next command-line from history that
  861.                 matches pattern in front of the cursor
  862. |c_<S-Down>|    <S-Down>    recall next command-line from history
  863. |c_<Home>|    <Home>        cursor to start of command-line
  864. |c_<End>|    <End>        cursor to end of command-line
  865. |c_<PageDown>|    <PageDown>    same as <S-Down>
  866. |c_<PageUp>|    <PageUp>    same as <S-Up>
  867. |c_<Insert>|    <Insert>    toggle insert/overstrike mode
  868. |c_<LeftMouse>|    <LeftMouse>    cursor at mouse click
  869.  
  870. ==============================================================================
  871. 5. EX commands                        *ex-cmd-index*
  872.  
  873. This is a brief but complete listing of all the ":" commands, without
  874. mentioning any arguments.  The optional part of the command name is inside [].
  875. The commands are sorted on the non-optional part of their name.
  876.  
  877. |:!|        :!        filter lines or execute an external command
  878. |:!!|        :!!        repeat last ":!" command
  879. |:#|        :#        same as ":number"
  880. |:&|        :&        repeat last ":substitute"
  881. |:star|        :*        execute contents of a register
  882. |:<|        :<        shift lines one 'shiftwidth' left
  883. |:=|        :=        print the cursor line number
  884. |:>|        :>        shift lines one 'shiftwidth' right
  885. |:@|        :@        execute contents of a register
  886. |:@@|        :@@        repeat the previous ":@"
  887. |:Next|        :N[ext]        go to previous file in the argument list
  888. |:Print|    :P[rint]    print lines
  889. |:X|        :X        ask for encryption key
  890. |:append|    :a[ppend]    append text
  891. |:abbreviate|    :ab[breviate]    enter abbreviation
  892. |:abclear|    :abc[lear]    remove all abbreviations
  893. |:all|        :al[l]        open a window for each file in the argument
  894.                 list
  895. |:amenu|    :am[enu]    enter new menu item for all modes
  896. |:anoremenu|    :an[oremenu]    enter a new menu for all modes that will not
  897.                 be remapped
  898. |:args|        :ar[gs]        print the argument list
  899. |:argument|    :argu[ment]    go to specific file in the argument list
  900. |:ascii|    :as[cii]    print ascii value of character under the cursor
  901. |:autocmd|    :au[tocmd]    enter or show autocommands
  902. |:augroup|    :aug[roup]    select the autocommand group to use
  903. |:aunmenu|    :aun[menu]    remove menu for all modes
  904. |:buffer|    :b[uffer]    go to specific buffer in the buffer list
  905. |:bNext|    :bN[ext]    go to next buffer in the buffer list
  906. |:ball|        :ba[ll]        open a window for each file in the buffer list
  907. |:badd|        :bad[d]        add file to the buffer list
  908. |:bdelete|    :bd[elete]    delete specific files from the buffer list
  909. |:behave|    :be[have]    set mouse and selection behavior
  910. |:blast|    :bl[ast]    go to last file in the buffer list
  911. |:bmodified|    :bm[odified]    go to next file in the buffer list that has
  912.                 been modified
  913. |:bnext|    :bn[ext]    go to next file in the buffer list
  914. |:bprevious|    :bp[revious]    go to previous file in the buffer list
  915. |:brewind|    :br[ewind]    go to last file in the buffer list
  916. |:break|    :brea[k]    break out of while loop
  917. |:browse|    :bro[wse]    use file selection dialog
  918. |:buffers|    :buffers    list all files in the buffer list
  919. |:bunload|    :bun[load]    unload a specific buffer
  920. |:change|    :c[hange]    replace a line or series of lines
  921. |:cNext|    :cN[ext]    go to previous error
  922. |:cabbrev|    :ca[bbrev]    like ":abbreviate" but for Command-line mode
  923. |:cabclear|    :cabc[lear]    clear all abbreviations for Command-line mode
  924. |:call|        :cal[l]        call a function
  925. |:cc|        :cc        go to specific error
  926. |:cd|        :cd        change directory
  927. |:center|    :ce[nter]    format lines at the center
  928. |:cfile|    :cf[ile]    read the file with error messages
  929. |:change|    :ch[ange]    delete and insert lines
  930. |:chdir|    :chd[ir]    change directory
  931. |:checkpath|    :che[ckpath]    list included files
  932. |:clist|    :cl[ist]    list all errors
  933. |:clast|    :cla[st]    go to the specified error, default last one
  934. |:close|    :clo[se]    close current window
  935. |:cmap|        :cm[ap]        like ":map" but for Command-line mode
  936. |:cmapclear|    :cmapc[lear]    clear all mappings for Command-line mode
  937. |:cmenu|    :cme[nu]    add menu for Command-line mode
  938. |:cnext|    :cn[ext]    go to next error
  939. |:cnewer|    :cnew[er]    go to newer error list
  940. |:cnfile|    :cnf[ile]    go to first error in next file
  941. |:cnoremap|    :cno[remap]    like ":noremap" but for Command-line mode
  942. |:cnoreabbrev|    :cnorea[bbrev]    like ":noreabbrev" but for Command-line mode
  943. |:cnoremenu|    :cnoreme[nu]    like ":noremenu" but for Command-line mode
  944. |:copy|        :co[py]        copy lines
  945. |:colder|    :col[der]    go to older error list
  946. |:command|    :com[mand]    create user-defined command
  947. |:comclear|    :comc[lear]    clear all user-defined commands
  948. |:continue|    :con[tinue]    go back to :while
  949. |:confirm|    :conf[irm]    prompt user when confirmation required
  950. |:cprevious|    :cp[revious]    go to previous error
  951. |:cquit|    :cq[uit]    quit Vim with an error code
  952. |:crewind|    :cr[ewind]    go to the specified error, default first one
  953. |:cscope|    :cs[cope]       execute cscope command
  954. |:cstag|    :cst[ag]    use cscope to jump to a tag
  955. |:cunmap|    :cu[nmap]    like ":unmap" but for Command-line mode
  956. |:cunabbrev|    :cuna[bbrev]    like ":unabbrev" but for Command-line mode
  957. |:cunmenu|    :cunme[nu]    remove menu for Command-line mode
  958. |:delete|    :d[elete]    delete lines
  959. |:delcommand|    :delc[ommand]    delete user-defined command
  960. |:delfunction|    :delf[unction]    delete a user function
  961. |:display|    :di[splay]    display registers
  962. |:digraphs|    :dig[raphs]    show or enter digraphs
  963. |:djump|    :dj[ump]    jump to #define
  964. |:dlist|    :dl[ist]    list #defines
  965. |:doautocmd|    :do[autocmd]    apply autocommands to current buffer
  966. |:doautoall|    :doautoa[ll]    apply autocommands for all loaded buffers
  967. |:dsearch|    :ds[earch]    list one #define
  968. |:dsplit|    :dsp[lit]    split window and jump to #define
  969. |:edit|        :e[dit]        edit a file
  970. |:echo|        :ec[ho]        echoes the result of expressions
  971. |:echohl|    :echoh[l]    set highlighting for echo commands
  972. |:echon|    :echon        same as :echo, but without <EOL>
  973. |:else|        :el[se]        part of an :if command
  974. |:elseif|    :elsei[f]    part of an :if command
  975. |:emenu|    :em[enu]    execute a menu by name
  976. |:endif|    :en[dif]    end previous :if
  977. |:endfunction|    :endf[unction]    end of a user function
  978. |:endwhile|    :endw[hile]    end previous :while
  979. |:ex|        :ex        same as ":edit"
  980. |:execute|    :exe[cute]    execute result of expressions
  981. |:exit|        :exi[t]        same as ":xit"
  982. |:file|        :f[ile]        show or set the current file name
  983. |:files|    :files        list all files in the buffer list
  984. |:filetype|    :filet[ype]    switch file type detection on/off
  985. |:find|        :fin[d]        find file in 'path' and edit it
  986. |:fixdel|    :fix[del]    set key code of <Del>
  987. |:function|    :fu[nction]    define a user function
  988. |:global|    :g[lobal]    execute commands for matching lines
  989. |:goto|        :go[to]        goto byte in the buffer
  990. |:grep|        :gr[ep]        run 'grepprg' and jump to first match
  991. |:gui|        :gu[i]        start the GUI
  992. |:gvim|        :gv[im]        start the GUI
  993. |:help|        :h[elp]        open a help window
  994. |:helpfind|    :helpf[ind]    dialog to open a help window
  995. |:highlight|    :hi[ghlight]    specify highlighting methods
  996. |:hide|        :hid[e]        hide current buffer for a command
  997. |:history|    :his[tory]    print a history list
  998. |:insert|    :i[nsert]    insert text
  999. |:iabbrev|    :ia[bbrev]    like ":abbrev" but for Insert mode
  1000. |:iabclear|    :iabc[lear]    like ":abclear" but for Insert mode
  1001. |:if|        :if        execute commands when condition met
  1002. |:ijump|    :ij[ump]    jump to definition of identifier
  1003. |:ilist|    :il[ist]    list lines where identifier matches
  1004. |:imap|        :im[ap]        like ":map" but for Insert mode
  1005. |:imapclear|    :imapc[lear]    like ":mapclear" but for Insert mode
  1006. |:imenu|    :ime[nu]    add menu for Insert mode
  1007. |:inoremap|    :ino[remap]    like ":noremap" but for Insert mode
  1008. |:inoreabbrev|    :inorea[bbrev]    like ":noreabbrev" but for Insert mode
  1009. |:inoremenu|    :inoreme[nu]    like ":noremenu" but for Insert mode
  1010. |:intro|    :int[ro]    print the introductory message
  1011. |:isearch|    :is[earch]    list one line where identifier matches
  1012. |:isplit|    :isp[lit]    split window and jump to definition of
  1013.                 identifier
  1014. |:iunmap|    :iu[nmap]    like ":unmap" but for Insert mode
  1015. |:iunabbrev|    :iuna[bbrev]    like ":unabbrev" but for Insert mode
  1016. |:iunmenu|    :iunme[nu]    remove menu for Insert mode
  1017. |:join|        :j[oin]        join lines
  1018. |:jumps|    :ju[mps]    print the jump list
  1019. |:k|        :k        set a mark
  1020. |:list|        :l[ist]        print lines
  1021. |:last|        :la[st]        go to the last file in the argument list
  1022. |:left|        :le[ft]        left align lines
  1023. |:let|        :let        assign a value to a variable or option
  1024. |:ls|        :ls        list all buffers
  1025. |:move|        :m[ove]        move lines
  1026. |:mark|        :ma[rk]        set a mark
  1027. |:make|        :mak[e]        execute external command 'makeprg' and parse
  1028.                 error messages
  1029. |:map|        :map        show or enter a mapping
  1030. |:mapclear|    :mapc[lear]    clear all mappings for Normal and Visual mode
  1031. |:marks|    :marks        list all marks
  1032. |:menu|        :me[nu]        enter a new menu item
  1033. |:messages|    :mes[sages]    view previously displayed messages
  1034. |:mkexrc|    :mk[exrc]    write current mappings and settings to a file
  1035. |:mksession|    :mks[ession]    write session info to a file
  1036. |:mkvimrc|    :mkv[imrc]    write current mappings and settings to a file
  1037. |:mode|        :mod[e]        show or change the screen mode
  1038. |:next|        :n[ext]        go to next file in the argument list
  1039. |:new|        :new        create a new empty window
  1040. |:nmap|        :nm[ap]        like ":map" but for Normal mode
  1041. |:nmapclear|    :nmapc[lear]    clear all mappings for Normal mode
  1042. |:nmenu|    :nme[nu]    add menu for Normal mode
  1043. |:nnoremap|    :nn[oremap]    like ":noremap" but for Normal mode
  1044. |:nnoremenu|    :nnoreme[nu]    like ":noremenu" but for Normal mode
  1045. |:noremap|    :no[remap]    enter a mapping that will not be remapped
  1046. |:nohlsearch|    :noh[lsearch]    suspend 'hlsearch' highlighting
  1047. |:noreabbrev|    :norea[bbrev]    enter an abbreviation that will not be
  1048.                 remapped
  1049. |:noremenu|    :noreme[nu]    enter a menu that will not be remapped
  1050. |:normal|    :norm[al]    execute Normal mode commands
  1051. |:number|    :nu[mber]    print lines with line number
  1052. |:nunmap|    :nun[map]    like ":unmap" but for Normal mode
  1053. |:nunmenu|    :nunme[nu]    remove menu for Normal mode
  1054. |:open|        :o[pen]        start open mode (not implemented)
  1055. |:omap|        :om[ap]        like ":map" but for Operator-pending mode
  1056. |:omapclear|    :omapc[lear]    remove all mappings for Operator-pending mode
  1057. |:omenu|    :ome[nu]    add menu for Operator-pending mode
  1058. |:only|        :on[ly]        close all windows except current one
  1059. |:onoremap|    :ono[remap]    like ":noremap" but for Operator-pending mode
  1060. |:onoremenu|    :onoreme[nu]    like ":noremenu" but for Operator-pending mode
  1061. |:options|    :opt[ions]    open the options-window
  1062. |:ounmap|    :ou[nmap]    like ":unmap" but for Operator-pending mode
  1063. |:ounmenu|    :ounme[nu]    remove menu for Operator-pending mode
  1064. |:print|    :p[rint]    print lines
  1065. |:pclose|    :pc[lose]    close preview window
  1066. |:perl|        :pe[rl]        execute Perl command
  1067. |:perldo|    :perld[o]    execute Perl command for each line
  1068. |:pop|        :po[p]        jump to older entry in tag stack
  1069. |:ppop|        :pp[op]        ":pop" in preview window
  1070. |:preserve|    :pre[serve]    write all text to swap file
  1071. |:previous|    :prev[ious]    go to previous file in argument list
  1072. |:promptfind|    :pro[mptfind]    Search dialog
  1073. |:promptrepl|    :promptr[epl]    Search/Replace dialog
  1074. |:ptag|        :pt[ag]        show tag in preview window
  1075. |:ptNext|    :ptN[ext]    |:tNext| in preview window
  1076. |:ptjump|    :ptj[ump]    |:tjump| and show tag in preview window
  1077. |:ptlast|    :ptl[ast]    |:tlast| in preview window
  1078. |:ptnext|    :ptn[ext]    |:tnext| in preview window
  1079. |:ptprevious|    :ptp[revious]    |:tprevious| in preview window
  1080. |:ptrewind|    :ptr[ewind]    |:trewind| in preview window
  1081. |:ptselect|    :pts[elect]    |:tselect| and show tag in preview window
  1082. |:put|        :pu[t]        insert contents of register in the text
  1083. |:pwd|        :pw[d]        print current directory
  1084. |:python|    :py[thon]    execute Python command
  1085. |:pyfile|    :pyf[ile]    execute Python script file
  1086. |:quit|        :q[uit]        quit current window or Vim
  1087. |:qall|        :qa[ll]        quit Vim
  1088. |:read|        :r[ead]        read file into the text
  1089. |:recover|    :rec[over]    recover a file from a swap file
  1090. |:redo|        :red[o]        redo one undone change
  1091. |:redir|    :redi[r]    redirect messages to a file or register
  1092. |:registers|    :reg[isters]    display the contents of registers
  1093. |:resize|    :res[ize]    change current window height
  1094. |:retab|    :ret[ab]    change tab size
  1095. |:return|    :retu[rn]    return from a user function
  1096. |:rewind|    :rew[ind]    go to the first file in the argument list
  1097. |:right|    :ri[ght]    right align text
  1098. |:rviminfo|    :rv[iminfo]    read from viminfo file
  1099. |:substitute|    :s[ubstitute]    find and replace text
  1100. |:sNext|    :sN[ext]    split window and go to previous file in
  1101.                 argument list
  1102. |:sargument|    :sa[rgument]    split window and go to specific file in
  1103.                 argument list
  1104. |:sall|        :sal[l]        open a window for each file in argument list
  1105. |:sbuffer|    :sb[uffer]    split window and go to specific file in the
  1106.                 buffer list
  1107. |:sbNext|    :sbN[ext]    split window and go to previous file in the
  1108.                 buffer list
  1109. |:sball|    :sba[ll]    open a window for each file in the buffer list
  1110. |:sblast|    :sbl[ast]    split window and go to last file in buffer
  1111.                 list
  1112. |:sbmodified|    :sbm[odified]    split window and go to modified file in the
  1113.                 buffer list
  1114. |:sbnext|    :sbn[ext]    split window and go to next file in the buffer
  1115.                 list
  1116. |:sbprevious|    :sbp[revious]    split window and go to previous file in the
  1117.                 buffer list
  1118. |:sbrewind|    :sbr[ewind]    split window and go to first file in the
  1119.                 buffer list
  1120. |:set|        :se[t]        show or set options
  1121. |:sfind|    :sf[ind]    split current window and edit file in 'path'
  1122. |:shell|    :sh[ell]    escape to a shell
  1123. |:simalt|    :si[malt]    Win32 GUI: simulate Windows ALT key
  1124. |:sleep|    :sl[eep]    do nothing for a few seconds
  1125. |:slast|    :sla[st]    split window and go to last file in the
  1126.                 argument list
  1127. |:smagic|    :sm[agic]    :substitute with 'magic'
  1128. |:snext|    :sn[ext]    split window and go to next file in the
  1129.                 argument list
  1130. |:sniff|    :sni[ff]    send request to sniff
  1131. |:snomagic|    :sno[magic]    :substitute with 'nomagic'
  1132. |:source|    :so[urce]    read Vim or Ex commands from a file
  1133. |:split|    :sp[lit]    split current window
  1134. |:sprevious|    :spr[evious]    split window and go to previous file in the
  1135.                 argument list
  1136. |:srewind|    :sr[ewind]    split window and go to first file in the
  1137.                 argument list
  1138. |:stop|        :st[op]        suspend the editor or escape to a shell
  1139. |:stag|        :sta[g]        split window and jump to a tag
  1140. |:startinsert|    :star[tinsert]    start Insert mode
  1141. |:stjump|    :stj[ump]    do ":tjump" and split window
  1142. |:stselect|    :sts[elect]    do ":tselect" and split window
  1143. |:sunhide|    :sun[hide]    same as ":unhide"
  1144. |:suspend|    :sus[pend]    same as ":stop"
  1145. |:sview|    :sv[iew]    split window and edit file read-only
  1146. |:swapname|    :sw[apname]    show the name of the current swap file
  1147. |:syntax|    :sy[ntax]    syntax highlighting
  1148. |:syncbind|    :sync[bind]    sync scroll binding
  1149. |:t|        :t        same as ":copy"
  1150. |:tNext|    :tN[ext]    jump to previous matching tag
  1151. |:tag|        :ta[g]        jump to tag
  1152. |:tags|        :tags        show the contents of the tag stack
  1153. |:tcl|        :tcl        execute Tcl command
  1154. |:tcldo|    :tcld[o]    execute Tcl command for each line
  1155. |:tclfile|    :tclf[ile]    execute Tcl script file
  1156. |:tearoff|    :te[aroff]    tear-off a menu
  1157. |:tjump|    :tj[ump]    like ":tselect", but jump directly when there
  1158.                 is only one match
  1159. |:tlast|    :tl[ast]    jump to last matching tag
  1160. |:tmenu|    :tm[enu]    define menu tooltip
  1161. |:tnext|    :tn[ext]    jump to next matching tag
  1162. |:tprevious|    :tp[revious]    jump to previous matching tag
  1163. |:trewind|    :tr[ewind]    jump to first matching tag
  1164. |:tselect|    :ts[elect]    list matching tags and select one
  1165. |:tunmenu|    :tu[nmenu]    remove menu tooltip
  1166. |:undo|        :u[ndo]        undo last change(s)
  1167. |:unabbreviate|    :una[bbreviate]    remove abbreviation
  1168. |:unhide|    :unh[ide]    open a window for each loaded file in the
  1169.                 buffer list
  1170. |:unlet|    :unl[et]    delete variable
  1171. |:unmap|    :unm[ap]    remove mapping
  1172. |:unmenu|    :unme[nu]    remove menu
  1173. |:update|    :up[date]    write buffer if modified
  1174. |:vglobal|    :v[global]    execute commands for not matching lines
  1175. |:version|    :ve[rsion]    print version number and other info
  1176. |:visual|    :vi[sual]    same as ":edit", but turns off "Ex" mode
  1177. |:view|        :vie[w]        edit a file read-only
  1178. |:vmap|        :vm[ap]        like ":map" but for Visual mode
  1179. |:vmapclear|    :vmapc[lear]    remove all mappings for Visual mode
  1180. |:vmenu|    :vme[nu]    add menu for Visual mode
  1181. |:vnoremap|    :vn[oremap]    like ":noremap" but for Visual mode
  1182. |:vnoremenu|    :vnoreme[nu]    like ":noremenu" but for Visual mode
  1183. |:vunmap|    :vu[nmap]    like ":unmap" but for Visual mode
  1184. |:vunmenu|    :vunme[nu]    remove menu for Visual mode
  1185. |:write|    :w[rite]    write to a file
  1186. |:wNext|    :wN[ext]    write to a file and go to previous file in
  1187.                 argument list
  1188. |:wall|        :wa[ll]        write all (changed) buffers
  1189. |:while|    :wh[ile]    execute loop for as long as condition met
  1190. |:winsize|    :wi[nsize]    get or set window size (obsolete)
  1191. |:winpos|    :winp[os]    get or set window position
  1192. |:wnext|    :wn[ext]    write to a file and go to next file in
  1193.                 argument list
  1194. |:wprevious|    :wp[revious]    write to a file and go to previous file in
  1195.                 argument list
  1196. |:wq|        :wq        write to a file and quit window or Vim
  1197. |:wqall|    :wqa[ll]    write all changed buffers and quit Vim
  1198. |:wviminfo|    :wv[iminfo]    write to viminfo file
  1199. |:xit|        :x[it]        write if buffer changed and quit window or Vim
  1200. |:xall|        :xa[ll]        same as ":wqall"
  1201. |:yank|        :y[ank]        yank lines into a register
  1202. |:z|        :z        print some lines
  1203. |:~|        :~        repeat last ":substitute"
  1204.  
  1205.  vim:ts=8:sw=8:tw=78:
  1206.