*index.txt* For Vim version 6.1. Last change: 2002 Apr 23 VIM REFERENCE MANUAL by Bram Moolenaar *index* This file contains a list of all commands for each mode, with a tag and a short description. The lists are sorted on ASCII value. Tip: When looking for certain functionality, use a search command. E.g., to look for deleting something, use: "/delete". 1. Insert mode|insert-index| 2. Normal mode|normal-index| 2.1. Text objects|objects| 2.2. Window commands|CTRL-W| 2.3. Square bracket commands|[| 2.4. Commands starting with 'g'|g| 2.5. Commands starting with 'z'|z| 3. Visual mode|visual-index| 4. Command-line editing|ex-edit-index| 5. EX commands|ex-cmd-index| For an overview of options see help.txt |option-list|. For a complete description of each option see options.txt |options|. For a complete listing of all help items see |help-tags|.
1. Insert mode*insert-index*
tagcharaction
|i_CTRL-@|CTRL-@insert previously inserted text and stop insert |i_CTRL-A|CTRL-Ainsert previously inserted textCTRL-Bnot used |i_CTRL-B-gone| |i_CTRL-C|CTRL-Cquit insert mode, without checking for abbreviation, unless 'insertmode' set. |i_CTRL-D|CTRL-Ddelete one shiftwidth of indent in the current line |i_CTRL-E|CTRL-Einsert the character which is below the cursorCTRL-Fnot used (but by default it's in 'cinkeys' to re-indent the current line) |i_CTRL-G_j|CTRL-GCTRL-Jline down, to column where inserting started |i_CTRL-G_j|CTRL-Gjline down, to column where inserting started |i_CTRL-G_j|CTRL-G<Down>line down, to column where inserting started |i_CTRL-G_k|CTRL-GCTRL-Kline up, to column where inserting started |i_CTRL-G_k|CTRL-Gkline up, to column where inserting started |i_CTRL-G_k|CTRL-G<Up>line up, to column where inserting started |i_<BS>|<BS>delete character before the cursor |i_digraph|{char1}<BS>{char2}enter digraph (only when 'digraph' option set) |i_CTRL-H|CTRL-Hsame as<BS>|i_<Tab>|<Tab>insert a<Tab>character |i_CTRL-I|CTRL-Isame as<Tab>|i_<NL>|<NL>same as<CR>|i_CTRL-J|CTRL-Jsame as<CR>|i_CTRL-K|CTRL-K{char1}{char2}enter digraph |i_CTRL-L|CTRL-Lwhen 'insertmode' set: Leave Insert mode |i_<CR>|<CR>begin new line |i_CTRL-M|CTRL-Msame as<CR>|i_CTRL-N|CTRL-Nfind next match for keyword in front of the cursor |i_CTRL-O|CTRL-Oexecute a single command and return to insert mode |i_CTRL-P|CTRL-Pfind previous match for keyword in front of the cursor |i_CTRL-Q|CTRL-Qsame asCTRL-V, unless used for terminal control flow |i_CTRL-R|CTRL-R{0-9a-z"%#*:=}insert the contents of a register |i_CTRL-R_CTRL-R|CTRL-RCTRL-R{0-9a-z"%#*:=}insert the contents of a register literally |i_CTRL-R_CTRL-O|CTRL-RCTRL-O{0-9a-z"%#*:=}insert the contents of a register literally and don't auto-indent |i_CTRL-R_CTRL-P|CTRL-RCTRL-P{0-9a-z"%#*:=}insert the contents of a register literally and fix indent.CTRL-S(used for terminal control flow) |i_CTRL-T|CTRL-Tinsert one shiftwidth of indent in current line |i_CTRL-U|CTRL-Udelete all entered characters in the current line |i_CTRL-V|CTRL-V{char}insert next non-digit literally |i_CTRL-V_digit|CTRL-V{number}insert three digit decimal number as a single byte. |i_CTRL-W|CTRL-Wdelete word before the cursor |i_CTRL-X|CTRL-X{mode}enterCTRL-Xsub mode, see below |i_CTRL-Y|CTRL-Yinsert the character which is above the cursor |i_CTRL-Z|CTRL-Zwhen 'insertmode' set: suspend Vim |i_<Esc>|<Esc>end insert mode (unless 'insertmode' set) |i_CTRL-[|CTRL-[same as<Esc>|i_CTRL-\_CTRL-N| CTRL-\CTRL-Ngo to Normal mode CTRL-\ a - zreserved for extensions CTRL-\ othersnot used |i_CTRL-]|CTRL-]trigger abbreviation |i_CTRL-^|CTRL-^toggle use of |:lmap| mappings |i_CTRL-_|CTRL-_When 'allowrevins' set: change language (Hebrew, Farsi) {only when compiled with +rightleft feature}<Space>to '~'not used, except '0' and '^' followed byCTRL-D|i_0_CTRL-D|0CTRL-Ddelete all indent in the current line |i_^_CTRL-D|^CTRL-Ddelete all indent in the current line, restore it in the next line |i_<Del>|<Del>delete character under the cursor Meta characters (0x80 to 0xff, 128 to 255) not used |i_<Left>|<Left>cursor one character left |i_<S-Left>|<S-Left>cursor one word left |i_<C-Left>|<C-Left>cursor one word left |i_<Right>|<Right>cursor one character right |i_<S-Right>|<S-Right>cursor one word right |i_<C-Right>|<C-Right>cursor one word right |i_<Up>|<Up>cursor one line up |i_<S-Up>|<S-Up>same as<PageUp>|i_<Down>|<Down>cursor one line down |i_<S-Down>|<S-Down>same as<PageDown>|i_<Home>|<Home>cursor to start of line |i_<C-Home>|<C-Home>cursor to start of file |i_<End>|<End>cursor past end of line |i_<C-End>|<C-End>cursor past end of file |i_<PageUp>|<PageUp>one screenfull backward |i_<PageDown>|<PageDown>one screenfull forward |i_<F1>|<F1>same as<Help>|i_<Help>|<Help>stop insert mode and display help window |i_<Insert>|<Insert>toggle Insert/Replace mode |i_<LeftMouse>|<LeftMouse>cursor at mouse click |i_<MouseDown>|<MouseDown>scroll three lines downwards |i_<S-MouseDown>|<S-MouseDown>scroll a full page downwards |i_<MouseUp>|<MouseUp>scroll three lines upwards |i_<S-MouseUp>|<S-MouseUp>scroll a full page upwards commands inCTRL-Xsubmode |i_CTRL-X_CTRL-D|CTRL-XCTRL-Dcomplete defined identifiers |i_CTRL-X_CTRL-E|CTRL-XCTRL-Escroll up |i_CTRL-X_CTRL-F|CTRL-XCTRL-Fcomplete file names |i_CTRL-X_CTRL-I|CTRL-XCTRL-Icomplete identifiers |i_CTRL-X_CTRL-K|CTRL-XCTRL-Kcomplete identifiers from dictionary |i_CTRL-X_CTRL-L|CTRL-XCTRL-Lcomplete whole lines |i_CTRL-X_CTRL-N|CTRL-XCTRL-Nnext completion |i_CTRL-X_CTRL-P|CTRL-XCTRL-Pprevious completion |i_CTRL-X_CTRL-Y|CTRL-XCTRL-Yscroll down |i_CTRL-X_CTRL-]|CTRL-XCTRL-]complete tags{not available when compiled without the +insert_expand feature}
2. Normal mode*normal-index* CHAR any non-blank character WORD a sequence of non-blank characters N a number entered before the command{motion}a cursor movement command Nmove the text that is moved over with a{motion}SECTION a section that possibly starts with '}' instead of '{'note:1 = cursor movement command; 2 = can be undone/redonetagcharnoteaction in Normal mode
CTRL-@ not used |CTRL-A|CTRL-A2 add N to number at/after cursor |CTRL-B|CTRL-B1 scroll N screens Backwards |CTRL-C|CTRL-Cinterrupt current (search) command |CTRL-D|CTRL-Dscroll Down N lines (default: half a screen) |CTRL-E|CTRL-Escroll N lines upwards (N lines Extra) |CTRL-F|CTRL-F1 scroll N screens Forward |CTRL-G|CTRL-Gdisplay current file name and position |<BS>|<BS>1 same as "h" |CTRL-H|CTRL-H1 same as "h" |<Tab>|<Tab>1 go to N newer entry in jump list |CTRL-I|CTRL-I1 same as<Tab>|<NL>|<NL>1 same as "j" |CTRL-J|CTRL-J1 same as "j"CTRL-Knot used |CTRL-L|CTRL-Lredraw screen |<CR>|<CR>1 cursor to the first CHAR N lines lower |CTRL-M|CTRL-M>1 same as<CR>|CTRL-N|CTRL-N1 same as "j" |CTRL-O|CTRL-O1 go to N older entry in jump list |CTRL-P|CTRL-P1 cursor N lines upwardCTRL-Q(used for terminal control flow) |CTRL-R|CTRL-R2 redo changes which were undone with 'u'CTRL-S(used for terminal control flow) |CTRL-T|CTRL-Tjump to N older Tag in tag list |CTRL-U|CTRL-Uscroll N lines Upwards (default: half a screen) |CTRL-V|CTRL-Vstart blockwise Visual mode |CTRL-W|CTRL-W{char}window commands, see |CTRL-W| |CTRL-X|CTRL-X2 subtract N from number at/after cursor |CTRL-Y|CTRL-Yscroll N lines downwards |CTRL-Z|CTRL-Zsuspend program (or start new shell) CTRL-[<Esc>not used |CTRL-\_CTRL-N| CTRL-\CTRL-Ngo to Normal mode (no-op) CTRL-\ a - z reserved for extensions CTRL-\ others not used |CTRL-]|CTRL-] :ta to ident under cursor |CTRL-^|CTRL-^ edit Nth alternate file (equivalent to ":e #N")CTRL-_not used |<Space>|<Space>1 same as "l" |!|!{motion}{filter}2 filter Nmove text through the{filter}command |!!|!!{filter}2 filter N lines through the{filter}command |quote|"{a-zA-Z0-9.%#:-"}use buffer{a-zA-Z0-9.%#:-"}for next delete, yank or put (uppercase to append) ({.%#:}only work with put) |#|#1 search backward for the Nth occurrence of the ident under the cursor |$|$1 cursor to the end of Nth next line |%|%1 find the next (curly/square) bracket on this line and go to its match, or go to matching comment bracket, or go to matching preprocessor directive. |N%|{count}%1 go to N percentage in the file |&|&2 repeat last :s |'|'{a-zA-Z0-9}1 cursor to the first CHAR on the line with mark{a-zA-Z0-9}|''|''1 cursor to the first CHAR of the line where the cursor was before the latest jump. |'(|'(1 cursor to the first CHAR on the line of the start of the current sentence |')|')1 cursor to the first CHAR on the line of the end of the current sentence |'<|'<1 cursor to the first CHAR of the line where highlighted area starts/started in the current buffer. |'>|'>1 cursor to the first CHAR of the line where highlighted area ends/ended in the current buffer. |'[|'[1 cursor to the first CHAR on the line of the start of last operated text or start of putted text |']|']1 cursor to the first CHAR on the line of the end of last operated text or end of putted text |'{|'{1 cursor to the first CHAR on the line of the start of the current paragraph |'}|'}1 cursor to the first CHAR on the line of the end of the current paragraph |(|(1 cursor N sentences backward |)|)1 cursor N sentences forward |star|*1 search forward for the Nth occurrence of the ident under the cursor |+|+1 cursor to the first CHAR N lines lower |,|,1 repeat latest f, t, F or T in opposite direction N times |-|-1 cursor to the first CHAR N lines higher |.|.2 repeat last change with count replaced with N |/|/{pattern}<CR>1 search forward for the Nth occurrence of{pattern}|/<CR>|/<CR>1 search forward for{pattern}of last search |count|01 cursor to the first char of the line |count|1 prepend to command to give a count |count|2" |count|3" |count|4" |count|5" |count|6" |count|7" |count|8" |count|9" |:|:1 start entering an Ex command |N:|{count}: start entering an Ex command with range from current line to N lines down |;|;1 repeat latest f, t, F or T N times |<|<{motion}2 shift Nmove lines one 'shiftwidth' leftwards |<<|<<2 shift N lines one 'shiftwidth' leftwards |=|={motion}2 filter Nmove lines through "indent" |==|==2 filter N lines through "indent" |>|>{motion}2 shift Nmove lines one 'shiftwidth' rightwards |>>|>>2 shift N lines one 'shiftwidth' rightwards |?|?{pattern}<CR>1 search backward for the Nth previous occurrence of{pattern}|?<CR>|?<CR>1 search backward for{pattern}of last search |@|@{a-z}2 execute the contents of named buffer{a-z}N times |@:|@: repeat the previous ":" command N times |@@|@@2 repeat the previous @{a-z}N times |A|A2 append text after the end of the line N times |B|B1 cursor N WORDS backward |C|["x]C2 change from the cursor position to the end of the line, and N-1 more lines [into buffer x]; synonym for "c$" |D|["x]D2 delete the characters under the cursor until the end of the line and N-1 more lines [into buffer x]; synonym for "d$" |E|E1 cursor forward to the end of WORD N |F|F{char}1 cursor to the Nth occurrence of{char}to the left |G|G1 cursor to line N, default last line |H|H1 cursor to line N from top of screen |I|I2 insert text before the first CHAR on the line N times |J|J2 Join N lines; default is 2 |K|K lookup Keyword under the cursor with 'keywordprg' |L|L1 cursor to line N from bottom of screen |M|M1 cursor to middle line of screen |N|N1 repeat the latest '/' or '?' N times in opposite direction |O|O2 begin a new line above the cursor and insert text, repeat N times |P|["x]P2 put the text [from buffer x] before the cursor N times |Q|Q switch to "Ex" mode |R|R2 enter replace mode: overtype existing characters, repeat the entered text N-1 times |S|["x]S2 delete N lines [into buffer x] and start insert; synonym for "^cc" or "0cc", depending on autoindent |T|T{char}1 cursor till after Nth occurrence of{char}to the left |U|U2 undo all latest changes on one line |V|V start linewise Visual mode |W|W1 cursor N WORDS forward |X|["x]X2 delete N characters before the cursor [into buffer x] |Y|["x]Y yank N lines [into buffer x]; synonym for "yy" |ZZ|ZZ store current file if modified, and exit |ZQ|ZQ exit current file always |[|[{char}square bracket command (see below) \ not used |]|]{char}square bracket command (see below) |^|^1 cursor to the first CHAR of the line |_|_1 cursor to the first CHAR N - 1 lines lower |`|`{a-zA-Z0-9}1 cursor to the mark{a-zA-Z0-9}|`(|`(1 cursor to the start of the current sentence |`)|`)1 cursor to the end of the current sentence |`<|`<1 cursor to the start of the highlighted area |`>|`>1 cursor to the end of the highlighted area |`[|`[1 cursor to the start of last operated text or start of putted text |`]|`]1 cursor to the end of last operated text or end of putted text |``|``1 cursor to the position before latest jump |`{|`{1 cursor to the start of the current paragraph |`}|`}1 cursor to the end of the current paragraph |a|a2 append text after the cursor N times |b|b1 cursor N words backward |c|["x]c{motion}2 delete Nmove text [into buffer x] and start insert |cc|["x]cc2 delete N lines [into buffer x] and start insert |d|["x]d{motion}2 delete Nmove text [into buffer x] |dd|["x]dd2 delete N lines [into buffer x] |do|do2 same as ":diffget" |dp|dp2 same as ":diffput" |e|e1 cursor forward to the end of word N |f|f{char}1 cursor to Nth occurrence of{char}to the right |g|g{char}extended commands, see below |h|h1 cursor N chars to the left |i|i2 insert text before the cursor N times |j|j1 cursor N lines downward |k|k1 cursor N lines upward |l|l1 cursor N chars to the right |m|m{A-Za-z}set mark{A-Za-z}at cursor position |n|n1 repeat the latest '/' or '?' N times |o|o2 begin a new line below the cursor and insert text, repeat N times |p|["x]p2 put the text [from register x] after the cursor N times |q|q{0-9a-zA-Z"}record typed characters into named register{0-9a-zA-Z"}(uppercase to append) |q|q (while recording) stops recording |q:|q: edit : command-line in command-line window |q/|q/ edit / command-line in command-line window |q?|q? edit ? command-line in command-line window |r|r{char}2 replace N chars with{char}|s|["x]s2 (substitute) delete N characters [into buffer x] and start insert |t|t{char}1 cursor till before Nth occurrence of{char}to the right |u|u2 undo changes |v|v start characterwise Visual mode |w|w1 cursor N words forward |x|["x]x2 delete N characters under and after the cursor [into buffer x] |y|["x]y{motion}yank Nmove text [into buffer x] |yy|["x]yy yank N lines [into buffer x] |z|z{char}commands starting with 'z', see below |{|{1 cursor N paragraphs backward |bar||1 cursor to column N |}|}1 cursor N paragraphs forward |~|~2 'tildeop' off: switch case of N characters under cursor and move the cursor N characters to the right |~|~{motion}'tildeop' on: switch case of Nmove text |<C-End>|<C-End>1 same as "G" |<C-Home>|<C-Home>1 same as "gg" |<C-Left>|<C-Left>1 same as "b" |<C-LeftMouse>|<C-LeftMouse>":ta" to the keyword at the mouse click |<C-Right>|<C-Right>1 same as "w" |<C-RightMouse>|<C-RightMouse>same as "CTRL-T" |<Del>|["x]<Del>2 same as "x" |N<Del>|{count}<Del>remove the last digit from{count}|<Down>|<Down>1 same as "j" |<End>|<End>1 same as "$" |<F1>|<F1>same as<Help>|<Help>|<Help>open a help window |<Home>|<Home>1 same as "0" |<Insert>|<Insert>2 same as "i" |<Left>|<Left>1 same as "h" |<LeftMouse>|<LeftMouse>1 move cursor to the mouse click position |<MiddleMouse>|<MiddleMouse>2 same as "P" at the mouse click position |<PageDown>|<PageDown>same asCTRL-F|<PageUp>|<PageUp>same asCTRL-B|<Right>|<Right>1 same as "l" |<RightMouse>|<RightMouse>start Visual mode, move cursor to the mouse click position |<S-Down>|<S-Down>1 same asCTRL-F|<S-Left>|<S-Left>1 same as "b" |<S-LeftMouse>|<S-LeftMouse>same as "*" at the mouse click position |<S-Right>|<S-Right>1 same as "w" |<S-RightMouse>|<S-RightMouse>same as "#" at the mouse click position |<S-Up>|<S-Up>1 same asCTRL-B|<Undo>|<Undo>2 same as "u" |<Up>|<Up>1 same as "k" |<MouseDown>|<MouseDown>scroll three lines downwards |<S-MouseDown>|<S-MouseDown>scroll a full page downwards |<MouseUp>|<MouseUp>scroll three lines upwards |<S-MouseUp>|<S-MouseUp>scroll a full page upwards
2.1 Text objects*objects*
These can be used after an operator or in Visual mode to select an object.
tagcommand action in Normal mode
|v_a(|a( same as ab |v_a)|a) same as ab |v_a<|a< "a <>" from '<' to the matching '>' |v_a>|a> same as a< |v_aB|aB "a Block" from "[{" to "]}" (with brackets) |v_aW|aW "a WORD" (with white space) |v_a[|a[ "a []" from '[' to the matching ']' |v_a]|a] same as a[ |v_ab|ab "a block" from "[(" to "])" (with braces) |v_ap|ap "a paragraph" (with white space) |v_as|as "a sentence" (with white space) |v_aw|aw "a word" (with white space) |v_a{|a{ same as aB |v_a}|a} same as aB |v_i(|i( same as ib |v_i)|i) same as ib |v_i<|i< "inner <>" from '<' to the matching '>' |v_i>|i> same as i< |v_iB|iB "inner Block" from "[{" and "]}" |v_iW|iW "inner WORD" |v_i[|i[ "inner []" from '[' to the matching ']' |v_i]|i] same as i[ |v_ib|ib "inner block" from "[(" to "])" |v_ip|ip "inner paragraph" |v_is|is "inner sentence" |v_iw|iw "inner word" |v_i{|i{ same as iB |v_i}|i} same as iB
2.2 Window commands*CTRL-W*
tagcommand action in Normal mode
|CTRL-W_CTRL-B|CTRL-WCTRL-Bsame as "CTRL-Wb" |CTRL-W_CTRL-C|CTRL-WCTRL-Csame as "CTRL-Wc" |CTRL-W_CTRL-D|CTRL-WCTRL-Dsame as "CTRL-Wd" |CTRL-W_CTRL-F|CTRL-WCTRL-Fsame as "CTRL-Wf"CTRL-WCTRL-Gsame as "CTRL-Wg .." |CTRL-W_CTRL-H|CTRL-WCTRL-Hsame as "CTRL-Wh" |CTRL-W_CTRL-I|CTRL-WCTRL-Isame as "CTRL-Wi" |CTRL-W_CTRL-J|CTRL-WCTRL-Jsame as "CTRL-Wj" |CTRL-W_CTRL-K|CTRL-WCTRL-Ksame as "CTRL-Wk" |CTRL-W_CTRL-L|CTRL-WCTRL-Lsame as "CTRL-Wl" |CTRL-W_CTRL-N|CTRL-WCTRL-Nsame as "CTRL-Wn" |CTRL-W_CTRL-O|CTRL-WCTRL-Osame as "CTRL-Wo" |CTRL-W_CTRL-P|CTRL-WCTRL-Psame as "CTRL-Wp" |CTRL-W_CTRL-Q|CTRL-WCTRL-Qsame as "CTRL-Wq" |CTRL-W_CTRL-R|CTRL-WCTRL-Rsame as "CTRL-Wr" |CTRL-W_CTRL-S|CTRL-WCTRL-Ssame as "CTRL-Ws" |CTRL-W_CTRL-T|CTRL-WCTRL-Tsame as "CTRL-Wt" |CTRL-W_CTRL-V|CTRL-WCTRL-Vsame as "CTRL-Wv" |CTRL-W_CTRL-W|CTRL-WCTRL-Wsame as "CTRL-Ww" |CTRL-W_CTRL-X|CTRL-WCTRL-Xsame as "CTRL-Wx" |CTRL-W_CTRL-Z|CTRL-WCTRL-Zsame as "CTRL-Wz" |CTRL-W_CTRL-]|CTRL-WCTRL-] same as "CTRL-W]" |CTRL-W_CTRL-^|CTRL-WCTRL-^ same as "CTRL-W^" |CTRL-W_CTRL-_|CTRL-WCTRL-_same as "CTRL-W_" |CTRL-W_+|CTRL-W+ increase current window height N lines |CTRL-W_-|CTRL-W- decrease current window height N lines |CTRL-W_<|CTRL-W< decrease current window width N columns |CTRL-W_=|CTRL-W= make all windows the same height |CTRL-W_>|CTRL-W> increase current window width N columns |CTRL-W_H|CTRL-WH move current window to the far left |CTRL-W_J|CTRL-WJ move current window to the very bottom |CTRL-W_K|CTRL-WK move current window to the very top |CTRL-W_L|CTRL-WL move current window to the far right |CTRL-W_P|CTRL-WP go to preview window |CTRL-W_R|CTRL-WR rotate windows upwards N times |CTRL-W_S|CTRL-WS same as "CTRL-Ws" |CTRL-W_W|CTRL-WW go to N previous window (wrap around) |CTRL-W_]|CTRL-W] split window and jump to tag under cursor |CTRL-W_^|CTRL-W^ split current window and edit alternate file N |CTRL-W__|CTRL-W_ set current window height to N (default: very high) |CTRL-W_b|CTRL-Wb go to bottom window |CTRL-W_c|CTRL-Wc close current window (like |:close|) |CTRL-W_d|CTRL-Wd split window and jump to definition under the cursor |CTRL-W_f|CTRL-Wf split window and edit file name under the cursor |CTRL-W_g_CTRL-]|CTRL-Wg CTRL-] split window and do |:tjump| to tag under cursor |CTRL-W_g]|CTRL-Wg ] split window and do |:tselect| for tag under cursor |CTRL-W_g}|CTRL-Wg } do a |:ptjump| to the tag under the cursor |CTRL-W_h|CTRL-Wh go to Nth left window (stop at first window) |CTRL-W_i|CTRL-Wi split window and jump to declaration of identifier under the cursor |CTRL-W_j|CTRL-Wj go to N next window (stop at last window) |CTRL-W_k|CTRL-Wk go to N previous window (stop at first window) |CTRL-W_l|CTRL-Wl go to Nth right window (stop at last window) |CTRL-W_n|CTRL-Wn open new window, N lines high |CTRL-W_o|CTRL-Wo close all but current window (like |:only|) |CTRL-W_p|CTRL-Wp go to previous (last accessed) window |CTRL-W_q|CTRL-Wq quit current window (like |:quit|) |CTRL-W_r|CTRL-Wr rotate windows downwards N times |CTRL-W_s|CTRL-Ws split current window in two parts, new window N lines high |CTRL-W_t|CTRL-Wt go to top window |CTRL-W_v|CTRL-Wv split current window vertically, new window N lines wide |CTRL-W_w|CTRL-Ww go to N next window (wrap around) |CTRL-W_x|CTRL-Wx exchange current window with window N (default: next window) |CTRL-W_z|CTRL-Wz close preview window |CTRL-W_bar|CTRL-W| set window width to N columns |CTRL-W_}|CTRL-W} show tag under cursor in preview window |CTRL-W_<Down>|CTRL-W<Down>same as "CTRL-Wj" |CTRL-W_<Up>|CTRL-W<Up>same as "CTRL-Wk" |CTRL-W_<Left>|CTRL-W<Left>same as "CTRL-Wh" |CTRL-W_<Right>|CTRL-W<Right>same as "CTRL-Wl"
2.3 Square bracket commands*[* *]*
tagchar note action in Normal mode
|[_CTRL-D|[_CTRL-Djump to first #define found in current and included files matching the word under the cursor, start searching at beginning of current file |[_CTRL-I|[_CTRL-Ijump to first line in current and included files that contains the word under the cursor, start searching at beginning of current file |[#|[#1 cursor to N previous unmatched #if, #else or #ifdef |['|['1 cursor to previous lowercase mark, on first non-blank |[(|[(1 cursor N times back to unmatched '(' |[star|[*1 same as "[/" |[`|[`1 cursor to previous lowercase mark |[/|[/1 cursor to N previous start of a C comment |[D|[D list all defines found in current and included files matching the word under the cursor, start searching at beginning of current file |[I|[I list all lines found in current and included files that contain the word under the cursor, start searching at beginning of current file |[P|[P2 same as "[p" |[[|[[1 cursor N sections backward |[]|[]1 cursor N SECTIONS backward |[c|[c1 cursor N times backwards to start of change |[d|[d show first #define found in current and included files matching the word under the cursor, start searching at beginning of current file |[f|[f same as "gf" |[i|[i show first line found in current and included files that contains the word under the cursor, start searching at beginning of current file |[p|[p2 like "P", but adjust indent to current line |[m|[m1 cursor N times back to start of member function |[z|[z1 move to start of open fold |[{|[{1 cursor N times back to unmatched '{' |[<MiddleMouse>[<MiddleMouse>2 same as "[p" |]_CTRL-D|]_CTRL-Djump to first #define found in current and included files matching the word under the cursor, start searching at cursor position |]_CTRL-I|]_CTRL-Ijump to first line in current and included files that contains the word under the cursor, start searching at cursor position |]#|]#1 cursor to N next unmatched #endif or #else |]'|]'1 cursor to next lowercase mark, on first non-blank |])|])1 cursor N times forward to unmatched ')' |]star|]*1 same as "]/" |]`|]`1 cursor to next lowercase mark |]/|]/1 cursor to N next end of a C comment |]D|]D list all #defines found in current and included files matching the word under the cursor, start searching at cursor position |]I|]I list all lines found in current and included files that contain the word under the cursor, start searching at cursor position |]P|]P2 same as "[p" |][|][1 cursor N SECTIONS forward |]]|]]1 cursor N sections forward |]c|]c1 cursor N times forward to start of change |]d|]d show first #define found in current and included files matching the word under the cursor, start searching at cursor position |]f|]f same as "gf" |]i|]i show first line found in current and included files that contains the word under the cursor, start searching at cursor position |]p|]p2 like "p", but adjust indent to current line |]m|]m1 cursor N times forward to end of member function |]z|]z1 move to end of open fold |]}|]}1 cursor N times forward to unmatched '}' |]<MiddleMouse>]<MiddleMouse>2 same as "]p"
2.4 Commands starting with 'g'*g*
tagchar note action in Normal mode
|g_CTRL-A|g_CTRL-Aonly when compiled with MEM_PROFILE defined: dump a memory profile |g_CTRL-G|g_CTRL-Gshow information about current cursor position |g_CTRL-H|g_CTRL-Hstart Select block mode |g_CTRL-]|g_CTRL-] |:tjump| to the tag under the cursor |g#|g#1 like "#", but without using "\<" and "\>" |g$|g$1 when 'wrap' off go to rightmost character of the current line that is on the screen; when 'wrap' on go to the rightmost character of the current screen line |g&|g&2 repeat last ":s" on all lines |g'|g'{mark}1 like |'| but without changing the jumplist |g`|g`{mark}1 like |`| but without changing the jumplist |gstar|g*1 like "*", but without using "\<" and "\>" |g0|g01 when 'wrap' off go to leftmost character of the current line that is on the screen; when 'wrap' on go to the leftmost character of the current screen line |g8|g8 print hex value of bytes used in UTF-8 character under the cursor |g?|g?2 Rot13 encoding operator |g?g?|g??2 Rot13 encode current line |g?g?|g?g?2 Rot13 encode current line |gD|gD1 go to definition of word under the cursor in current file |gE|gE1 go backwards to the end of the previous WORD |gH|gH start Select line mode |gI|gI2 like "I", but always start in column 1 |gJ|gJ2 join lines without inserting space |gP|["x]gP2 put the text [from register x] before the cursor N times, leave the cursor after it |gR|gR2 enter virtual replace mode |gU|gU{motion}2 make Nmove text uppercase |gV|gV don't reselect the previous Visual area when executing a mapping or menu in Select mode |g]|g] :tselect on the tag under the cursor |g^|g^1 when 'wrap' off go to leftmost non-white character of the current line that is on the screen; when 'wrap' on go to the leftmost non-white character of the current screen line |ga|ga print ascii value of character under the cursor |gd|gd1 go to definition of word under the cursor in current function |ge|ge1 go backwards to the end of the previous word |gf|gf start editing the file whose name is under the cursor |gg|gg1 cursor to line N, default first line |gh|gh start Select mode |gi|gi2 like "i", but first move to the |'^| mark |gj|gj1 like "j", but when 'wrap' on go N screen lines down |gk|gk1 like "k", but when 'wrap' on go N screen lines up |gm|gm1 go to character at middle of the screenline |go|go1 cursor to byte N in the buffer |gp|["x]gp2 put the text [from register x] after the cursor N times, leave the cursor after it |gq|gq{motion}2 format Nmove text |gr|gr{char}2 virtual replace N chars with{char}|gs|gs go to sleep for N seconds (default 1) |gu|gu{motion}2 make Nmove text lowercase |gv|gv reselect the previous Visual area |g~|g~{motion}2 swap case for Nmove text |g<Down>|g<Down>1 same as "gj" |g<End>|g<End>1 same as "g$" |g<Home>|g<Home>1 same as "g0" |g<LeftMouse>|g<LeftMouse>same as<C-LeftMouse>g<MiddleMouse>same as<C-MiddleMouse>|g<RightMouse>|g<RightMouse>same as<C-RightMouse>|g<Up>|g<Up>1 same as "gk"
2.5 Commands starting with 'z'*z*
tagchar note action in Normal mode
|z<CR>|z<CR>redraw, cursor line to top of window, cursor on first non-blank |zN<CR>|z{height}<CR>redraw, make window{height}lines high |z+|z+ cursor on line N (default line below window), otherwise like "z<CR>" |z-|z- redraw, cursor line at bottom of window, cursor on first non-blank |z.|z. redraw, cursor line to center of window, cursor on first non-blank |zA|zA open a closed fold or close an open fold recursively |zC|zC close folds recursively |zD|zD delete folds recursively |zE|zE eliminate all folds |zF|zF create a fold for N lines |zM|zM set 'foldlevel' to zero |zN|zN set 'foldenable' |zO|zO open folds recursively |zR|zR set 'foldlevel' to the deepest fold |zX|zX re-apply 'foldlevel' |z^|z^ cursor on line N (default line above window), otherwise like "z-" |za|za open a closed fold, close an open fold |zb|zb redraw, cursor line at bottom of window |zc|zc close a fold |zd|zd delete a fold |ze|ze when 'wrap' off scroll horizontally to position the cursor at the end (right side) of the screen |zf|zf{motion}create a fold for Nmove text |zh|zh when 'wrap' off scroll screen N characters to the right |zi|zi toggle 'foldenable' |zj|zj1 move to the start of the next fold |zk|zk1 move to the end of the previous fold |zl|zl when 'wrap' off scroll screen N characters to the left |zm|zm subtract one from 'foldlevel' |zn|zn reset 'foldenable' |zo|zo open fold |zr|zr add one to 'foldlevel' |zs|zs when 'wrap' off scroll horizontally to position the cursor at the start (left side) of the screen |zt|zt redraw, cursor line at top of window |zv|zv open enough folds to view the cursor line |zx|zx re-apply 'foldlevel' and do "zv" |zz|zz redraw, cursor line at center of window |z<Left>|z<Left>same as "zh" |z<Right>|z<Right>same as "zl"
3. Visual mode*visual-index*
Most commands in Visual mode are the same as in Normal mode. The ones listed
here are those that are different.
tagcommand note action in Visual mode
|v_CTRL-\_CTRL-N| CTRL-\CTRL-Nstop Visual mode |v_CTRL-G|CTRL-Gtoggle between Visual mode and Select mode |v_<BS>|<BS>2 Select mode: delete highlighted area |v_CTRL-H|CTRL-H2 same as<BS>|v_CTRL-O|CTRL-Oswitch from Select to Visual mode for one command |v_CTRL-V|CTRL-Vmake Visual mode blockwise or stop Visual mode |v_CTRL-]|CTRL-] jump to highlighted tag |v_!|!{filter}2 filter the highlighted lines through the external command{filter}|v_:|: start a command-line with the highlighted lines as a range |v_<|<2 shift the highlighted lines one 'shiftwidth' left |v_=|=2 filter the highlighted lines through the external program given with the 'equalprg' option |v_>|>2 shift the highlighted lines one 'shiftwidth' right |v_b_A|A2 block mode: append same text in all lines, after the highlighted area |v_C|C2 delete the highlighted lines and start insert |v_D|D2 delete the highlighted lines |v_b_I|I2 block mode: insert same text in all lines, before the highlighted area |v_J|J2 join the highlighted lines |v_K|K run 'keywordprg' on the highlighted area |v_O|O Move horizontally to other corner of area. Q does not start Ex mode |v_R|R2 delete the highlighted lines and start insert |v_S|S2 delete the highlighted lines and start insert |v_U|U2 make highlighted area uppercase |v_V|V make Visual mode linewise or stop Visual mode |v_X|X2 delete the highlighted lines |v_Y|Y yank the highlighted lines |v_a(|a( same as ab |v_a)|a) same as ab |v_a<|a< extend highlighted area with a <>block |v_a>|a> same as a< |v_aB|aB extend highlighted area with a{}block |v_aW|aW extend highlighted area with "a WORD" |v_a[|a[ extend highlighted area with a [] block |v_a]|a] same as a[ |v_ab|ab extend highlighted area with a () block |v_ap|ap extend highlighted area with a paragraph |v_as|as extend highlighted area with a sentence |v_aw|aw extend highlighted area with "a word" |v_a{|a{ same as aB |v_a}|a} same as aB |v_c|c2 delete highlighted area and start insert |v_d|d2 delete highlighted area |v_gJ|gJ2 join the highlighted lines without inserting spaces |v_gq|gq2 format the highlighted lines |v_gv|gv exchange current and previous highlighted area |v_i(|i( same as ib |v_i)|i) same as ib |v_i<|i< extend highlighted area with inner <>block |v_i>|i> same as i< |v_iB|iB extend highlighted area with inner{}block |v_iW|iW extend highlighted area with "inner WORD" |v_i[|i[ extend highlighted area with inner [] block |v_i]|i] same as i[ |v_ib|ib extend highlighted area with inner () block |v_ip|ip extend highlighted area with inner paragraph |v_is|is extend highlighted area with inner sentence |v_iw|iw extend highlighted area with "inner word" |v_i{|i{ same as iB |v_i}|i} same as iB |v_o|o move cursor to other corner of area |v_r|r2 delete highlighted area and start insert |v_s|s2 delete highlighted area and start insert |v_u|u2 make highlighted area lowercase |v_v|v make Visual mode characterwise or stop Visual mode |v_x|x2 delete the highlighted area |v_y|y yank the highlighted area |v_~|~2 swap case for the highlighted area
4. Command-line editing*ex-edit-index* Get to the command-line with the ':', '!', '/' or '?' commands. Normal characters are inserted at the current cursor position. "Completion" below refers to context-sensitive completion. It will complete file names, tags, commands etc. as appropriate. CTRL-@not used |c_CTRL-A|CTRL-Ado completion on the pattern in front of the cursor and insert all matches |c_CTRL-B|CTRL-Bcursor to begin of command-line |c_CTRL-C|CTRL-Csame as<ESC>|c_CTRL-D|CTRL-Dlist completions that match the pattern in front of the cursor |c_CTRL-E|CTRL-Ecursor to end of command-line |'cedit'|CTRL-Fdefault value for 'cedit': opens the command-line window; otherwise not usedCTRL-Gnot used |c_<BS>|<BS>delete the character in front of the cursor |c_digraph|{char1}<BS>{char2}enter digraph when 'digraph' is on |c_CTRL-H|CTRL-Hsame as<BS>|c_<Tab>|<Tab>if 'wildchar' is<Tab>: Do completion on the pattern in front of the cursor |c_<S-Tab>|<S-Tab>same asCTRL-P|c_wildchar|'wildchar'Do completion on the pattern in front of the cursor (default:<Tab>) |c_CTRL-I|CTRL-Isame as<Tab>|c_<NL>|<NL>same as<CR>|c_CTRL-J|CTRL-Jsame as<CR>|c_CTRL-K|CTRL-K{char1}{char2}enter digraph |c_CTRL-L|CTRL-Ldo completion on the pattern in front of the cursor and insert the longest common part |c_<CR>|<CR>execute entered command |c_<CR>|CTRL-Msame as<CR>|c_CTRL-N|CTRL-Nafter using 'wildchar' with multiple matches: go to next match, otherwise: same as<Down>CTRL-Onot used |c_CTRL-P|CTRL-Pafter using 'wildchar' with multiple matches: go to previous match, otherwise: same as<Up>|c_CTRL-Q|CTRL-Qsame asCTRL-V, unless it's used for terminal control flow |c_CTRL-R|CTRL-R{0-9a-z"%#*:=insert the contents of a register or object under the cursor as if typed |c_CTRL-R_CTRL-R|CTRL-FCTRL-PCTRL-WCTRL-A}CTRL-RCTRL-R{0-9a-z"%#*:=insert the contents of a register or object under the cursor literallyCTRL-FCTRL-PCTRL-WCTRL-A}CTRL-S(used for terminal control flow)CTRL-Tnot used |c_CTRL-U|CTRL-Uremove all characters |c_CTRL-V|CTRL-Vinsert next non-digit literally, insert three digit decimal number as a single byte. |c_CTRL-W|CTRL-Wdelete the word in front of the cursorCTRL-Xnot used (reserved for completion)CTRL-Ycopy (yank) modeless selectionCTRL-Znot used (reserved for suspend) |c_<Esc>|<Esc>abandon command-line without executing it |c_<Esc>|CTRL-[same as<Esc>|c_CTRL-\_CTRL-N| CTRL-\CTRL-Ngo to Normal mode, abandon command-line CTRL-\ a - zreserved for extensions CTRL-\ othersnot used CTRL-]not used |c_CTRL-^|CTRL-^toggle use of |:lmap| mappings |c_CTRL-_|CTRL-_when 'allowrevins' set: change language (Hebrew, Farsi) |c_<Del>|<Del>delete the character under the cursor |c_<Left>|<Left>cursor left |c_<S-Left>|<S-Left>cursor one word left |c_<C-Left>|<C-Left>cursor one word left |c_<Right>|<Right>cursor right |c_<S-Right>|<S-Right>cursor one word right |c_<C-Right>|<C-Right>cursor one word right |c_<Up>|<Up>recall previous command-line from history that matches pattern in front of the cursor |c_<S-Up>|<S-Up>recall previous command-line from history |c_<Down>|<Down>recall next command-line from history that matches pattern in front of the cursor |c_<S-Down>|<S-Down>recall next command-line from history |c_<Home>|<Home>cursor to start of command-line |c_<End>|<End>cursor to end of command-line |c_<PageDown>|<PageDown>same as<S-Down>|c_<PageUp>|<PageUp>same as<S-Up>|c_<Insert>|<Insert>toggle insert/overstrike mode |c_<LeftMouse>|<LeftMouse>cursor at mouse click You found it, Arthur!*holy-grail*
5. EX commands*ex-cmd-index* *:index* This is a brief but complete listing of all the ":" commands, without mentioning any arguments. The optional part of the command name is inside []. The commands are sorted on the non-optional part of their name. |:!|:!filter lines or execute an external command |:!!|:!!repeat last ":!" command |:#|:#same as ":number" |:&|:&repeat last ":substitute" |:star|:*execute contents of a register |:<|:<shift lines one 'shiftwidth' left |:=|:=print the cursor line number |:>|:>shift lines one 'shiftwidth' right |:@|:@execute contents of a register |:@@|:@@repeat the previous ":@" |:Next|:N[ext]go to previous file in the argument list |:Print|:P[rint]print lines |:X|:Xask for encryption key |:append|:a[ppend]append text |:abbreviate|:ab[breviate]enter abbreviation |:abclear|:abc[lear]remove all abbreviations |:all|:al[l]open a window for each file in the argument list |:amenu|:am[enu]enter new menu item for all modes |:anoremenu|:an[oremenu]enter a new menu for all modes that will not be remapped |:args|:ar[gs]print the argument list |:argadd|:arga[dd]add items to the argument list |:argdelete|:argd[elete]delete items from the argument list |:argdo|:argdodo a command on all items in the argument list |:argglobal|:argg[lobal]define the global argument list |:arglocal|:argl[ocal]define a local argument list |:argument|:argu[ment]go to specific file in the argument list |:ascii|:as[cii]print ascii value of character under the cursor |:autocmd|:au[tocmd]enter or show autocommands |:augroup|:aug[roup]select the autocommand group to use |:aunmenu|:aun[menu]remove menu for all modes |:buffer|:b[uffer]go to specific buffer in the buffer list |:bNext|:bN[ext]go to next buffer in the buffer list |:ball|:ba[ll]open a window for each file in the buffer list |:badd|:bad[d]add file to the buffer list |:bdelete|:bd[elete]remove a file from the buffer list |:behave|:be[have]set mouse and selection behavior |:bfirst|:bf[irst]go to first file in the buffer list |:blast|:bl[ast]go to last file in the buffer list |:bmodified|:bm[odified]go to next file in the buffer list that has been modified |:bnext|:bn[ext]go to next file in the buffer list |:botright|:bo[tright]make split window appear at bottom or far right |:bprevious|:bp[revious]go to previous file in the buffer list |:brewind|:br[ewind]go to first file in the buffer list |:break|:brea[k]break out of while loop |:browse|:bro[wse]use file selection dialog |:buffers|:bufferslist all files in the buffer list |:bunload|:bun[load]unload a specific buffer |:bwipeout|:bw[ipeout]really delete a buffer |:change|:c[hange]replace a line or series of lines |:cNext|:cN[ext]go to previous error |:cabbrev|:ca[bbrev]like ":abbreviate" but for Command-line mode |:cabclear|:cabc[lear]clear all abbreviations for Command-line mode |:call|:cal[l]call a function |:cc|:ccgo to specific error |:cclose|:ccl[ose]close quickfix window |:cd|:cdchange directory |:center|:ce[nter]format lines at the center |:cfile|:cf[ile]read file with error messages and jump to first |:cfirst|:cfir[st]go to the specified error, default first one |:cgetfile|:cg[etfile]read file with error messages |:chdir|:chd[ir]change directory |:checkpath|:che[ckpath]list included files |:checktime|:checkt[ime]check timestamp of loaded buffers |:clist|:cl[ist]list all errors |:clast|:cla[st]go to the specified error, default last one |:close|:clo[se]close current window |:cmap|:cm[ap]like ":map" but for Command-line mode |:cmapclear|:cmapc[lear]clear all mappings for Command-line mode |:cmenu|:cme[nu]add menu for Command-line mode |:cnext|:cn[ext]go to next error |:cnewer|:cnew[er]go to newer error list |:cnfile|:cnf[ile]go to first error in next file |:cnoremap|:cno[remap]like ":noremap" but for Command-line mode |:cnoreabbrev|:cnorea[bbrev]like ":noreabbrev" but for Command-line mode |:cnoremenu|:cnoreme[nu]like ":noremenu" but for Command-line mode |:copy|:co[py]copy lines |:colder|:col[der]go to older error list |:colorscheme|:colo[rscheme]load a specifi color scheme |:command|:com[mand]create user-defined command |:comclear|:comc[lear]clear all user-defined commands |:compiler|:comp[iler]do settings for a specific compiler |:continue|:con[tinue]go back to :while |:confirm|:conf[irm]prompt user when confirmation required |:copen|:cope[n]open quickfix window |:cprevious|:cp[revious]go to previous error |:cquit|:cq[uit]quit Vim with an error code |:crewind|:cr[ewind]go to the specified error, default first one |:cscope|:cs[cope] execute cscope command |:cstag|:cst[ag]use cscope to jump to a tag |:cunmap|:cu[nmap]like ":unmap" but for Command-line mode |:cunabbrev|:cuna[bbrev]like ":unabbrev" but for Command-line mode |:cunmenu|:cunme[nu]remove menu for Command-line mode |:cwindow|:cw[indow]open or close quickfix window |:delete|:d[elete]delete lines |:debug|:deb[ug]run a command in debugging mode |:delcommand|:delc[ommand]delete user-defined command |:delfunction|:delf[unction]delete a user function |:display|:di[splay]display registers |:diffupdate|:dif[fupdate]update 'diff' buffers |:diffget|:diffg[et]remove differences in current buffer |:diffpatch|:diffp[atch]apply a patch and show differences |:diffput|:diffpu[t]remove differences in other buffer |:diffsplit|:diffs[plit]show differences with another file |:digraphs|:dig[raphs]show or enter digraphs |:djump|:dj[ump]jump to #define |:dlist|:dl[ist]list #defines |:doautocmd|:do[autocmd]apply autocommands to current buffer |:doautoall|:doautoa[ll]apply autocommands for all loaded buffers |:dsearch|:ds[earch]list one #define |:dsplit|:dsp[lit]split window and jump to #define |:edit|:e[dit]edit a file |:echo|:ec[ho]echoes the result of expressions |:echoerr|:echoe[rr]like :echo, show like an error and use history |:echohl|:echoh[l]set highlighting for echo commands |:echomsg|:echom[sg]same as :echo, put message in history |:echon|:echonsame as :echo, but without<EOL>|:else|:el[se]part of an :if command |:elseif|:elsei[f]part of an :if command |:emenu|:em[enu]execute a menu by name |:endif|:en[dif]end previous :if |:endfunction|:endf[unction]end of a user function |:endwhile|:endw[hile]end previous :while |:enew|:ene[w]edit a new, unnamed buffer |:ex|:exsame as ":edit" |:execute|:exe[cute]execute result of expressions |:exit|:exi[t]same as ":xit" |:file|:f[ile]show or set the current file name |:files|:fileslist all files in the buffer list |:filetype|:filet[ype]switch file type detection on/off |:find|:fin[d]find file in 'path' and edit it |:finish|:fini[sh]quit sourcing a Vim script |:first|:fir[st]go to the first file in the argument list |:fixdel|:fix[del]set key code of<Del>|:fold|:fo[ld]create a fold |:foldclose|:foldc[lose]close folds |:folddoopen|:foldd[oopen]execute command on lines not in a closed fold |:folddoclosed|:folddoc[losed]execute command on lines in a closed fold |:foldopen|:foldo[pen]open folds |:function|:fu[nction]define a user function |:global|:g[lobal]execute commands for matching lines |:goto|:go[to]go to byte in the buffer |:grep|:gr[ep]run 'grepprg' and jump to first match |:gui|:gu[i]start the GUI |:gvim|:gv[im]start the GUI |:help|:h[elp]open a help window |:helpfind|:helpf[ind]dialog to open a help window |:highlight|:hi[ghlight]specify highlighting methods |:hide|:hid[e]hide current buffer for a command |:history|:his[tory]print a history list |:insert|:i[nsert]insert text |:iabbrev|:ia[bbrev]like ":abbrev" but for Insert mode |:iabclear|:iabc[lear]like ":abclear" but for Insert mode |:if|:ifexecute commands when condition met |:ijump|:ij[ump]jump to definition of identifier |:ilist|:il[ist]list lines where identifier matches |:imap|:im[ap]like ":map" but for Insert mode |:imapclear|:imapc[lear]like ":mapclear" but for Insert mode |:imenu|:ime[nu]add menu for Insert mode |:inoremap|:ino[remap]like ":noremap" but for Insert mode |:inoreabbrev|:inorea[bbrev]like ":noreabbrev" but for Insert mode |:inoremenu|:inoreme[nu]like ":noremenu" but for Insert mode |:intro|:int[ro]print the introductory message |:isearch|:is[earch]list one line where identifier matches |:isplit|:isp[lit]split window and jump to definition of identifier |:iunmap|:iu[nmap]like ":unmap" but for Insert mode |:iunabbrev|:iuna[bbrev]like ":unabbrev" but for Insert mode |:iunmenu|:iunme[nu]remove menu for Insert mode |:join|:j[oin]join lines |:jumps|:ju[mps]print the jump list |:k|:kset a mark |:list|:l[ist]print lines |:last|:la[st]go to the last file in the argument list |:language|:lan[guage]set the language (locale) |:lcd|:lc[d]change directory locally |:lchdir|:lch[dir]change directory locally |:left|:le[ft]left align lines |:let|:letassign a value to a variable or option |:ls|:lslist all buffers |:loadview|:lo[adview]load view for current window from a file |:move|:m[ove]move lines |:mark|:ma[rk]set a mark |:make|:mak[e]execute external command 'makeprg' and parse error messages |:map|:mapshow or enter a mapping |:mapclear|:mapc[lear]clear all mappings for Normal and Visual mode |:marks|:markslist all marks |:match|:mat[ch]define a match to highlight |:menu|:me[nu]enter a new menu item |:menutranslate| :menut[ranslate] add a menu translation item |:messages|:mes[sages]view previously displayed messages |:mkexrc|:mk[exrc]write current mappings and settings to a file |:mksession|:mks[ession]write session info to a file |:mkvimrc|:mkv[imrc]write current mappings and settings to a file |:mkview|:mkvie[w]write view of current window to a file |:mode|:mod[e]show or change the screen mode |:next|:n[ext]go to next file in the argument list |:new|:newcreate a new empty window |:nmap|:nm[ap]like ":map" but for Normal mode |:nmapclear|:nmapc[lear]clear all mappings for Normal mode |:nmenu|:nme[nu]add menu for Normal mode |:nnoremap|:nn[oremap]like ":noremap" but for Normal mode |:nnoremenu|:nnoreme[nu]like ":noremenu" but for Normal mode |:noremap|:no[remap]enter a mapping that will not be remapped |:nohlsearch|:noh[lsearch]suspend 'hlsearch' highlighting |:noreabbrev|:norea[bbrev]enter an abbreviation that will not be remapped |:noremenu|:noreme[nu]enter a menu that will not be remapped |:normal|:norm[al]execute Normal mode commands |:number|:nu[mber]print lines with line number |:nunmap|:nun[map]like ":unmap" but for Normal mode |:nunmenu|:nunme[nu]remove menu for Normal mode |:open|:o[pen]start open mode (not implemented) |:omap|:om[ap]like ":map" but for Operator-pending mode |:omapclear|:omapc[lear]remove all mappings for Operator-pending mode |:omenu|:ome[nu]add menu for Operator-pending mode |:only|:on[ly]close all windows except current one |:onoremap|:ono[remap]like ":noremap" but for Operator-pending mode |:onoremenu|:onoreme[nu]like ":noremenu" but for Operator-pending mode |:options|:opt[ions]open the options-window |:ounmap|:ou[nmap]like ":unmap" but for Operator-pending mode |:ounmenu|:ounme[nu]remove menu for Operator-pending mode |:print|:p[rint]print lines |:pclose|:pc[lose]close preview window |:perl|:pe[rl]execute Perl command |:perldo|:perld[o]execute Perl command for each line |:pop|:po[p]jump to older entry in tag stack |:ppop|:pp[op]":pop" in preview window |:preserve|:pre[serve]write all text to swap file |:previous|:prev[ious]go to previous file in argument list |:promptfind|:pro[mptfind]Search dialog |:promptrepl|:promptr[epl]Search/Replace dialog |:ptag|:pt[ag]show tag in preview window |:ptNext|:ptN[ext]|:tNext| in preview window |:ptfirst|:ptf[irst]|:trewind| in preview window |:ptjump|:ptj[ump]|:tjump| and show tag in preview window |:ptlast|:ptl[ast]|:tlast| in preview window |:ptnext|:ptn[ext]|:tnext| in preview window |:ptprevious|:ptp[revious]|:tprevious| in preview window |:ptrewind|:ptr[ewind]|:trewind| in preview window |:ptselect|:pts[elect]|:tselect| and show tag in preview window |:put|:pu[t]insert contents of register in the text |:pwd|:pw[d]print current directory |:python|:py[thon]execute Python command |:pyfile|:pyf[ile]execute Python script file |:quit|:q[uit]quit current window (when one window quit Vim) |:quitall|:quita[ll]quit Vim |:qall|:qa[ll]quit Vim |:read|:r[ead]read file into the text |:recover|:rec[over]recover a file from a swap file |:redo|:red[o]redo one undone change |:redir|:redi[r]redirect messages to a file or register |:redraw|:redr[aw]force a redraw of the display |:registers|:reg[isters]display the contents of registers |:resize|:res[ize]change current window height |:retab|:ret[ab]change tab size |:return|:retu[rn]return from a user function |:rewind|:rew[ind]go to the first file in the argument list |:right|:ri[ght]right align text |:runtime|:ru[ntime]source vim scripts in 'runtimepath' |:rviminfo|:rv[iminfo]read from viminfo file |:substitute|:s[ubstitute]find and replace text |:sNext|:sN[ext]split window and go to previous file in argument list |:sargument|:sa[rgument]split window and go to specific file in argument list |:sall|:sal[l]open a window for each file in argument list |:saveas|:sav[eas]save file under another name. |:sbuffer|:sb[uffer]split window and go to specific file in the buffer list |:sbNext|:sbN[ext]split window and go to previous file in the buffer list |:sball|:sba[ll]open a window for each file in the buffer list |:sbfirst|:sbf[irst]split window and go to first file in the buffer list |:sblast|:sbl[ast]split window and go to last file in buffer list |:sbmodified|:sbm[odified]split window and go to modified file in the buffer list |:sbnext|:sbn[ext]split window and go to next file in the buffer list |:sbprevious|:sbp[revious]split window and go to previous file in the buffer list |:sbrewind|:sbr[ewind]split window and go to first file in the buffer list |:scriptnames|:scrip[tnames]list names of all sourced Vim scripts |:scriptencoding| :scripte[ncoding]encoding used in sourced Vim script |:scscope|:scs[cope] split window and execute cscope command |:set|:se[t]show or set options |:setfiletype|:setf[iletype]set 'filetype', unless it was set already |:setglobal|:setg[lobal]show global values of options |:setlocal|:setl[ocal]show or set options locally |:sfind|:sf[ind]split current window and edit file in 'path' |:sfirst|:sfir[st]split window and go to first file in the argument list |:shell|:sh[ell]escape to a shell |:simalt|:si[malt]Win32 GUI: simulate Windows ALT key |:sign|:sig[n]manipulate signs |:silent|:sil[ent]Run a command silently |:sleep|:sl[eep]do nothing for a few seconds |:slast|:sla[st]split window and go to last file in the argument list |:smagic|:sm[agic]:substitute with 'magic' |:snext|:sn[ext]split window and go to next file in the argument list |:sniff|:sni[ff]send request to sniff |:snomagic|:sno[magic]:substitute with 'nomagic' |:source|:so[urce]read Vim or Ex commands from a file |:split|:sp[lit]split current window |:sprevious|:spr[evious]split window and go to previous file in the argument list |:srewind|:sr[ewind]split window and go to first file in the argument list |:stop|:st[op]suspend the editor or escape to a shell |:stag|:sta[g]split window and jump to a tag |:startinsert|:star[tinsert]start Insert mode |:stjump|:stj[ump]do ":tjump" and split window |:stselect|:sts[elect]do ":tselect" and split window |:sunhide|:sun[hide]same as ":unhide" |:suspend|:sus[pend]same as ":stop" |:sview|:sv[iew]split window and edit file read-only |:swapname|:sw[apname]show the name of the current swap file |:syntax|:sy[ntax]syntax highlighting |:syncbind|:sync[bind]sync scroll binding |:t|:tsame as ":copy" |:tNext|:tN[ext]jump to previous matching tag |:tag|:ta[g]jump to tag |:tags|:tagsshow the contents of the tag stack |:tcl|:tc[l]execute Tcl command |:tcldo|:tcld[o]execute Tcl command for each line |:tclfile|:tclf[ile]execute Tcl script file |:tearoff|:te[aroff]tear-off a menu |:tfirst|:tf[irst]jump to first matching tag |:tjump|:tj[ump]like ":tselect", but jump directly when there is only one match |:tlast|:tl[ast]jump to last matching tag |:tmenu|:tm[enu]define menu tooltip |:tnext|:tn[ext]jump to next matching tag |:topleft|:to[pleft]make split window appear at top or far left |:tprevious|:tp[revious]jump to previous matching tag |:trewind|:tr[ewind]jump to first matching tag |:tselect|:ts[elect]list matching tags and select one |:tunmenu|:tu[nmenu]remove menu tooltip |:undo|:u[ndo]undo last change(s) |:unabbreviate|:una[bbreviate]remove abbreviation |:unhide|:unh[ide]open a window for each loaded file in the buffer list |:unlet|:unl[et]delete variable |:unmap|:unm[ap]remove mapping |:unmenu|:unme[nu]remove menu |:update|:up[date]write buffer if modified |:vglobal|:v[global]execute commands for not matching lines |:version|:ve[rsion]print version number and other info |:verbose|:verb[ose]execute command with 'verbose' set |:vertical|:vert[ical]make following command split vertically |:visual|:vi[sual]same as ":edit", but turns off "Ex" mode |:view|:vie[w]edit a file read-only |:vmap|:vm[ap]like ":map" but for Visual mode |:vmapclear|:vmapc[lear]remove all mappings for Visual mode |:vmenu|:vme[nu]add menu for Visual mode |:vnoremap|:vn[oremap]like ":noremap" but for Visual mode |:vnew|:vne[w]create a new empty window, vertically split |:vnoremenu|:vnoreme[nu]like ":noremenu" but for Visual mode |:vsplit|:vs[plit]split current window vertically |:vunmap|:vu[nmap]like ":unmap" but for Visual mode |:vunmenu|:vunme[nu]remove menu for Visual mode |:write|:w[rite]write to a file |:wNext|:wN[ext]write to a file and go to previous file in argument list |:wall|:wa[ll]write all (changed) buffers |:while|:wh[ile]execute loop for as long as condition met |:winsize|:wi[nsize]get or set window size (obsolete) |:wincmd|:winc[md]execute a Window (CTRL-W) command |:winpos|:winp[os]get or set window position |:wnext|:wn[ext]write to a file and go to next file in argument list |:wprevious|:wp[revious]write to a file and go to previous file in argument list |:wq|:wqwrite to a file and quit window or Vim |:wqall|:wqa[ll]write all changed buffers and quit Vim |:wviminfo|:wv[iminfo]write to viminfo file |:xit|:x[it]write if buffer changed and quit window or Vim |:xall|:xa[ll]same as ":wqall" |:yank|:y[ank]yank lines into a register |:z|:zprint some lines |:~|:~repeat last ":substitute" vim:tw=78:ts=8:ft=help:norl:
Generated by vim2html on Sat May 4 18:38:43 CEST 2002