home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / vim53os2.zip / vim-5.3 / doc / index.txt < prev    next >
Text File  |  1998-08-30  |  48KB  |  1,085 lines

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