*index.txt* For Vim version 6.0. Last change: 2001 Sep 03
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 ||
2. Normal mode ||
2.1. Text objects ||
2.2. Window commands ||
2.3. Square bracket commands ||
2.4. Commands starting with 'g' ||
2.5. Commands starting with 'z' ||
3. Visual mode ||
4. Command-line editing ||
5. EX commands ||
For an overview of options see help.txt ||.
For a complete description of each option see options.txt ||.
For a complete listing of all help items see ||.
==============================================================================
1. Insert mode *insert-index*
tag char action ~
-----------------------------------------------------------------------
|| CTRL-@ insert previously inserted text and stop
insert
|| CTRL-A insert previously inserted text
CTRL-B not used ||
|| CTRL-C quit insert mode, without checking for
abbreviation, unless 'insertmode' set.
|| CTRL-D delete one shiftwidth of indent in the current
line
|| CTRL-E insert the character which is below the cursor
CTRL-F not used
|| CTRL-G CTRL-J line down, to column where inserting started
|| CTRL-G j line down, to column where inserting started
|| CTRL-G <Down> line down, to column where inserting started
|| CTRL-G CTRL-K line up, to column where inserting started
|| CTRL-G k line up, to column where inserting started
|| CTRL-G <Up> line up, to column where inserting started
|| <BS> delete character before the cursor
|| {char1}<BS>{char2}
enter digraph (only when 'digraph' option set)
|| CTRL-H same as <BS>
|| <Tab> insert a <Tab> character
|| CTRL-I same as <Tab>
|| <NL> same as <CR>
|| CTRL-J same as <CR>
|| CTRL-K {char1} {char2}
enter digraph
|| CTRL-L when 'insertmode' set: Leave Insert mode
|| <CR> begin new line
|| CTRL-M same as <CR>
|| CTRL-N find next match for keyword in front of the
cursor
|| CTRL-O execute a single command and return to insert
mode
|| CTRL-P find previous match for keyword in front of
the cursor
|| CTRL-Q same as CTRL-V (used for terminal control flow)
|| CTRL-R {0-9a-z"%#*:=}
insert the contents of a register
|| CTRL-R CTRL-R {0-9a-z"%#*:=}
insert the contents of a register literally
|| CTRL-R CTRL-O {0-9a-z"%#*:=}
insert the contents of a register literally
and don't auto-indent
|| CTRL-R CTRL-P {0-9a-z"%#*:=}
insert the contents of a register literally
and fix indent.
CTRL-S (used for terminal control flow)
|| CTRL-T insert one shiftwidth of indent in current
line
|| CTRL-U delete all entered characters in the current
line
|| CTRL-V {char} insert next non-digit literally
|| CTRL-V {number} insert three digit decimal number as a single
byte.
|| CTRL-W delete word before the cursor
|| CTRL-X {mode} enter CTRL-X sub mode, see below
|| CTRL-Y insert the character which is above the cursor
|| CTRL-Z when 'insertmode' set: suspend Vim
|| <Esc> end insert mode (unless 'insertmode' set)
|| CTRL-[ same as <Esc>
|| CTRL-\ CTRL-N go to Normal mode
CTRL-\ a - z reserved for extensions
CTRL-\ others not used
|| CTRL-] trigger abbreviation
|| CTRL-^ toggle use of || mappings
|| CTRL-_ When 'allowrevins' set: change language
(Hebrew, Farsi) {only when compiled with
+rightleft feature}
<Space> to '~' not used, except '0' and '^' followed by
CTRL-D
|| 0 CTRL-D delete all indent in the current line
|| ^ CTRL-D delete all indent in the current line, restore
it in the next line
|| <Del> delete character under the cursor
Meta characters (0x80 to 0xff, 128 to 255)
not used
|| <Left> cursor one character left
|| <S-Left> cursor one word left
|| <C-Left> cursor one word left
|| <Right> cursor one character right
|| <S-Right> cursor one word right
|| <C-Right> cursor one word right
|| <Up> cursor one line up
|| <S-Up> same as <PageUp>
|| <Down> cursor one line down
|| <S-Down> same as <PageDown>
|| <Home> cursor to start of line
|| <C-Home> cursor to start of file
|| <End> cursor past end of line
|| <C-End> cursor past end of file
|| <PageUp> one screenfull backward
|| <PageDown> one screenfull forward
|| <F1> same as <Help>
|| <Help> stop insert mode and display help window
|| <Insert> toggle Insert/Replace mode
|| <LeftMouse> cursor at mouse click
|| <MouseDown> scroll three lines downwards
|| <S-MouseDown> scroll a full page downwards
|| <MouseUp> scroll three lines upwards
|| <S-MouseUp> scroll a full page upwards
commands in CTRL-X submode
|| CTRL-X CTRL-D complete defined identifiers
|| CTRL-X CTRL-E scroll up
|| CTRL-X CTRL-F complete file names
|| CTRL-X CTRL-I complete identifiers
|| CTRL-X CTRL-K complete identifiers from dictionary
|| CTRL-X CTRL-L complete whole lines
|| CTRL-X CTRL-N next completion
|| CTRL-X CTRL-P previous completion
|| CTRL-X CTRL-Y scroll down
|| CTRL-X CTRL-] 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/redone
tag char note action in Normal mode ~
------------------------------------------------------------------------------
CTRL-@ not used
|| CTRL-A 2 add N to number at/after cursor
|| CTRL-B 1 scroll N screens Backwards
|| CTRL-C interrupt current (search) command
|| CTRL-D scroll Down N lines (default: half a screen)
|| CTRL-E scroll N lines upwards (N lines Extra)
|| CTRL-F 1 scroll N screens Forward
|| CTRL-G display current file name and position
|| <BS> 1 same as "h"
|| CTRL-H 1 same as "h"
|| <Tab> 1 go to N newer entry in jump list
|| CTRL-I 1 same as <Tab>
|| <NL> 1 same as "j"
|| CTRL-J 1 same as "j"
CTRL-K not used
|| CTRL-L redraw screen
|| <CR> 1 cursor to the first CHAR N lines lower
|| CTRL-M> 1 same as <CR>
|| CTRL-N 1 same as "j"
|| CTRL-O 1 go to N older entry in jump list
|| CTRL-P 1 cursor N lines upward
CTRL-Q (used for terminal control flow)
|| CTRL-R 2 redo changes which were undone with 'u'
CTRL-S (used for terminal control flow)
|| CTRL-T jump to N older Tag in tag list
|| CTRL-U scroll N lines Upwards (default: half a
screen)
|| CTRL-V start blockwise Visual mode
|| CTRL-W {char} window commands, see ||
|| CTRL-X 2 subtract N from number at/after cursor
|| CTRL-Y scroll N lines downwards
|| CTRL-Z suspend program (or start new shell)
CTRL-[ <Esc> not used
|| CTRL-\ CTRL-N go to Normal mode (no-op)
CTRL-\ a - z reserved for extensions
CTRL-\ others not used
|| CTRL-] :ta to ident under cursor
|| CTRL-^ edit Nth alternate file (equivalent to
":e #N")
CTRL-_ not used
|| <Space> 1 same as "l"
|| !{motion}{filter}
2 filter Nmove text through the {filter}
command
|| !!{filter} 2 filter N lines through the {filter} command
|| "{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.
|| {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
|| * 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> 1 search forward for {pattern} of last search
|| 0 1 cursor to the first char of the line
|| 1 prepend to command to give a count
|| 2 "
|| 3 "
|| 4 "
|| 5 "
|| 6 "
|| 7 "
|| 8 "
|| 9 "
|| : start entering an Ex command
|| {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> 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 2 append text after the end of the line N times
|| B 1 cursor N WORDS backward
|| ["x]C 2 change from the cursor position to the end
of the line, and N-1 more lines [into
buffer x]; synonym for "c$"
|| ["x]D 2 delete the characters under the cursor
until the end of the line and N-1 more
lines [into buffer x]; synonym for "d$"
|| E 1 cursor forward to the end of WORD N
|| F{char} 1 cursor to the Nth occurrence of {char} to
the left
|| G 1 cursor to line N, default last line
|| H 1 cursor to line N from top of screen
|| I 2 insert text before the first CHAR on the
line N times
|| J 2 Join N lines; default is 2
|| K lookup Keyword under the cursor with
'keywordprg'
|| L 1 cursor to line N from bottom of screen
|| M 1 cursor to middle line of screen
|| N 1 repeat the latest '/' or '?' N times in
opposite direction
|| O 2 begin a new line above the cursor and
insert text, repeat N times
|| ["x]P 2 put the text [from buffer x] before the
cursor N times
|| Q switch to "Ex" mode
|| R 2 enter replace mode: overtype existing
characters, repeat the entered text N-1
times
|| ["x]S 2 delete N lines [into buffer x] and start
insert; synonym for "^cc" or "0cc",
depending on autoindent
|| T{char} 1 cursor till after Nth occurrence of {char}
to the left
|| U 2 undo all latest changes on one line
|| V start linewise Visual mode
|| W 1 cursor N WORDS forward
|| ["x]X 2 delete N characters before the cursor [into
buffer x]
|| ["x]Y yank N lines [into buffer x]; synonym for
"yy"
|| ZZ store current file if modified, and exit
|| 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 2 append text after the cursor N times
|| b 1 cursor N words backward
|| ["x]c{motion} 2 delete Nmove text [into buffer x] and start
insert
|| ["x]cc 2 delete N lines [into buffer x] and start
insert
|| ["x]d{motion} 2 delete Nmove text [into buffer x]
|| ["x]dd 2 delete N lines [into buffer x]
|| e 1 cursor forward to the end of word N
|| f{char} 1 cursor to Nth occurrence of {char} to the
right
|| g{char} extended commands, see below
|| h 1 cursor N chars to the left
|| i 2 insert text before the cursor N times
|| j 1 cursor N lines downward
|| k 1 cursor N lines upward
|| l 1 cursor N chars to the right
|| m{A-Za-z} set mark {A-Za-z} at cursor position
|| n 1 repeat the latest '/' or '?' N times
|| o 2 begin a new line below the cursor and
insert text, repeat N times
|| ["x]p 2 put the text [from register x] after the
cursor N times
|| q{0-9a-zA-Z"} record typed characters into named register
{0-9a-zA-Z"} (uppercase to append)
|| q (while recording) stops recording
|| q: edit : command-line in command-line window
|| q/ edit / command-line in command-line window
|| q? edit ? command-line in command-line window
|| r{char} 2 replace N chars with {char}
|| ["x]s 2 (substitute) delete N characters [into
buffer x] and start insert
|| t{char} 1 cursor till before Nth occurrence of {char}
to the right
|| u 2 undo changes
|| v start characterwise Visual mode
|| w 1 cursor N words forward
|| ["x]x 2 delete N characters under and after the
cursor [into buffer x]
|| ["x]y{motion} yank Nmove text [into buffer x]
|| ["x]yy yank N lines [into buffer x]
|| z{char} commands starting with 'z', see below
|| { 1 cursor N paragraphs backward
|| | 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> 1 same as "G"
|| <C-Home> 1 same as "gg"
|| <C-Left> 1 same as "b"
|| <C-LeftMouse> ":ta" to the keyword at the mouse click
|| <C-Right> 1 same as "w"
|| <C-RightMouse> same as "CTRL-T"
|| ["x]<Del> 2 same as "x"
|| {count}<Del> remove the last digit from {count}
|| <Down> 1 same as "j"
|| <End> 1 same as "$"
|| <F1> same as <Help>
|| <Help> open a help window
|| <Home> 1 same as "0"
|| <Insert> 2 same as "i"
|| <Left> 1 same as "h"
|| <LeftMouse> 1 move cursor to the mouse click position
|| <MiddleMouse> 2 same as "P" at the mouse click position
|| <PageDown> same as CTRL-F
|| <PageUp> same as CTRL-B
|| <Right> 1 same as "l"
|| <RightMouse> start Visual mode, move cursor to the mouse
click position
|| <S-Down> 1 same as CTRL-F
|| <S-Left> 1 same as "b"
|| <S-LeftMouse> same as "*" at the mouse click position
|| <S-Right> 1 same as "w"
|| <S-RightMouse> same as "#" at the mouse click position
|| <S-Up> 1 same as CTRL-B
|| <Undo> 2 same as "u"
|| <Up> 1 same as "k"
|| <MouseDown> scroll three lines downwards
|| <S-MouseDown> scroll a full page downwards
|| <MouseUp> scroll three lines upwards
|| <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.
tag command action in Normal mode ~
------------------------------------------------------------------------------
|| a( same as ab
|| a) same as ab
|| a< "a <>" from '<' to the matching '>'
|| a> same as a<
|| aB "a Block" from "[{" to "]}" (with brackets)
|| aW "a WORD" (with white space)
|| a[ "a []" from '[' to the matching ']'
|| a] same as a[
|| ab "a block" from "[(" to "])" (with braces)
|| ap "a paragraph" (with white space)
|| as "a sentence" (with white space)
|| aw "a word" (with white space)
|| a{ same as aB
|| a} same as aB
|| i( same as ib
|| i) same as ib
|| i< "inner <>" from '<' to the matching '>'
|| i> same as i<
|| iB "inner Block" from "[{" and "]}"
|| iW "inner WORD"
|| i[ "inner []" from '[' to the matching ']'
|| i] same as i[
|| ib "inner block" from "[(" to "])"
|| ip "inner paragraph"
|| is "inner sentence"
|| iw "inner word"
|| i{ same as iB
|| i} same as iB
==============================================================================
2.2 Window commands *CTRL-W*
tag command action in Normal mode ~
------------------------------------------------------------------------------
|| CTRL-W CTRL-B same as "CTRL-W b"
|| CTRL-W CTRL-C same as "CTRL-W c"
|| CTRL-W CTRL-D same as "CTRL-W d"
|| CTRL-W CTRL-F same as "CTRL-W f"
CTRL-W CTRL-G same as "CTRL-W g .."
|| CTRL-W CTRL-H same as "CTRL-W h"
|| CTRL-W CTRL-I same as "CTRL-W i"
|| CTRL-W CTRL-J same as "CTRL-W j"
|| CTRL-W CTRL-K same as "CTRL-W k"
|| CTRL-W CTRL-L same as "CTRL-W l"
|| CTRL-W CTRL-N same as "CTRL-W n"
|| CTRL-W CTRL-O same as "CTRL-W o"
|| CTRL-W CTRL-P same as "CTRL-W p"
|| CTRL-W CTRL-Q same as "CTRL-W q"
|| CTRL-W CTRL-R same as "CTRL-W r"
|| CTRL-W CTRL-S same as "CTRL-W s"
|| CTRL-W CTRL-T same as "CTRL-W t"
|| CTRL-W CTRL-V same as "CTRL-W v"
|| CTRL-W CTRL-W same as "CTRL-W w"
|| CTRL-W CTRL-X same as "CTRL-W x"
|| CTRL-W CTRL-Z same as "CTRL-W z"
|| CTRL-W CTRL-] same as "CTRL-W ]"
|| CTRL-W CTRL-^ same as "CTRL-W ^"
|| CTRL-W CTRL-_ same as "CTRL-W _"
|| CTRL-W + increase current window height N lines
|| CTRL-W - decrease current window height N lines
|| CTRL-W < increase current window width N columns
|| CTRL-W = make all windows the same height
|| CTRL-W > decrease current window width N columns
|| CTRL-W H move current window to the far left
|| CTRL-W J move current window to the very bottom
|| CTRL-W K move current window to the very top
|| CTRL-W L move current window to the far right
|| CTRL-W P go to preview window
|| CTRL-W R rotate windows upwards N times
|| CTRL-W S same as "CTRL-W s"
|| CTRL-W W go to N previous window (wrap around)
|| CTRL-W ] split window and jump to tag under cursor
|| CTRL-W ^ split current window and edit alternate
file N
|| CTRL-W _ set current window height to N (default:
very high)
|| CTRL-W b go to bottom window
|| CTRL-W c close current window (like ||)
|| CTRL-W d split window and jump to definition under
the cursor
|| CTRL-W f split window and edit file name under the
cursor
|| CTRL-W g CTRL-] split window and do || to tag under
cursor
|| CTRL-W g ] split window and do || for tag
under cursor
|| CTRL-W g } do a || to the tag under the cursor
|| CTRL-W h go to Nth left window (stop at first window)
|| CTRL-W i split window and jump to declaration of
identifier under the cursor
|| CTRL-W j go to N next window (stop at last window)
|| CTRL-W k go to N previous window (stop at first
window)
|| CTRL-W l go to Nth right window (stop at last window)
|| CTRL-W n open new window, N lines high
|| CTRL-W o close all but current window (like ||)
|| CTRL-W p go to previous (last accessed) window
|| CTRL-W q quit current window (like ||)
|| CTRL-W r rotate windows downwards N times
|| CTRL-W s split current window in two parts, new
window N lines high
|| CTRL-W t go to top window
|| CTRL-W v split current window vertically, new window
N lines wide
|| CTRL-W w go to N next window (wrap around)
|| CTRL-W x exchange current window with window N
(default: next window)
|| CTRL-W z close preview window
|| CTRL-W | set window width to N columns
|| CTRL-W } show tag under cursor in preview window
|| CTRL-W <Down> same as "CTRL-W j"
|| CTRL-W <Up> same as "CTRL-W k"
|| CTRL-W <Left> same as "CTRL-W h"
|| CTRL-W <Right> same as "CTRL-W l"
==============================================================================
2.3 Square bracket commands *[* *]*
tag char note action in Normal mode ~
------------------------------------------------------------------------------
|| [_CTRL-D jump to first #define found in current and
included files matching the word under the
cursor, start searching at beginning of
current file
|| [_CTRL-I jump 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 '('
|| [* 1 same as "[/"
|| [` 1 cursor to previous lowercase mark
|| [/ 1 cursor to N previous start of a C comment
|| [D list all defines found in current and
included files matching the word under the
cursor, start searching at beginning of
current file
|| [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 2 same as "[p"
|| [[ 1 cursor N sections backward
|| [] 1 cursor N SECTIONS backward
|| [c 1 cursor N times backwards to start of change
|| [d show first #define found in current and
included files matching the word under the
cursor, start searching at beginning of
current file
|| [f same as "gf"
|| [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 2 like "P", but adjust indent to current line
|| [m 1 cursor N times back to start of member
function
|| [z 1 move to start of open fold
|| [{ 1 cursor N times back to unmatched '{'
|[<MiddleMouse> [<MiddleMouse> 2 same as "[p"
|| ]_CTRL-D jump to first #define found in current and
included files matching the word under the
cursor, start searching at cursor position
|| ]_CTRL-I jump 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 ')'
|| ]* 1 same as "]/"
|| ]` 1 cursor to next lowercase mark
|| ]/ 1 cursor to N next end of a C comment
|| ]D list all #defines found in current and
included files matching the word under the
cursor, start searching at cursor position
|| ]I list all lines found in current and
included files that contain the word under
the cursor, start searching at cursor
position
|| ]P 2 same as "[p"
|| ][ 1 cursor N SECTIONS forward
|| ]] 1 cursor N sections forward
|| ]c 1 cursor N times forward to start of change
|| ]d show first #define found in current and
included files matching the word under the
cursor, start searching at cursor position
|| ]f same as "gf"
|| ]i show first line found in current and
included files that contains the word under
the cursor, start searching at cursor
position
|| ]p 2 like "p", but adjust indent to current line
|| ]m 1 cursor N times forward to end of member
function
|| ]z 1 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*
tag char note action in Normal mode ~
------------------------------------------------------------------------------
|| g_CTRL-A only when compiled with MEM_PROFILE
defined: dump a memory profile
|| g_CTRL-G show information about current cursor
position
|| g_CTRL-H start Select block mode
|| g_CTRL-] || to the tag under the cursor
|| g# 1 like "#", but without using "\<" and "\>"
|| 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& 2 repeat last ":s" on all lines
|| g'{mark} 1 like || but without changing the jumplist
|| g`{mark} 1 like || but without changing the jumplist
|| g* 1 like "*", but without using "\<" and "\>"
|| g0 1 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 print hex value of bytes used in UTF-8
character under the cursor
|| g? 2 Rot13 encoding operator
|| g?? 2 Rot13 encode current line
|| g?g? 2 Rot13 encode current line
|| gD 1 go to definition of word under the cursor
in current file
|| gE 1 go backwards to the end of the previous
WORD
|| gH start Select line mode
|| gI 2 like "I", but always start in column 1
|| gJ 2 join lines without inserting space
|| ["x]gP 2 put the text [from register x] before the
cursor N times, leave the cursor after it
|| gR 2 enter virtual replace mode
|| gU{motion} 2 make Nmove text uppercase
|| gV don't reselect the previous Visual area
when executing a mapping or menu in Select
mode
|| g] :tselect on the tag under the cursor
|| 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 print ascii value of character under the
cursor
|| gd 1 go to definition of word under the cursor
in current function
|| ge 1 go backwards to the end of the previous
word
|| gf start editing the file whose name is under
the cursor
|| gg 1 cursor to line N, default first line
|| gh start Select mode
|| gi 2 like "i", but first move to the || mark
|| gj 1 like "j", but when 'wrap' on go N screen
lines down
|| gk 1 like "k", but when 'wrap' on go N screen
lines up
|| gm 1 go to character at middle of the screenline
|| go 1 cursor to byte N in the buffer
|| ["x]gp 2 put the text [from register x] after the
cursor N times, leave the cursor after it
|| gq{motion} 2 format Nmove text
|| gr{char} 2 virtual replace N chars with {char}
|| gs go to sleep for N seconds (default 1)
|| gu{motion} 2 make Nmove text lowercase
|| gv reselect the previous Visual area
|| g~{motion} 2 swap case for Nmove text
|| g<Down> 1 same as "gj"
|| g<End> 1 same as "g$"
|| g<Home> 1 same as "g0"
|| g<LeftMouse> same as <C-LeftMouse>
g<MiddleMouse> same as <C-MiddleMouse>
|| g<RightMouse> same as <C-RightMouse>
|| g<Up> 1 same as "gk"
==============================================================================
2.5 Commands starting with 'z' *z*
tag char note action in Normal mode ~
------------------------------------------------------------------------------
|| z<CR> redraw, cursor line to top of window,
cursor on first non-blank
|| z{height}<CR> redraw, make window {height} lines high
|| z+ cursor on line N (default line below
window), otherwise like "z<CR>"
|| z- redraw, cursor line at bottom of window,
cursor on first non-blank
|| z. redraw, cursor line to center of window,
cursor on first non-blank
|| zA open a closed fold or close an open fold
recursively
|| zC close folds recursively
|| zD delete folds recursively
|| zE eliminate all folds
|| zF create a fold for N lines
|| zM set 'foldlevel' to zero
|| zN set 'foldenable'
|| zO open folds recursively
|| zR set 'foldlevel' to the deepest fold
|| zX re-apply 'foldlevel'
|| z^ cursor on line N (default line above
window), otherwise like "z-"
|| za open a closed fold, close an open fold
|| zb redraw, cursor line at bottom of window
|| zc close a fold
|| zd delete a fold
|| ze when 'wrap' off scroll horizontally to
position the cursor at the end (right side)
of the screen
|| zf{motion} create a fold for Nmove text
|| zh when 'wrap' off scroll screen N characters
to the right
|| zi toggle 'foldenable'
|| zj 1 move to the start of the next fold
|| zk 1 move to the end of the previous fold
|| zl when 'wrap' off scroll screen N characters
to the left
|| zm subtract one from 'foldlevel'
|| zn reset 'foldenable'
|| zo open fold
|| zr add one to 'foldlevel'
|| zs when 'wrap' off scroll horizontally to
position the cursor at the start (left
side) of the screen
|| zt redraw, cursor line at top of window
|| zv open enough folds to view the cursor line
|| zx re-apply 'foldlevel' and do "zv"
|| zz redraw, cursor line at center of window
|| z<Left> same as "zh"
|| 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.
tag command note action in Visual mode ~
------------------------------------------------------------------------------
|| CTRL-\ CTRL-N stop Visual mode
|| CTRL-G toggle between Visual mode and Select mode
|| <BS> 2 Select mode: delete highlighted area
|| CTRL-H 2 same as <BS>
|| CTRL-O switch from Select to Visual mode for one
command
|| CTRL-V make Visual mode blockwise or stop Visual
mode
|| CTRL-] jump to highlighted tag
|| !{filter} 2 filter the highlighted lines through the
external command {filter}
|| : start a command-line with the highlighted
lines as a range
|| < 2 shift the highlighted lines one
'shiftwidth' left
|| = 2 filter the highlighted lines through the
external program given with the 'equalprg'
option
|| > 2 shift the highlighted lines one
'shiftwidth' right
|| A 2 block mode: append same text in all lines,
after the highlighted area
|| C 2 delete the highlighted lines and start
insert
|| D 2 delete the highlighted lines
|| I 2 block mode: insert same text in all lines,
before the highlighted area
|| J 2 join the highlighted lines
|| K run 'keywordprg' on the highlighted area
|| O Move horizontally to other corner of area.
Q does not start Ex mode
|| R 2 delete the highlighted lines and start
insert
|| S 2 delete the highlighted lines and start
insert
|| U 2 make highlighted area uppercase
|| V make Visual mode linewise or stop Visual
mode
|| X 2 delete the highlighted lines
|| Y yank the highlighted lines
|| a( same as ab
|| a) same as ab
|| a< extend highlighted area with a <> block
|| a> same as a<
|| aB extend highlighted area with a {} block
|| aW extend highlighted area with "a WORD"
|| a[ extend highlighted area with a [] block
|| a] same as a[
|| ab extend highlighted area with a () block
|| ap extend highlighted area with a paragraph
|| as extend highlighted area with a sentence
|| aw extend highlighted area with "a word"
|| a{ same as aB
|| a} same as aB
|| c 2 delete highlighted area and start insert
|| d 2 delete highlighted area
|| gJ 2 join the highlighted lines without
inserting spaces
|| gq 2 format the highlighted lines
|| gv exchange current and previous highlighted
area
|| i( same as ib
|| i) same as ib
|| i< extend highlighted area with inner <> block
|| i> same as i<
|| iB extend highlighted area with inner {} block
|| iW extend highlighted area with "inner WORD"
|| i[ extend highlighted area with inner [] block
|| i] same as i[
|| ib extend highlighted area with inner () block
|| ip extend highlighted area with inner paragraph
|| is extend highlighted area with inner sentence
|| iw extend highlighted area with "inner word"
|| i{ same as iB
|| i} same as iB
|| o move cursor to other corner of area
|| r 2 delete highlighted area and start insert
|| s 2 delete highlighted area and start insert
|| u 2 make highlighted area lowercase
|| v make Visual mode characterwise or stop
Visual mode
|| x 2 delete the highlighted area
|| y yank the highlighted area
|| ~ 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
|| CTRL-A do completion on the pattern in front of the
cursor and insert all matches
|| CTRL-B cursor to begin of command-line
|| CTRL-C same as <ESC>
|| CTRL-D list completions that match the pattern in
front of the cursor
|| CTRL-E cursor to end of command-line
|| CTRL-F default value for 'cedit': opens the
command-line window; otherwise not used
CTRL-G not used
|| <BS> delete the character in front of the cursor
|| {char1} <BS> {char2}
enter digraph when 'digraph' is on
|| CTRL-H same as <BS>
|| <Tab> if 'wildchar' is <Tab>: Do completion on
the pattern in front of the cursor
|| <S-Tab> same as CTRL-P
|| 'wildchar' Do completion on the pattern in front of the
cursor (default: <Tab>)
|| CTRL-I same as <Tab>
|| <NL> same as <CR>
|| CTRL-J same as <CR>
|| CTRL-K {char1} {char2}
enter digraph
|| CTRL-L do completion on the pattern in front of the
cursor and insert the longest common part
|| <CR> execute entered command
|| CTRL-M same as <CR>
|| CTRL-N after using 'wildchar' with multiple matches:
go to next match, otherwise: same as <Down>
CTRL-O not used
|| CTRL-P after using 'wildchar' with multiple matches:
go to previous match, otherwise: same as <Up>
|| CTRL-Q same as CTRL-V (used for terminal control flow)
|| CTRL-R {0-9a-z"%#*:= CTRL-F CTRL-P CTRL-W CTRL-A}
insert the contents of a register or object
under the cursor as if typed
|| CTRL-R CTRL-R {0-9a-z"%#*:= CTRL-F CTRL-P CTRL-W CTRL-A}
insert the contents of a register or object
under the cursor literally
CTRL-S (used for terminal control flow)
CTRL-T not used
|| CTRL-U remove all characters
|| CTRL-V insert next non-digit literally, insert three
digit decimal number as a single byte.
|| CTRL-W delete the word in front of the cursor
CTRL-X not used (reserved for completion)
CTRL-Y copy (yank) modeless selection
CTRL-Z not used (reserved for suspend)
|| <Esc> abandon command-line without executing it
|| CTRL-[ same as <Esc>
|| CTRL-\ CTRL-N go to Normal mode, abandon command-line
CTRL-\ a - z reserved for extensions
CTRL-\ others not used
CTRL-] not used
|| CTRL-^ toggle use of || mappings
|| CTRL-_ when 'allowrevins' set: change language
(Hebrew, Farsi)
|| <Del> delete the character under the cursor
|| <Left> cursor left
|| <S-Left> cursor one word left
|| <C-Left> cursor one word left
|| <Right> cursor right
|| <S-Right> cursor one word right
|| <C-Right> cursor one word right
|| <Up> recall previous command-line from history that
matches pattern in front of the cursor
|| <S-Up> recall previous command-line from history
|| <Down> recall next command-line from history that
matches pattern in front of the cursor
|| <S-Down> recall next command-line from history
|| <Home> cursor to start of command-line
|| <End> cursor to end of command-line
|| <PageDown> same as <S-Down>
|| <PageUp> same as <S-Up>
|| <Insert> toggle insert/overstrike mode
|| <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"
|| :* 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 ":@"
|| :N[ext] go to previous file in the argument list
|| :P[rint] print lines
|| :X ask for encryption key
|| :a[ppend] append text
|| :ab[breviate] enter abbreviation
|| :abc[lear] remove all abbreviations
|| :al[l] open a window for each file in the argument
list
|| :am[enu] enter new menu item for all modes
|| :an[oremenu] enter a new menu for all modes that will not
be remapped
|| :ar[gs] print the argument list
|| :arga[dd] add items to the argument list
|| :argd[elete] delete items from the argument list
|| :argdo do a command on all items in the argument list
|| :argg[lobal] define the global argument list
|| :argl[ocal] define a local argument list
|| :argu[ment] go to specific file in the argument list
|| :as[cii] print ascii value of character under the cursor
|| :au[tocmd] enter or show autocommands
|| :aug[roup] select the autocommand group to use
|| :aun[menu] remove menu for all modes
|| :b[uffer] go to specific buffer in the buffer list
|| :bN[ext] go to next buffer in the buffer list
|| :ba[ll] open a window for each file in the buffer list
|| :bad[d] add file to the buffer list
|| :bd[elete] remove a file from the buffer list
|| :be[have] set mouse and selection behavior
|| :bf[irst] go to first file in the buffer list
|| :bl[ast] go to last file in the buffer list
|| :bm[odified] go to next file in the buffer list that has
been modified
|| :bn[ext] go to next file in the buffer list
|| :bo[tright] make split window appear at bottom or far right
|| :bp[revious] go to previous file in the buffer list
|| :br[ewind] go to first file in the buffer list
|| :brea[k] break out of while loop
|| :bro[wse] use file selection dialog
|| :buffers list all files in the buffer list
|| :bun[load] unload a specific buffer
|| :bw[ipeout] really delete a buffer
|| :c[hange] replace a line or series of lines
|| :cN[ext] go to previous error
|| :ca[bbrev] like ":abbreviate" but for Command-line mode
|| :cabc[lear] clear all abbreviations for Command-line mode
|| :cal[l] call a function
|| :cc go to specific error
|| :ccl[ose] close quickfix window
|| :cd change directory
|| :ce[nter] format lines at the center
|| :cf[ile] read the file with error messages
|| :cfir[st] go to the specified error, default first one
|| :chd[ir] change directory
|| :che[ckpath] list included files
|| :checkt[ime] check timestamp of loaded buffers
|| :cl[ist] list all errors
|| :cla[st] go to the specified error, default last one
|| :clo[se] close current window
|| :cm[ap] like ":map" but for Command-line mode
|| :cmapc[lear] clear all mappings for Command-line mode
|| :cme[nu] add menu for Command-line mode
|| :cn[ext] go to next error
|| :cnew[er] go to newer error list
|| :cnf[ile] go to first error in next file
|| :cno[remap] like ":noremap" but for Command-line mode
|| :cnorea[bbrev] like ":noreabbrev" but for Command-line mode
|| :cnoreme[nu] like ":noremenu" but for Command-line mode
|| :co[py] copy lines
|| :col[der] go to older error list
|| :colo[rscheme] load a specifi color scheme
|| :com[mand] create user-defined command
|| :comc[lear] clear all user-defined commands
|| :comp[iler] do settings for a specific compiler
|| :con[tinue] go back to :while
|| :conf[irm] prompt user when confirmation required
|| :cope[n] open quickfix window
|| :cp[revious] go to previous error
|| :cq[uit] quit Vim with an error code
|| :cr[ewind] go to the specified error, default first one
|| :cs[cope] execute cscope command
|| :cst[ag] use cscope to jump to a tag
|| :cu[nmap] like ":unmap" but for Command-line mode
|| :cuna[bbrev] like ":unabbrev" but for Command-line mode
|| :cunme[nu] remove menu for Command-line mode
|| :cw[indow] open or close quickfix window
|| :d[elete] delete lines
|| :deb[ug] run a command in debugging mode
|| :delc[ommand] delete user-defined command
|| :delf[unction] delete a user function
|| :di[splay] display registers
|| :dif[fupdate] update 'diff' buffers
|| :diffg[et] remove differences in current buffer
|| :diffp[atch] apply a patch and show differences
|| :diffpu[t] remove differences in other buffer
|| :diffs[plit] show differences with another file
|| :dig[raphs] show or enter digraphs
|| :dj[ump] jump to #define
|| :dl[ist] list #defines
|| :do[autocmd] apply autocommands to current buffer
|| :doautoa[ll] apply autocommands for all loaded buffers
|| :ds[earch] list one #define
|| :dsp[lit] split window and jump to #define
|| :e[dit] edit a file
|| :ec[ho] echoes the result of expressions
|| :echoe[rr] like :echo, show like an error and use history
|| :echoh[l] set highlighting for echo commands
|| :echom[sg] same as :echo, put message in history
|| :echon same as :echo, but without <EOL>
|| :el[se] part of an :if command
|| :elsei[f] part of an :if command
|| :em[enu] execute a menu by name
|| :en[dif] end previous :if
|| :endf[unction] end of a user function
|| :endw[hile] end previous :while
|| :ene[w] edit a new, unnamed buffer
|| :ex same as ":edit"
|| :exe[cute] execute result of expressions
|| :exi[t] same as ":xit"
|| :f[ile] show or set the current file name
|| :files list all files in the buffer list
|| :filet[ype] switch file type detection on/off
|| :fin[d] find file in 'path' and edit it
|| :fini[sh] quit sourcing a Vim script
|| :fir[st] go to the first file in the argument list
|| :fix[del] set key code of <Del>
|| :fo[ld] create a fold
|| :foldc[lose] close folds
|| :foldd[oopen] execute command on lines not in a closed fold
|| :folddoc[losed] execute command on lines in a closed fold
|| :foldo[pen] open folds
|| :fu[nction] define a user function
|| :g[lobal] execute commands for matching lines
|| :go[to] go to byte in the buffer
|| :gr[ep] run 'grepprg' and jump to first match
|| :gu[i] start the GUI
|| :gv[im] start the GUI
|| :h[elp] open a help window
|| :helpf[ind] dialog to open a help window
|| :hi[ghlight] specify highlighting methods
|| :hid[e] hide current buffer for a command
|| :his[tory] print a history list
|| :i[nsert] insert text
|| :ia[bbrev] like ":abbrev" but for Insert mode
|| :iabc[lear] like ":abclear" but for Insert mode
|| :if execute commands when condition met
|| :ij[ump] jump to definition of identifier
|| :il[ist] list lines where identifier matches
|| :im[ap] like ":map" but for Insert mode
|| :imapc[lear] like ":mapclear" but for Insert mode
|| :ime[nu] add menu for Insert mode
|| :ino[remap] like ":noremap" but for Insert mode
|| :inorea[bbrev] like ":noreabbrev" but for Insert mode
|| :inoreme[nu] like ":noremenu" but for Insert mode
|| :int[ro] print the introductory message
|| :is[earch] list one line where identifier matches
|| :isp[lit] split window and jump to definition of
identifier
|| :iu[nmap] like ":unmap" but for Insert mode
|| :iuna[bbrev] like ":unabbrev" but for Insert mode
|| :iunme[nu] remove menu for Insert mode
|| :j[oin] join lines
|| :ju[mps] print the jump list
|| :k set a mark
|| :l[ist] print lines
|| :la[st] go to the last file in the argument list
|| :lan[guage] set the language (locale)
|| :lc[d] change directory locally
|| :lch[dir] change directory locally
|| :le[ft] left align lines
|| :let assign a value to a variable or option
|| :ls list all buffers
|| :lo[adview] load view for current window from a file
|| :m[ove] move lines
|| :ma[rk] set a mark
|| :mak[e] execute external command 'makeprg' and parse
error messages
|| :map show or enter a mapping
|| :mapc[lear] clear all mappings for Normal and Visual mode
|| :marks list all marks
|| :mat[ch] define a match to highlight
|| :me[nu] enter a new menu item
|| :menut[ranslate] add a menu translation item
|| :mes[sages] view previously displayed messages
|| :mk[exrc] write current mappings and settings to a file
|| :mks[ession] write session info to a file
|| :mkv[imrc] write current mappings and settings to a file
|| :mkvie[w] write view of current window to a file
|| :mod[e] show or change the screen mode
|| :n[ext] go to next file in the argument list
|| :new create a new empty window
|| :nm[ap] like ":map" but for Normal mode
|| :nmapc[lear] clear all mappings for Normal mode
|| :nme[nu] add menu for Normal mode
|| :nn[oremap] like ":noremap" but for Normal mode
|| :nnoreme[nu] like ":noremenu" but for Normal mode
|| :no[remap] enter a mapping that will not be remapped
|| :noh[lsearch] suspend 'hlsearch' highlighting
|| :norea[bbrev] enter an abbreviation that will not be
remapped
|| :noreme[nu] enter a menu that will not be remapped
|| :norm[al] execute Normal mode commands
|| :nu[mber] print lines with line number
|| :nun[map] like ":unmap" but for Normal mode
|| :nunme[nu] remove menu for Normal mode
|| :o[pen] start open mode (not implemented)
|| :om[ap] like ":map" but for Operator-pending mode
|| :omapc[lear] remove all mappings for Operator-pending mode
|| :ome[nu] add menu for Operator-pending mode
|| :on[ly] close all windows except current one
|| :ono[remap] like ":noremap" but for Operator-pending mode
|| :onoreme[nu] like ":noremenu" but for Operator-pending mode
|| :opt[ions] open the options-window
|| :ou[nmap] like ":unmap" but for Operator-pending mode
|| :ounme[nu] remove menu for Operator-pending mode
|| :p[rint] print lines
|| :pc[lose] close preview window
|| :pe[rl] execute Perl command
|| :perld[o] execute Perl command for each line
|| :po[p] jump to older entry in tag stack
|| :pp[op] ":pop" in preview window
|| :pre[serve] write all text to swap file
|| :prev[ious] go to previous file in argument list
|| :pro[mptfind] Search dialog
|| :promptr[epl] Search/Replace dialog
|| :pt[ag] show tag in preview window
|| :ptN[ext] || in preview window
|| :ptf[irst] || in preview window
|| :ptj[ump] || and show tag in preview window
|| :ptl[ast] || in preview window
|| :ptn[ext] || in preview window
|| :ptp[revious] || in preview window
|| :ptr[ewind] || in preview window
|| :pts[elect] || and show tag in preview window
|| :pu[t] insert contents of register in the text
|| :pw[d] print current directory
|| :py[thon] execute Python command
|| :pyf[ile] execute Python script file
|| :q[uit] quit current window (when one window quit Vim)
|| :quita[ll] quit Vim
|| :qa[ll] quit Vim
|| :r[ead] read file into the text
|| :rec[over] recover a file from a swap file
|| :red[o] redo one undone change
|| :redi[r] redirect messages to a file or register
|| :redr[aw] force a redraw of the display
|| :reg[isters] display the contents of registers
|| :res[ize] change current window height
|| :ret[ab] change tab size
|| :retu[rn] return from a user function
|| :rew[ind] go to the first file in the argument list
|| :ri[ght] right align text
|| :ru[ntime] source vim scripts in 'runtimepath'
|| :rv[iminfo] read from viminfo file
|| :s[ubstitute] find and replace text
|| :sN[ext] split window and go to previous file in
argument list
|| :sa[rgument] split window and go to specific file in
argument list
|| :sal[l] open a window for each file in argument list
|| :sav[eas] save file under another name.
|| :sb[uffer] split window and go to specific file in the
buffer list
|| :sbN[ext] split window and go to previous file in the
buffer list
|| :sba[ll] open a window for each file in the buffer list
|| :sbf[irst] split window and go to first file in the
buffer list
|| :sbl[ast] split window and go to last file in buffer
list
|| :sbm[odified] split window and go to modified file in the
buffer list
|| :sbn[ext] split window and go to next file in the buffer
list
|| :sbp[revious] split window and go to previous file in the
buffer list
|| :sbr[ewind] split window and go to first file in the
buffer list
|| :scrip[tnames] list names of all sourced Vim scripts
|| :scripte[ncoding] encoding used in sourced Vim script
|| :scs[cope] split window and execute cscope command
|| :se[t] show or set options
|| :setf[iletype] set 'filetype', unless it was set already
|| :setg[lobal] show global values of options
|| :setl[ocal] show or set options locally
|| :sf[ind] split current window and edit file in 'path'
|| :sfir[st] split window and go to first file in the
argument list
|| :sh[ell] escape to a shell
|| :si[malt] Win32 GUI: simulate Windows ALT key
|| :sig[n] manipulate signs
|| :sil[ent] Run a command silently
|| :sl[eep] do nothing for a few seconds
|| :sla[st] split window and go to last file in the
argument list
|| :sm[agic] :substitute with 'magic'
|| :sn[ext] split window and go to next file in the
argument list
|| :sni[ff] send request to sniff
|| :sno[magic] :substitute with 'nomagic'
|| :so[urce] read Vim or Ex commands from a file
|| :sp[lit] split current window
|| :spr[evious] split window and go to previous file in the
argument list
|| :sr[ewind] split window and go to first file in the
argument list
|| :st[op] suspend the editor or escape to a shell
|| :sta[g] split window and jump to a tag
|| :star[tinsert] start Insert mode
|| :stj[ump] do ":tjump" and split window
|| :sts[elect] do ":tselect" and split window
|| :sun[hide] same as ":unhide"
|| :sus[pend] same as ":stop"
|| :sv[iew] split window and edit file read-only
|| :sw[apname] show the name of the current swap file
|| :sy[ntax] syntax highlighting
|| :sync[bind] sync scroll binding
|| :t same as ":copy"
|| :tN[ext] jump to previous matching tag
|| :ta[g] jump to tag
|| :tags show the contents of the tag stack
|| :tc[l] execute Tcl command
|| :tcld[o] execute Tcl command for each line
|| :tclf[ile] execute Tcl script file
|| :te[aroff] tear-off a menu
|| :tf[irst] jump to first matching tag
|| :tj[ump] like ":tselect", but jump directly when there
is only one match
|| :tl[ast] jump to last matching tag
|| :tm[enu] define menu tooltip
|| :tn[ext] jump to next matching tag
|| :to[pleft] make split window appear at top or far left
|| :tp[revious] jump to previous matching tag
|| :tr[ewind] jump to first matching tag
|| :ts[elect] list matching tags and select one
|| :tu[nmenu] remove menu tooltip
|| :u[ndo] undo last change(s)
|| :una[bbreviate] remove abbreviation
|| :unh[ide] open a window for each loaded file in the
buffer list
|| :unl[et] delete variable
|| :unm[ap] remove mapping
|| :unme[nu] remove menu
|| :up[date] write buffer if modified
|| :v[global] execute commands for not matching lines
|| :ve[rsion] print version number and other info
|| :verb[ose] execute command with 'verbose' set
|| :vert[ical] make following command split vertically
|| :vi[sual] same as ":edit", but turns off "Ex" mode
|| :vie[w] edit a file read-only
|| :vm[ap] like ":map" but for Visual mode
|| :vmapc[lear] remove all mappings for Visual mode
|| :vme[nu] add menu for Visual mode
|| :vn[oremap] like ":noremap" but for Visual mode
|| :vne[w] create a new empty window, vertically split
|| :vnoreme[nu] like ":noremenu" but for Visual mode
|| :vs[plit] split current window vertically
|| :vu[nmap] like ":unmap" but for Visual mode
|| :vunme[nu] remove menu for Visual mode
|| :w[rite] write to a file
|| :wN[ext] write to a file and go to previous file in
argument list
|| :wa[ll] write all (changed) buffers
|| :wh[ile] execute loop for as long as condition met
|| :wi[nsize] get or set window size (obsolete)
|| :winc[md] execute a Window (CTRL-W) command
|| :winp[os] get or set window position
|| :wn[ext] write to a file and go to next file in
argument list
|| :wp[revious] write to a file and go to previous file in
argument list
|| :wq write to a file and quit window or Vim
|| :wqa[ll] write all changed buffers and quit Vim
|| :wv[iminfo] write to viminfo file
|| :x[it] write if buffer changed and quit window or Vim
|| :xa[ll] same as ":wqall"
|| :y[ank] yank lines into a register
|| :z print some lines
|| :~ repeat last ":substitute"
vim:tw=78:ts=8:ft=help:norl:
Generated by vim2html on Sun Oct 7 03:59:06 PDT 2001