blob: b7be0b881b82304f68500a5fa6907ae667537d5d [file] [log] [blame]
Bram Moolenaar4be06f92005-07-29 22:36:03 +00001*index.txt* For Vim version 7.0aa. Last change: 2005 Jul 29
Bram Moolenaar071d4272004-06-13 20:20:40 +00002
3
4 VIM REFERENCE MANUAL by Bram Moolenaar
5
6 *index*
7This file contains a list of all commands for each mode, with a tag and a
8short description. The lists are sorted on ASCII value.
9
10Tip: When looking for certain functionality, use a search command. E.g.,
11to look for deleting something, use: "/delete".
12
131. Insert mode |insert-index|
142. Normal mode |normal-index|
15 2.1. Text objects |objects|
16 2.2. Window commands |CTRL-W|
17 2.3. Square bracket commands |[|
18 2.4. Commands starting with 'g' |g|
19 2.5. Commands starting with 'z' |z|
203. Visual mode |visual-index|
214. Command-line editing |ex-edit-index|
225. EX commands |ex-cmd-index|
23
24For an overview of options see help.txt |option-list|.
25For an overview of built-in functions see |functions|.
26For a list of Vim variables see |vim-variable|.
27For a complete listing of all help items see |help-tags|.
28
29==============================================================================
301. Insert mode *insert-index*
31
32tag char action ~
33-----------------------------------------------------------------------
34|i_CTRL-@| CTRL-@ insert previously inserted text and stop
35 insert
36|i_CTRL-A| CTRL-A insert previously inserted text
37 CTRL-B not used |i_CTRL-B-gone|
38|i_CTRL-C| CTRL-C quit insert mode, without checking for
39 abbreviation, unless 'insertmode' set.
40|i_CTRL-D| CTRL-D delete one shiftwidth of indent in the current
41 line
42|i_CTRL-E| CTRL-E insert the character which is below the cursor
43 CTRL-F not used (but by default it's in 'cinkeys' to
44 re-indent the current line)
45|i_CTRL-G_j| CTRL-G CTRL-J line down, to column where inserting started
46|i_CTRL-G_j| CTRL-G j line down, to column where inserting started
47|i_CTRL-G_j| CTRL-G <Down> line down, to column where inserting started
48|i_CTRL-G_k| CTRL-G CTRL-K line up, to column where inserting started
49|i_CTRL-G_k| CTRL-G k line up, to column where inserting started
50|i_CTRL-G_k| CTRL-G <Up> line up, to column where inserting started
51|i_CTRL-G_u| CTRL-G u start new undoable edit
52|i_<BS>| <BS> delete character before the cursor
53|i_digraph| {char1}<BS>{char2}
54 enter digraph (only when 'digraph' option set)
55|i_CTRL-H| CTRL-H same as <BS>
56|i_<Tab>| <Tab> insert a <Tab> character
57|i_CTRL-I| CTRL-I same as <Tab>
58|i_<NL>| <NL> same as <CR>
59|i_CTRL-J| CTRL-J same as <CR>
60|i_CTRL-K| CTRL-K {char1} {char2}
61 enter digraph
62|i_CTRL-L| CTRL-L when 'insertmode' set: Leave Insert mode
63|i_<CR>| <CR> begin new line
64|i_CTRL-M| CTRL-M same as <CR>
65|i_CTRL-N| CTRL-N find next match for keyword in front of the
66 cursor
67|i_CTRL-O| CTRL-O execute a single command and return to insert
68 mode
69|i_CTRL-P| CTRL-P find previous match for keyword in front of
70 the cursor
71|i_CTRL-Q| CTRL-Q same as CTRL-V, unless used for terminal
72 control flow
73|i_CTRL-R| CTRL-R {0-9a-z"%#*:=}
74 insert the contents of a register
75|i_CTRL-R_CTRL-R| CTRL-R CTRL-R {0-9a-z"%#*:=}
76 insert the contents of a register literally
77|i_CTRL-R_CTRL-O| CTRL-R CTRL-O {0-9a-z"%#*:=}
78 insert the contents of a register literally
79 and don't auto-indent
80|i_CTRL-R_CTRL-P| CTRL-R CTRL-P {0-9a-z"%#*:=}
81 insert the contents of a register literally
82 and fix indent.
83 CTRL-S (used for terminal control flow)
84|i_CTRL-T| CTRL-T insert one shiftwidth of indent in current
85 line
86|i_CTRL-U| CTRL-U delete all entered characters in the current
87 line
88|i_CTRL-V| CTRL-V {char} insert next non-digit literally
89|i_CTRL-V_digit| CTRL-V {number} insert three digit decimal number as a single
90 byte.
91|i_CTRL-W| CTRL-W delete word before the cursor
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +000092|i_CTRL-X| CTRL-X {mode} enter CTRL-X sub mode, see |i_CTRL-X_index|
Bram Moolenaar071d4272004-06-13 20:20:40 +000093|i_CTRL-Y| CTRL-Y insert the character which is above the cursor
94|i_CTRL-Z| CTRL-Z when 'insertmode' set: suspend Vim
95|i_<Esc>| <Esc> end insert mode (unless 'insertmode' set)
96|i_CTRL-[| CTRL-[ same as <Esc>
97|i_CTRL-\_CTRL-N| CTRL-\ CTRL-N go to Normal mode
98|i_CTRL-\_CTRL-G| CTRL-\ CTRL-G go to mode specified with 'insertmode'
99 CTRL-\ a - z reserved for extensions
100 CTRL-\ others not used
101|i_CTRL-]| CTRL-] trigger abbreviation
102|i_CTRL-^| CTRL-^ toggle use of |:lmap| mappings
103|i_CTRL-_| CTRL-_ When 'allowrevins' set: change language
104 (Hebrew, Farsi) {only when compiled with
105 +rightleft feature}
106
107 <Space> to '~' not used, except '0' and '^' followed by
108 CTRL-D
109
110|i_0_CTRL-D| 0 CTRL-D delete all indent in the current line
111|i_^_CTRL-D| ^ CTRL-D delete all indent in the current line, restore
112 it in the next line
113
114|i_<Del>| <Del> delete character under the cursor
115
116 Meta characters (0x80 to 0xff, 128 to 255)
117 not used
118
119|i_<Left>| <Left> cursor one character left
120|i_<S-Left>| <S-Left> cursor one word left
121|i_<C-Left>| <C-Left> cursor one word left
122|i_<Right>| <Right> cursor one character right
123|i_<S-Right>| <S-Right> cursor one word right
124|i_<C-Right>| <C-Right> cursor one word right
125|i_<Up>| <Up> cursor one line up
126|i_<S-Up>| <S-Up> same as <PageUp>
127|i_<Down>| <Down> cursor one line down
128|i_<S-Down>| <S-Down> same as <PageDown>
129|i_<Home>| <Home> cursor to start of line
130|i_<C-Home>| <C-Home> cursor to start of file
131|i_<End>| <End> cursor past end of line
132|i_<C-End>| <C-End> cursor past end of file
Bram Moolenaar69a7cb42004-06-20 12:51:53 +0000133|i_<PageUp>| <PageUp> one screenful backward
134|i_<PageDown>| <PageDown> one screenful forward
Bram Moolenaar071d4272004-06-13 20:20:40 +0000135|i_<F1>| <F1> same as <Help>
136|i_<Help>| <Help> stop insert mode and display help window
137|i_<Insert>| <Insert> toggle Insert/Replace mode
138|i_<LeftMouse>| <LeftMouse> cursor at mouse click
139|i_<MouseDown>| <MouseDown> scroll three lines downwards
140|i_<S-MouseDown>| <S-MouseDown> scroll a full page downwards
141|i_<MouseUp>| <MouseUp> scroll three lines upwards
142|i_<S-MouseUp>| <S-MouseUp> scroll a full page upwards
143
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000144commands in CTRL-X submode *i_CTRL-X_index*
Bram Moolenaar071d4272004-06-13 20:20:40 +0000145
146|i_CTRL-X_CTRL-D| CTRL-X CTRL-D complete defined identifiers
147|i_CTRL-X_CTRL-E| CTRL-X CTRL-E scroll up
148|i_CTRL-X_CTRL-F| CTRL-X CTRL-F complete file names
149|i_CTRL-X_CTRL-I| CTRL-X CTRL-I complete identifiers
150|i_CTRL-X_CTRL-K| CTRL-X CTRL-K complete identifiers from dictionary
151|i_CTRL-X_CTRL-L| CTRL-X CTRL-L complete whole lines
152|i_CTRL-X_CTRL-N| CTRL-X CTRL-N next completion
Bram Moolenaar4be06f92005-07-29 22:36:03 +0000153|i_CTRL-X_CTRL-O| CTRL-X CTRL-O occult completion
Bram Moolenaar071d4272004-06-13 20:20:40 +0000154|i_CTRL-X_CTRL-P| CTRL-X CTRL-P previous completion
155|i_CTRL-X_CTRL-T| CTRL-X CTRL-T complete identifiers from thesaurus
156|i_CTRL-X_CTRL-Y| CTRL-X CTRL-Y scroll down
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000157|i_CTRL-X_CTRL-U| CTRL-X CTRL-U complete with 'completefunc'
158|i_CTRL-X_CTRL-V| CTRL-X CTRL-V complete like in : command line
Bram Moolenaar071d4272004-06-13 20:20:40 +0000159|i_CTRL-X_CTRL-]| CTRL-X CTRL-] complete tags
160{not available when compiled without the +insert_expand feature}
161
162==============================================================================
1632. Normal mode *normal-index*
164
165CHAR any non-blank character
166WORD a sequence of non-blank characters
167N a number entered before the command
168{motion} a cursor movement command
169Nmove the text that is moved over with a {motion}
170SECTION a section that possibly starts with '}' instead of '{'
171
172note: 1 = cursor movement command; 2 = can be undone/redone
173
174tag char note action in Normal mode ~
175------------------------------------------------------------------------------
176 CTRL-@ not used
177|CTRL-A| CTRL-A 2 add N to number at/after cursor
178|CTRL-B| CTRL-B 1 scroll N screens Backwards
179|CTRL-C| CTRL-C interrupt current (search) command
180|CTRL-D| CTRL-D scroll Down N lines (default: half a screen)
181|CTRL-E| CTRL-E scroll N lines upwards (N lines Extra)
182|CTRL-F| CTRL-F 1 scroll N screens Forward
183|CTRL-G| CTRL-G display current file name and position
184|<BS>| <BS> 1 same as "h"
185|CTRL-H| CTRL-H 1 same as "h"
186|<Tab>| <Tab> 1 go to N newer entry in jump list
187|CTRL-I| CTRL-I 1 same as <Tab>
188|<NL>| <NL> 1 same as "j"
189|CTRL-J| CTRL-J 1 same as "j"
190 CTRL-K not used
191|CTRL-L| CTRL-L redraw screen
192|<CR>| <CR> 1 cursor to the first CHAR N lines lower
193|CTRL-M| CTRL-M 1 same as <CR>
194|CTRL-N| CTRL-N 1 same as "j"
195|CTRL-O| CTRL-O 1 go to N older entry in jump list
196|CTRL-P| CTRL-P 1 same as "k"
197 CTRL-Q (used for terminal control flow)
198|CTRL-R| CTRL-R 2 redo changes which were undone with 'u'
199 CTRL-S (used for terminal control flow)
200|CTRL-T| CTRL-T jump to N older Tag in tag list
201|CTRL-U| CTRL-U scroll N lines Upwards (default: half a
202 screen)
203|CTRL-V| CTRL-V start blockwise Visual mode
204|CTRL-W| CTRL-W {char} window commands, see |CTRL-W|
205|CTRL-X| CTRL-X 2 subtract N from number at/after cursor
206|CTRL-Y| CTRL-Y scroll N lines downwards
207|CTRL-Z| CTRL-Z suspend program (or start new shell)
208 CTRL-[ <Esc> not used
209|CTRL-\_CTRL-N| CTRL-\ CTRL-N go to Normal mode (no-op)
210|CTRL-\_CTRL-G| CTRL-\ CTRL-G go to mode specified with 'insertmode'
211 CTRL-\ a - z reserved for extensions
212 CTRL-\ others not used
213|CTRL-]| CTRL-] :ta to ident under cursor
214|CTRL-^| CTRL-^ edit Nth alternate file (equivalent to
215 ":e #N")
216 CTRL-_ not used
217
218|<Space>| <Space> 1 same as "l"
219|!| !{motion}{filter}
220 2 filter Nmove text through the {filter}
221 command
222|!!| !!{filter} 2 filter N lines through the {filter} command
223|quote| "{a-zA-Z0-9.%#:-"} use register {a-zA-Z0-9.%#:-"} for next
224 delete, yank or put (uppercase to append)
225 ({.%#:} only work with put)
226|#| # 1 search backward for the Nth occurrence of
227 the ident under the cursor
228|$| $ 1 cursor to the end of Nth next line
229|%| % 1 find the next (curly/square) bracket on
230 this line and go to its match, or go to
231 matching comment bracket, or go to matching
232 preprocessor directive.
233|N%| {count}% 1 go to N percentage in the file
234|&| & 2 repeat last :s
235|'| '{a-zA-Z0-9} 1 cursor to the first CHAR on the line with
236 mark {a-zA-Z0-9}
237|''| '' 1 cursor to the first CHAR of the line where
238 the cursor was before the latest jump.
239|'(| '( 1 cursor to the first CHAR on the line of the
240 start of the current sentence
241|')| ') 1 cursor to the first CHAR on the line of the
242 end of the current sentence
243|'<| '< 1 cursor to the first CHAR of the line where
244 highlighted area starts/started in the
245 current buffer.
246|'>| '> 1 cursor to the first CHAR of the line where
247 highlighted area ends/ended in the current
248 buffer.
249|'[| '[ 1 cursor to the first CHAR on the line of the
250 start of last operated text or start of put
251 text
252|']| '] 1 cursor to the first CHAR on the line of the
253 end of last operated text or end of put
254 text
255|'{| '{ 1 cursor to the first CHAR on the line of the
256 start of the current paragraph
257|'}| '} 1 cursor to the first CHAR on the line of the
258 end of the current paragraph
259|(| ( 1 cursor N sentences backward
260|)| ) 1 cursor N sentences forward
261|star| * 1 search forward for the Nth occurrence of
262 the ident under the cursor
263|+| + 1 same as <CR>
264|,| , 1 repeat latest f, t, F or T in opposite
265 direction N times
266|-| - 1 cursor to the first CHAR N lines higher
267|.| . 2 repeat last change with count replaced with
268 N
269|/| /{pattern}<CR> 1 search forward for the Nth occurrence of
270 {pattern}
271|/<CR>| /<CR> 1 search forward for {pattern} of last search
272|count| 0 1 cursor to the first char of the line
273|count| 1 prepend to command to give a count
274|count| 2 "
275|count| 3 "
276|count| 4 "
277|count| 5 "
278|count| 6 "
279|count| 7 "
280|count| 8 "
281|count| 9 "
282|:| : 1 start entering an Ex command
283|N:| {count}: start entering an Ex command with range
284 from current line to N-1 lines down
285|;| ; 1 repeat latest f, t, F or T N times
286|<| <{motion} 2 shift Nmove lines one 'shiftwidth'
287 leftwards
288|<<| << 2 shift N lines one 'shiftwidth' leftwards
289|=| ={motion} 2 filter Nmove lines through "indent"
290|==| == 2 filter N lines through "indent"
291|>| >{motion} 2 shift Nmove lines one 'shiftwidth'
292 rightwards
293|>>| >> 2 shift N lines one 'shiftwidth' rightwards
294|?| ?{pattern}<CR> 1 search backward for the Nth previous
295 occurrence of {pattern}
296|?<CR>| ?<CR> 1 search backward for {pattern} of last search
297|@| @{a-z} 2 execute the contents of register {a-z}
298 N times
299|@:| @: repeat the previous ":" command N times
300|@@| @@ 2 repeat the previous @{a-z} N times
301|A| A 2 append text after the end of the line N times
302|B| B 1 cursor N WORDS backward
303|C| ["x]C 2 change from the cursor position to the end
304 of the line, and N-1 more lines [into
305 buffer x]; synonym for "c$"
306|D| ["x]D 2 delete the characters under the cursor
307 until the end of the line and N-1 more
308 lines [into buffer x]; synonym for "d$"
309|E| E 1 cursor forward to the end of WORD N
310|F| F{char} 1 cursor to the Nth occurrence of {char} to
311 the left
312|G| G 1 cursor to line N, default last line
313|H| H 1 cursor to line N from top of screen
314|I| I 2 insert text before the first CHAR on the
315 line N times
316|J| J 2 Join N lines; default is 2
317|K| K lookup Keyword under the cursor with
318 'keywordprg'
319|L| L 1 cursor to line N from bottom of screen
320|M| M 1 cursor to middle line of screen
321|N| N 1 repeat the latest '/' or '?' N times in
322 opposite direction
323|O| O 2 begin a new line above the cursor and
324 insert text, repeat N times
325|P| ["x]P 2 put the text [from buffer x] before the
326 cursor N times
327|Q| Q switch to "Ex" mode
328|R| R 2 enter replace mode: overtype existing
329 characters, repeat the entered text N-1
330 times
331|S| ["x]S 2 delete N lines [into buffer x] and start
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000332 insert; synonym for "cc".
Bram Moolenaar071d4272004-06-13 20:20:40 +0000333|T| T{char} 1 cursor till after Nth occurrence of {char}
334 to the left
335|U| U 2 undo all latest changes on one line
336|V| V start linewise Visual mode
337|W| W 1 cursor N WORDS forward
338|X| ["x]X 2 delete N characters before the cursor [into
339 buffer x]
340|Y| ["x]Y yank N lines [into buffer x]; synonym for
341 "yy"
342|ZZ| ZZ store current file if modified, and exit
343|ZQ| ZQ exit current file always
344|[| [{char} square bracket command (see below)
345 \ not used
346|]| ]{char} square bracket command (see below)
347|^| ^ 1 cursor to the first CHAR of the line
348|_| _ 1 cursor to the first CHAR N - 1 lines lower
349|`| `{a-zA-Z0-9} 1 cursor to the mark {a-zA-Z0-9}
350|`(| `( 1 cursor to the start of the current sentence
351|`)| `) 1 cursor to the end of the current sentence
352|`<| `< 1 cursor to the start of the highlighted area
353|`>| `> 1 cursor to the end of the highlighted area
354|`[| `[ 1 cursor to the start of last operated text
355 or start of putted text
356|`]| `] 1 cursor to the end of last operated text or
357 end of putted text
358|``| `` 1 cursor to the position before latest jump
359|`{| `{ 1 cursor to the start of the current paragraph
360|`}| `} 1 cursor to the end of the current paragraph
361|a| a 2 append text after the cursor N times
362|b| b 1 cursor N words backward
363|c| ["x]c{motion} 2 delete Nmove text [into buffer x] and start
364 insert
365|cc| ["x]cc 2 delete N lines [into buffer x] and start
366 insert
367|d| ["x]d{motion} 2 delete Nmove text [into buffer x]
368|dd| ["x]dd 2 delete N lines [into buffer x]
369|do| do 2 same as ":diffget"
370|dp| dp 2 same as ":diffput"
371|e| e 1 cursor forward to the end of word N
372|f| f{char} 1 cursor to Nth occurrence of {char} to the
373 right
374|g| g{char} extended commands, see below
375|h| h 1 cursor N chars to the left
376|i| i 2 insert text before the cursor N times
377|j| j 1 cursor N lines downward
378|k| k 1 cursor N lines upward
379|l| l 1 cursor N chars to the right
380|m| m{A-Za-z} set mark {A-Za-z} at cursor position
381|n| n 1 repeat the latest '/' or '?' N times
382|o| o 2 begin a new line below the cursor and
383 insert text, repeat N times
384|p| ["x]p 2 put the text [from register x] after the
385 cursor N times
386|q| q{0-9a-zA-Z"} record typed characters into named register
387 {0-9a-zA-Z"} (uppercase to append)
388|q| q (while recording) stops recording
389|q:| q: edit : command-line in command-line window
390|q/| q/ edit / command-line in command-line window
391|q?| q? edit ? command-line in command-line window
392|r| r{char} 2 replace N chars with {char}
393|s| ["x]s 2 (substitute) delete N characters [into
394 buffer x] and start insert
395|t| t{char} 1 cursor till before Nth occurrence of {char}
396 to the right
397|u| u 2 undo changes
398|v| v start characterwise Visual mode
399|w| w 1 cursor N words forward
400|x| ["x]x 2 delete N characters under and after the
401 cursor [into buffer x]
402|y| ["x]y{motion} yank Nmove text [into buffer x]
403|yy| ["x]yy yank N lines [into buffer x]
404|z| z{char} commands starting with 'z', see below
405|{| { 1 cursor N paragraphs backward
406|bar| | 1 cursor to column N
407|}| } 1 cursor N paragraphs forward
408|~| ~ 2 'tildeop' off: switch case of N characters
409 under cursor and move the cursor N
410 characters to the right
411|~| ~{motion} 'tildeop' on: switch case of Nmove text
412|<C-End>| <C-End> 1 same as "G"
413|<C-Home>| <C-Home> 1 same as "gg"
414|<C-Left>| <C-Left> 1 same as "b"
415|<C-LeftMouse>| <C-LeftMouse> ":ta" to the keyword at the mouse click
416|<C-Right>| <C-Right> 1 same as "w"
417|<C-RightMouse>| <C-RightMouse> same as "CTRL-T"
418|<Del>| ["x]<Del> 2 same as "x"
419|N<Del>| {count}<Del> remove the last digit from {count}
420|<Down>| <Down> 1 same as "j"
421|<End>| <End> 1 same as "$"
422|<F1>| <F1> same as <Help>
423|<Help>| <Help> open a help window
424|<Home>| <Home> 1 same as "0"
425|<Insert>| <Insert> 2 same as "i"
426|<Left>| <Left> 1 same as "h"
427|<LeftMouse>| <LeftMouse> 1 move cursor to the mouse click position
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000428|<MiddleMouse>| <MiddleMouse> 2 same as "gP" at the mouse click position
Bram Moolenaar071d4272004-06-13 20:20:40 +0000429|<PageDown>| <PageDown> same as CTRL-F
430|<PageUp>| <PageUp> same as CTRL-B
431|<Right>| <Right> 1 same as "l"
432|<RightMouse>| <RightMouse> start Visual mode, move cursor to the mouse
433 click position
434|<S-Down>| <S-Down> 1 same as CTRL-F
435|<S-Left>| <S-Left> 1 same as "b"
436|<S-LeftMouse>| <S-LeftMouse> same as "*" at the mouse click position
437|<S-Right>| <S-Right> 1 same as "w"
438|<S-RightMouse>| <S-RightMouse> same as "#" at the mouse click position
439|<S-Up>| <S-Up> 1 same as CTRL-B
440|<Undo>| <Undo> 2 same as "u"
441|<Up>| <Up> 1 same as "k"
442|<MouseDown>| <MouseDown> scroll three lines downwards
443|<S-MouseDown>| <S-MouseDown> scroll a full page downwards
444|<MouseUp>| <MouseUp> scroll three lines upwards
445|<S-MouseUp>| <S-MouseUp> scroll a full page upwards
446
447==============================================================================
4482.1 Text objects *objects*
449
450These can be used after an operator or in Visual mode to select an object.
451
452tag command action in Normal mode ~
453------------------------------------------------------------------------------
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000454|v_aquote| a" double quoted string
455|v_a'| a' single quoted string
Bram Moolenaar071d4272004-06-13 20:20:40 +0000456|v_a(| a( same as ab
457|v_a)| a) same as ab
458|v_a<| a< "a <>" from '<' to the matching '>'
459|v_a>| a> same as a<
460|v_aB| aB "a Block" from "[{" to "]}" (with brackets)
461|v_aW| aW "a WORD" (with white space)
462|v_a[| a[ "a []" from '[' to the matching ']'
463|v_a]| a] same as a[
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000464|v_a`| a` string in backticks
Bram Moolenaar071d4272004-06-13 20:20:40 +0000465|v_ab| ab "a block" from "[(" to "])" (with braces)
466|v_ap| ap "a paragraph" (with white space)
467|v_as| as "a sentence" (with white space)
468|v_aw| aw "a word" (with white space)
469|v_a{| a{ same as aB
470|v_a}| a} same as aB
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000471|v_iquote| i" double quoted string without the quotes
472|v_i'| i' single quoted string without the quotes
Bram Moolenaar071d4272004-06-13 20:20:40 +0000473|v_i(| i( same as ib
474|v_i)| i) same as ib
475|v_i<| i< "inner <>" from '<' to the matching '>'
476|v_i>| i> same as i<
477|v_iB| iB "inner Block" from "[{" and "]}"
478|v_iW| iW "inner WORD"
479|v_i[| i[ "inner []" from '[' to the matching ']'
480|v_i]| i] same as i[
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000481|v_i`| i` string in backticks without the backticks
Bram Moolenaar071d4272004-06-13 20:20:40 +0000482|v_ib| ib "inner block" from "[(" to "])"
483|v_ip| ip "inner paragraph"
484|v_is| is "inner sentence"
485|v_iw| iw "inner word"
486|v_i{| i{ same as iB
487|v_i}| i} same as iB
488
489==============================================================================
4902.2 Window commands *CTRL-W*
491
492tag command action in Normal mode ~
493------------------------------------------------------------------------------
494|CTRL-W_CTRL-B| CTRL-W CTRL-B same as "CTRL-W b"
495|CTRL-W_CTRL-C| CTRL-W CTRL-C same as "CTRL-W c"
496|CTRL-W_CTRL-D| CTRL-W CTRL-D same as "CTRL-W d"
497|CTRL-W_CTRL-F| CTRL-W CTRL-F same as "CTRL-W f"
498 CTRL-W CTRL-G same as "CTRL-W g .."
499|CTRL-W_CTRL-H| CTRL-W CTRL-H same as "CTRL-W h"
500|CTRL-W_CTRL-I| CTRL-W CTRL-I same as "CTRL-W i"
501|CTRL-W_CTRL-J| CTRL-W CTRL-J same as "CTRL-W j"
502|CTRL-W_CTRL-K| CTRL-W CTRL-K same as "CTRL-W k"
503|CTRL-W_CTRL-L| CTRL-W CTRL-L same as "CTRL-W l"
504|CTRL-W_CTRL-N| CTRL-W CTRL-N same as "CTRL-W n"
505|CTRL-W_CTRL-O| CTRL-W CTRL-O same as "CTRL-W o"
506|CTRL-W_CTRL-P| CTRL-W CTRL-P same as "CTRL-W p"
507|CTRL-W_CTRL-Q| CTRL-W CTRL-Q same as "CTRL-W q"
508|CTRL-W_CTRL-R| CTRL-W CTRL-R same as "CTRL-W r"
509|CTRL-W_CTRL-S| CTRL-W CTRL-S same as "CTRL-W s"
510|CTRL-W_CTRL-T| CTRL-W CTRL-T same as "CTRL-W t"
511|CTRL-W_CTRL-V| CTRL-W CTRL-V same as "CTRL-W v"
512|CTRL-W_CTRL-W| CTRL-W CTRL-W same as "CTRL-W w"
513|CTRL-W_CTRL-X| CTRL-W CTRL-X same as "CTRL-W x"
514|CTRL-W_CTRL-Z| CTRL-W CTRL-Z same as "CTRL-W z"
515|CTRL-W_CTRL-]| CTRL-W CTRL-] same as "CTRL-W ]"
516|CTRL-W_CTRL-^| CTRL-W CTRL-^ same as "CTRL-W ^"
517|CTRL-W_CTRL-_| CTRL-W CTRL-_ same as "CTRL-W _"
518|CTRL-W_+| CTRL-W + increase current window height N lines
519|CTRL-W_-| CTRL-W - decrease current window height N lines
520|CTRL-W_<| CTRL-W < decrease current window width N columns
521|CTRL-W_=| CTRL-W = make all windows the same height
522|CTRL-W_>| CTRL-W > increase current window width N columns
523|CTRL-W_H| CTRL-W H move current window to the far left
524|CTRL-W_J| CTRL-W J move current window to the very bottom
525|CTRL-W_K| CTRL-W K move current window to the very top
526|CTRL-W_L| CTRL-W L move current window to the far right
527|CTRL-W_P| CTRL-W P go to preview window
528|CTRL-W_R| CTRL-W R rotate windows upwards N times
529|CTRL-W_S| CTRL-W S same as "CTRL-W s"
530|CTRL-W_W| CTRL-W W go to N previous window (wrap around)
531|CTRL-W_]| CTRL-W ] split window and jump to tag under cursor
532|CTRL-W_^| CTRL-W ^ split current window and edit alternate
533 file N
534|CTRL-W__| CTRL-W _ set current window height to N (default:
535 very high)
536|CTRL-W_b| CTRL-W b go to bottom window
537|CTRL-W_c| CTRL-W c close current window (like |:close|)
538|CTRL-W_d| CTRL-W d split window and jump to definition under
539 the cursor
540|CTRL-W_f| CTRL-W f split window and edit file name under the
541 cursor
542|CTRL-W_g_CTRL-]| CTRL-W g CTRL-] split window and do |:tjump| to tag under
543 cursor
544|CTRL-W_g]| CTRL-W g ] split window and do |:tselect| for tag
545 under cursor
546|CTRL-W_g}| CTRL-W g } do a |:ptjump| to the tag under the cursor
547|CTRL-W_h| CTRL-W h go to Nth left window (stop at first window)
548|CTRL-W_i| CTRL-W i split window and jump to declaration of
549 identifier under the cursor
550|CTRL-W_j| CTRL-W j go N windows down (stop at last window)
551|CTRL-W_k| CTRL-W k go N windows up (stop at first window)
552|CTRL-W_l| CTRL-W l go to Nth right window (stop at last window)
553|CTRL-W_n| CTRL-W n open new window, N lines high
554|CTRL-W_o| CTRL-W o close all but current window (like |:only|)
555|CTRL-W_p| CTRL-W p go to previous (last accessed) window
556|CTRL-W_q| CTRL-W q quit current window (like |:quit|)
557|CTRL-W_r| CTRL-W r rotate windows downwards N times
558|CTRL-W_s| CTRL-W s split current window in two parts, new
559 window N lines high
560|CTRL-W_t| CTRL-W t go to top window
561|CTRL-W_v| CTRL-W v split current window vertically, new window
562 N lines wide
563|CTRL-W_w| CTRL-W w go to N next window (wrap around)
564|CTRL-W_x| CTRL-W x exchange current window with window N
565 (default: next window)
566|CTRL-W_z| CTRL-W z close preview window
567|CTRL-W_bar| CTRL-W | set window width to N columns
568|CTRL-W_}| CTRL-W } show tag under cursor in preview window
569|CTRL-W_<Down>| CTRL-W <Down> same as "CTRL-W j"
570|CTRL-W_<Up>| CTRL-W <Up> same as "CTRL-W k"
571|CTRL-W_<Left>| CTRL-W <Left> same as "CTRL-W h"
572|CTRL-W_<Right>| CTRL-W <Right> same as "CTRL-W l"
573
574==============================================================================
5752.3 Square bracket commands *[* *]*
576
577tag char note action in Normal mode ~
578------------------------------------------------------------------------------
579|[_CTRL-D| [ CTRL-D jump to first #define found in current and
580 included files matching the word under the
581 cursor, start searching at beginning of
582 current file
583|[_CTRL-I| [ CTRL-I jump to first line in current and included
584 files that contains the word under the
585 cursor, start searching at beginning of
586 current file
587|[#| [# 1 cursor to N previous unmatched #if, #else
588 or #ifdef
589|['| [' 1 cursor to previous lowercase mark, on first
590 non-blank
591|[(| [( 1 cursor N times back to unmatched '('
592|[star| [* 1 same as "[/"
593|[`| [` 1 cursor to previous lowercase mark
594|[/| [/ 1 cursor to N previous start of a C comment
595|[D| [D list all defines found in current and
596 included files matching the word under the
597 cursor, start searching at beginning of
598 current file
599|[I| [I list all lines found in current and
600 included files that contain the word under
601 the cursor, start searching at beginning of
602 current file
603|[P| [P 2 same as "[p"
604|[[| [[ 1 cursor N sections backward
605|[]| [] 1 cursor N SECTIONS backward
606|[c| [c 1 cursor N times backwards to start of change
607|[d| [d show first #define found in current and
608 included files matching the word under the
609 cursor, start searching at beginning of
610 current file
611|[f| [f same as "gf"
612|[i| [i show first line found in current and
613 included files that contains the word under
614 the cursor, start searching at beginning of
615 current file
616|[p| [p 2 like "P", but adjust indent to current line
617|[m| [m 1 cursor N times back to start of member
618 function
619|[z| [z 1 move to start of open fold
620|[{| [{ 1 cursor N times back to unmatched '{'
621|[<MiddleMouse> [<MiddleMouse> 2 same as "[p"
622
623|]_CTRL-D| ] CTRL-D jump to first #define found in current and
624 included files matching the word under the
625 cursor, start searching at cursor position
626|]_CTRL-I| ] CTRL-I jump to first line in current and included
627 files that contains the word under the
628 cursor, start searching at cursor position
629|]#| ]# 1 cursor to N next unmatched #endif or #else
630|]'| ]' 1 cursor to next lowercase mark, on first
631 non-blank
632|])| ]) 1 cursor N times forward to unmatched ')'
633|]star| ]* 1 same as "]/"
634|]`| ]` 1 cursor to next lowercase mark
635|]/| ]/ 1 cursor to N next end of a C comment
636|]D| ]D list all #defines found in current and
637 included files matching the word under the
638 cursor, start searching at cursor position
639|]I| ]I list all lines found in current and
640 included files that contain the word under
641 the cursor, start searching at cursor
642 position
643|]P| ]P 2 same as "[p"
644|][| ][ 1 cursor N SECTIONS forward
645|]]| ]] 1 cursor N sections forward
646|]c| ]c 1 cursor N times forward to start of change
647|]d| ]d show first #define found in current and
648 included files matching the word under the
649 cursor, start searching at cursor position
650|]f| ]f same as "gf"
651|]i| ]i show first line found in current and
652 included files that contains the word under
653 the cursor, start searching at cursor
654 position
655|]p| ]p 2 like "p", but adjust indent to current line
656|]m| ]m 1 cursor N times forward to end of member
657 function
658|]z| ]z 1 move to end of open fold
659|]}| ]} 1 cursor N times forward to unmatched '}'
660|]<MiddleMouse> ]<MiddleMouse> 2 same as "]p"
661
662==============================================================================
6632.4 Commands starting with 'g' *g*
664
665tag char note action in Normal mode ~
666------------------------------------------------------------------------------
667|g_CTRL-A| g CTRL-A only when compiled with MEM_PROFILE
668 defined: dump a memory profile
669|g_CTRL-G| g CTRL-G show information about current cursor
670 position
671|g_CTRL-H| g CTRL-H start Select block mode
672|g_CTRL-]| g CTRL-] |:tjump| to the tag under the cursor
673|g#| g# 1 like "#", but without using "\<" and "\>"
674|g$| g$ 1 when 'wrap' off go to rightmost character of
675 the current line that is on the screen;
676 when 'wrap' on go to the rightmost character
677 of the current screen line
678|g&| g& 2 repeat last ":s" on all lines
679|g'| g'{mark} 1 like |'| but without changing the jumplist
680|g`| g`{mark} 1 like |`| but without changing the jumplist
681|gstar| g* 1 like "*", but without using "\<" and "\>"
682|g0| g0 1 when 'wrap' off go to leftmost character of
683 the current line that is on the screen;
684 when 'wrap' on go to the leftmost character
685 of the current screen line
686|g8| g8 print hex value of bytes used in UTF-8
687 character under the cursor
Bram Moolenaarcfc7d632005-07-28 22:28:16 +0000688|g<| g< display previous command output
Bram Moolenaar071d4272004-06-13 20:20:40 +0000689|g?| g? 2 Rot13 encoding operator
690|g?g?| g?? 2 Rot13 encode current line
691|g?g?| g?g? 2 Rot13 encode current line
692|gD| gD 1 go to definition of word under the cursor
693 in current file
694|gE| gE 1 go backwards to the end of the previous
695 WORD
696|gH| gH start Select line mode
697|gI| gI 2 like "I", but always start in column 1
698|gJ| gJ 2 join lines without inserting space
699|gP| ["x]gP 2 put the text [from register x] before the
700 cursor N times, leave the cursor after it
701|gR| gR 2 enter Virtual Replace mode
702|gU| gU{motion} 2 make Nmove text uppercase
703|gV| gV don't reselect the previous Visual area
704 when executing a mapping or menu in Select
705 mode
706|g]| g] :tselect on the tag under the cursor
707|g^| g^ 1 when 'wrap' off go to leftmost non-white
708 character of the current line that is on
709 the screen; when 'wrap' on go to the
710 leftmost non-white character of the current
711 screen line
712|ga| ga print ascii value of character under the
713 cursor
714|gd| gd 1 go to definition of word under the cursor
715 in current function
716|ge| ge 1 go backwards to the end of the previous
717 word
718|gf| gf start editing the file whose name is under
719 the cursor
720|gg| gg 1 cursor to line N, default first line
721|gh| gh start Select mode
722|gi| gi 2 like "i", but first move to the |'^| mark
723|gj| gj 1 like "j", but when 'wrap' on go N screen
724 lines down
725|gk| gk 1 like "k", but when 'wrap' on go N screen
726 lines up
727|gm| gm 1 go to character at middle of the screenline
728|go| go 1 cursor to byte N in the buffer
729|gp| ["x]gp 2 put the text [from register x] after the
730 cursor N times, leave the cursor after it
731|gq| gq{motion} 2 format Nmove text
732|gr| gr{char} 2 virtual replace N chars with {char}
733|gs| gs go to sleep for N seconds (default 1)
734|gu| gu{motion} 2 make Nmove text lowercase
735|gv| gv reselect the previous Visual area
736|gw| gw{motion} 2 format Nmove text and keep cursor
737|g~| g~{motion} 2 swap case for Nmove text
738|g<Down>| g<Down> 1 same as "gj"
739|g<End>| g<End> 1 same as "g$"
740|g<Home>| g<Home> 1 same as "g0"
741|g<LeftMouse>| g<LeftMouse> same as <C-LeftMouse>
742 g<MiddleMouse> same as <C-MiddleMouse>
743|g<RightMouse>| g<RightMouse> same as <C-RightMouse>
744|g<Up>| g<Up> 1 same as "gk"
745
746==============================================================================
7472.5 Commands starting with 'z' *z*
748
749tag char note action in Normal mode ~
750------------------------------------------------------------------------------
751|z<CR>| z<CR> redraw, cursor line to top of window,
752 cursor on first non-blank
753|zN<CR>| z{height}<CR> redraw, make window {height} lines high
754|z+| z+ cursor on line N (default line below
755 window), otherwise like "z<CR>"
756|z-| z- redraw, cursor line at bottom of window,
757 cursor on first non-blank
758|z.| z. redraw, cursor line to center of window,
759 cursor on first non-blank
760|zA| zA open a closed fold or close an open fold
761 recursively
762|zC| zC close folds recursively
763|zD| zD delete folds recursively
764|zE| zE eliminate all folds
765|zF| zF create a fold for N lines
766|zM| zM set 'foldlevel' to zero
767|zN| zN set 'foldenable'
768|zO| zO open folds recursively
769|zR| zR set 'foldlevel' to the deepest fold
770|zX| zX re-apply 'foldlevel'
771|z^| z^ cursor on line N (default line above
772 window), otherwise like "z-"
773|za| za open a closed fold, close an open fold
774|zb| zb redraw, cursor line at bottom of window
775|zc| zc close a fold
776|zd| zd delete a fold
777|ze| ze when 'wrap' off scroll horizontally to
778 position the cursor at the end (right side)
779 of the screen
780|zf| zf{motion} create a fold for Nmove text
781|zh| zh when 'wrap' off scroll screen N characters
782 to the right
783|zi| zi toggle 'foldenable'
784|zj| zj 1 move to the start of the next fold
785|zk| zk 1 move to the end of the previous fold
786|zl| zl when 'wrap' off scroll screen N characters
787 to the left
788|zm| zm subtract one from 'foldlevel'
789|zn| zn reset 'foldenable'
790|zo| zo open fold
791|zr| zr add one to 'foldlevel'
792|zs| zs when 'wrap' off scroll horizontally to
793 position the cursor at the start (left
794 side) of the screen
795|zt| zt redraw, cursor line at top of window
796|zv| zv open enough folds to view the cursor line
797|zx| zx re-apply 'foldlevel' and do "zv"
798|zz| zz redraw, cursor line at center of window
799|z<Left>| z<Left> same as "zh"
800|z<Right>| z<Right> same as "zl"
801
802==============================================================================
8033. Visual mode *visual-index*
804
Bram Moolenaar402d2fe2005-04-15 21:00:38 +0000805Most commands in Visual mode are the same as in Normal mode. The ones listed
Bram Moolenaar071d4272004-06-13 20:20:40 +0000806here are those that are different.
807
808tag command note action in Visual mode ~
809------------------------------------------------------------------------------
810|v_CTRL-\_CTRL-N| CTRL-\ CTRL-N stop Visual mode
811|v_CTRL-\_CTRL-G| CTRL-\ CTRL-G go to mode specified with 'insertmode'
Bram Moolenaar81695252004-12-29 20:58:21 +0000812|v_CTRL-C| CTRL-C stop Visual mode
Bram Moolenaar071d4272004-06-13 20:20:40 +0000813|v_CTRL-G| CTRL-G toggle between Visual mode and Select mode
814|v_<BS>| <BS> 2 Select mode: delete highlighted area
815|v_CTRL-H| CTRL-H 2 same as <BS>
816|v_CTRL-O| CTRL-O switch from Select to Visual mode for one
817 command
818|v_CTRL-V| CTRL-V make Visual mode blockwise or stop Visual
819 mode
Bram Moolenaar81695252004-12-29 20:58:21 +0000820|v_<Esc>| <Esc> stop Visual mode
Bram Moolenaar071d4272004-06-13 20:20:40 +0000821|v_CTRL-]| CTRL-] jump to highlighted tag
822|v_!| !{filter} 2 filter the highlighted lines through the
823 external command {filter}
824|v_:| : start a command-line with the highlighted
825 lines as a range
826|v_<| < 2 shift the highlighted lines one
827 'shiftwidth' left
828|v_=| = 2 filter the highlighted lines through the
829 external program given with the 'equalprg'
830 option
831|v_>| > 2 shift the highlighted lines one
832 'shiftwidth' right
833|v_b_A| A 2 block mode: append same text in all lines,
834 after the highlighted area
835|v_C| C 2 delete the highlighted lines and start
836 insert
837|v_D| D 2 delete the highlighted lines
838|v_b_I| I 2 block mode: insert same text in all lines,
839 before the highlighted area
840|v_J| J 2 join the highlighted lines
841|v_K| K run 'keywordprg' on the highlighted area
842|v_O| O Move horizontally to other corner of area.
843 Q does not start Ex mode
844|v_R| R 2 delete the highlighted lines and start
845 insert
846|v_S| S 2 delete the highlighted lines and start
847 insert
848|v_U| U 2 make highlighted area uppercase
849|v_V| V make Visual mode linewise or stop Visual
850 mode
851|v_X| X 2 delete the highlighted lines
852|v_Y| Y yank the highlighted lines
853|v_a(| a( same as ab
854|v_a)| a) same as ab
855|v_a<| a< extend highlighted area with a <> block
856|v_a>| a> same as a<
857|v_aB| aB extend highlighted area with a {} block
858|v_aW| aW extend highlighted area with "a WORD"
859|v_a[| a[ extend highlighted area with a [] block
860|v_a]| a] same as a[
861|v_ab| ab extend highlighted area with a () block
862|v_ap| ap extend highlighted area with a paragraph
863|v_as| as extend highlighted area with a sentence
864|v_aw| aw extend highlighted area with "a word"
865|v_a{| a{ same as aB
866|v_a}| a} same as aB
867|v_c| c 2 delete highlighted area and start insert
868|v_d| d 2 delete highlighted area
869|v_gJ| gJ 2 join the highlighted lines without
870 inserting spaces
871|v_gq| gq 2 format the highlighted lines
872|v_gv| gv exchange current and previous highlighted
873 area
874|v_i(| i( same as ib
875|v_i)| i) same as ib
876|v_i<| i< extend highlighted area with inner <> block
877|v_i>| i> same as i<
878|v_iB| iB extend highlighted area with inner {} block
879|v_iW| iW extend highlighted area with "inner WORD"
880|v_i[| i[ extend highlighted area with inner [] block
881|v_i]| i] same as i[
882|v_ib| ib extend highlighted area with inner () block
883|v_ip| ip extend highlighted area with inner paragraph
884|v_is| is extend highlighted area with inner sentence
885|v_iw| iw extend highlighted area with "inner word"
886|v_i{| i{ same as iB
887|v_i}| i} same as iB
888|v_o| o move cursor to other corner of area
889|v_r| r 2 delete highlighted area and start insert
890|v_s| s 2 delete highlighted area and start insert
891|v_u| u 2 make highlighted area lowercase
892|v_v| v make Visual mode characterwise or stop
893 Visual mode
894|v_x| x 2 delete the highlighted area
895|v_y| y yank the highlighted area
896|v_~| ~ 2 swap case for the highlighted area
897
898==============================================================================
8994. Command-line editing *ex-edit-index*
900
901Get to the command-line with the ':', '!', '/' or '?' commands.
902Normal characters are inserted at the current cursor position.
903"Completion" below refers to context-sensitive completion. It will complete
904file names, tags, commands etc. as appropriate.
905
906 CTRL-@ not used
907|c_CTRL-A| CTRL-A do completion on the pattern in front of the
908 cursor and insert all matches
909|c_CTRL-B| CTRL-B cursor to begin of command-line
910|c_CTRL-C| CTRL-C same as <ESC>
911|c_CTRL-D| CTRL-D list completions that match the pattern in
912 front of the cursor
913|c_CTRL-E| CTRL-E cursor to end of command-line
914|'cedit'| CTRL-F default value for 'cedit': opens the
915 command-line window; otherwise not used
916 CTRL-G not used
917|c_<BS>| <BS> delete the character in front of the cursor
918|c_digraph| {char1} <BS> {char2}
919 enter digraph when 'digraph' is on
920|c_CTRL-H| CTRL-H same as <BS>
921|c_<Tab>| <Tab> if 'wildchar' is <Tab>: Do completion on
922 the pattern in front of the cursor
923|c_<S-Tab>| <S-Tab> same as CTRL-P
924|c_wildchar| 'wildchar' Do completion on the pattern in front of the
925 cursor (default: <Tab>)
926|c_CTRL-I| CTRL-I same as <Tab>
927|c_<NL>| <NL> same as <CR>
928|c_CTRL-J| CTRL-J same as <CR>
929|c_CTRL-K| CTRL-K {char1} {char2}
930 enter digraph
931|c_CTRL-L| CTRL-L do completion on the pattern in front of the
932 cursor and insert the longest common part
933|c_<CR>| <CR> execute entered command
934|c_<CR>| CTRL-M same as <CR>
935|c_CTRL-N| CTRL-N after using 'wildchar' with multiple matches:
936 go to next match, otherwise: same as <Down>
937 CTRL-O not used
938|c_CTRL-P| CTRL-P after using 'wildchar' with multiple matches:
939 go to previous match, otherwise: same as <Up>
940|c_CTRL-Q| CTRL-Q same as CTRL-V, unless it's used for terminal
941 control flow
942|c_CTRL-R| CTRL-R {0-9a-z"%#*:= CTRL-F CTRL-P CTRL-W CTRL-A}
943 insert the contents of a register or object
944 under the cursor as if typed
945|c_CTRL-R_CTRL-R| CTRL-R CTRL-R {0-9a-z"%#*:= CTRL-F CTRL-P CTRL-W CTRL-A}
946 insert the contents of a register or object
947 under the cursor literally
948 CTRL-S (used for terminal control flow)
949 CTRL-T not used
950|c_CTRL-U| CTRL-U remove all characters
951|c_CTRL-V| CTRL-V insert next non-digit literally, insert three
952 digit decimal number as a single byte.
953|c_CTRL-W| CTRL-W delete the word in front of the cursor
954 CTRL-X not used (reserved for completion)
955 CTRL-Y copy (yank) modeless selection
956 CTRL-Z not used (reserved for suspend)
957|c_<Esc>| <Esc> abandon command-line without executing it
958|c_<Esc>| CTRL-[ same as <Esc>
959|c_CTRL-\_CTRL-N| CTRL-\ CTRL-N go to Normal mode, abandon command-line
960|c_CTRL-\_CTRL-G| CTRL-\ CTRL-G go to mode specified with 'insertmode',
961 abandon command-line
962 CTRL-\ a - d reserved for extensions
963|c_CTRL-\_e| CTRL-\ e {expr} replace the command line with the result of
964 {expr}
965 CTRL-\ f - z reserved for extensions
966 CTRL-\ others not used
967 CTRL-] not used
968|c_CTRL-^| CTRL-^ toggle use of |:lmap| mappings
969|c_CTRL-_| CTRL-_ when 'allowrevins' set: change language
970 (Hebrew, Farsi)
971|c_<Del>| <Del> delete the character under the cursor
972
973|c_<Left>| <Left> cursor left
974|c_<S-Left>| <S-Left> cursor one word left
975|c_<C-Left>| <C-Left> cursor one word left
976|c_<Right>| <Right> cursor right
977|c_<S-Right>| <S-Right> cursor one word right
978|c_<C-Right>| <C-Right> cursor one word right
979|c_<Up>| <Up> recall previous command-line from history that
980 matches pattern in front of the cursor
981|c_<S-Up>| <S-Up> recall previous command-line from history
982|c_<Down>| <Down> recall next command-line from history that
983 matches pattern in front of the cursor
984|c_<S-Down>| <S-Down> recall next command-line from history
985|c_<Home>| <Home> cursor to start of command-line
986|c_<End>| <End> cursor to end of command-line
987|c_<PageDown>| <PageDown> same as <S-Down>
988|c_<PageUp>| <PageUp> same as <S-Up>
989|c_<Insert>| <Insert> toggle insert/overstrike mode
990|c_<LeftMouse>| <LeftMouse> cursor at mouse click
991
992You found it, Arthur! *holy-grail*
993
994==============================================================================
9955. EX commands *ex-cmd-index* *:index*
996
997This is a brief but complete listing of all the ":" commands, without
998mentioning any arguments. The optional part of the command name is inside [].
999The commands are sorted on the non-optional part of their name.
1000
1001|:!| :! filter lines or execute an external command
1002|:!!| :!! repeat last ":!" command
1003|:#| :# same as ":number"
1004|:&| :& repeat last ":substitute"
1005|:star| :* execute contents of a register
1006|:<| :< shift lines one 'shiftwidth' left
1007|:=| := print the cursor line number
1008|:>| :> shift lines one 'shiftwidth' right
1009|:@| :@ execute contents of a register
1010|:@@| :@@ repeat the previous ":@"
1011|:Next| :N[ext] go to previous file in the argument list
1012|:Print| :P[rint] print lines
1013|:X| :X ask for encryption key
1014|:append| :a[ppend] append text
1015|:abbreviate| :ab[breviate] enter abbreviation
1016|:abclear| :abc[lear] remove all abbreviations
1017|:aboveleft| :abo[veleft] make split window appear left or above
1018|:all| :al[l] open a window for each file in the argument
1019 list
1020|:amenu| :am[enu] enter new menu item for all modes
1021|:anoremenu| :an[oremenu] enter a new menu for all modes that will not
1022 be remapped
1023|:args| :ar[gs] print the argument list
1024|:argadd| :arga[dd] add items to the argument list
1025|:argdelete| :argd[elete] delete items from the argument list
1026|:argedit| :arge[dit] add item to the argument list and edit it
1027|:argdo| :argdo do a command on all items in the argument list
1028|:argglobal| :argg[lobal] define the global argument list
1029|:arglocal| :argl[ocal] define a local argument list
1030|:argument| :argu[ment] go to specific file in the argument list
1031|:ascii| :as[cii] print ascii value of character under the cursor
1032|:autocmd| :au[tocmd] enter or show autocommands
1033|:augroup| :aug[roup] select the autocommand group to use
1034|:aunmenu| :aun[menu] remove menu for all modes
1035|:buffer| :b[uffer] go to specific buffer in the buffer list
1036|:bNext| :bN[ext] go to previous buffer in the buffer list
1037|:ball| :ba[ll] open a window for each buffer in the buffer list
1038|:badd| :bad[d] add buffer to the buffer list
1039|:bdelete| :bd[elete] remove a buffer from the buffer list
1040|:behave| :be[have] set mouse and selection behavior
1041|:belowright| :bel[owright] make split window appear right or below
1042|:bfirst| :bf[irst] go to first buffer in the buffer list
1043|:blast| :bl[ast] go to last buffer in the buffer list
1044|:bmodified| :bm[odified] go to next buffer in the buffer list that has
1045 been modified
1046|:bnext| :bn[ext] go to next buffer in the buffer list
1047|:botright| :bo[tright] make split window appear at bottom or far right
1048|:bprevious| :bp[revious] go to previous buffer in the buffer list
1049|:brewind| :br[ewind] go to first buffer in the buffer list
1050|:break| :brea[k] break out of while loop
1051|:breakadd| :breaka[dd] add a debugger breakpoint
1052|:breakdel| :breakd[el] delete a debugger breakpoint
1053|:breaklist| :breakl[ist] list debugger breakpoints
1054|:browse| :bro[wse] use file selection dialog
1055|:bufdo| :bufdo execute command in each listed buffer
1056|:buffers| :buffers list all files in the buffer list
1057|:bunload| :bun[load] unload a specific buffer
1058|:bwipeout| :bw[ipeout] really delete a buffer
1059|:change| :c[hange] replace a line or series of lines
1060|:cNext| :cN[ext] go to previous error
1061|:cNfile| :cNf[ile] go to last error in previous file
1062|:cabbrev| :ca[bbrev] like ":abbreviate" but for Command-line mode
1063|:cabclear| :cabc[lear] clear all abbreviations for Command-line mode
Bram Moolenaar87e25fd2005-07-27 21:13:01 +00001064|:caddfile| :cad[dfile] add error message to current quickfix list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001065|:call| :cal[l] call a function
1066|:catch| :cat[ch] part of a :try command
Bram Moolenaar86b68352004-12-27 21:59:20 +00001067|:cbuffer| :cb[uffer] parse error messages and jump to first error
Bram Moolenaar071d4272004-06-13 20:20:40 +00001068|:cc| :cc go to specific error
1069|:cclose| :ccl[ose] close quickfix window
1070|:cd| :cd change directory
1071|:center| :ce[nter] format lines at the center
Bram Moolenaar87e25fd2005-07-27 21:13:01 +00001072|:cexpr| :cex[pr] read errors from expr and jump to first
Bram Moolenaar071d4272004-06-13 20:20:40 +00001073|:cfile| :cf[ile] read file with error messages and jump to first
1074|:cfirst| :cfir[st] go to the specified error, default first one
1075|:cgetfile| :cg[etfile] read file with error messages
1076|:changes| :cha[nges] print the change list
1077|:chdir| :chd[ir] change directory
1078|:checkpath| :che[ckpath] list included files
1079|:checktime| :checkt[ime] check timestamp of loaded buffers
1080|:clist| :cl[ist] list all errors
1081|:clast| :cla[st] go to the specified error, default last one
1082|:close| :clo[se] close current window
1083|:cmap| :cm[ap] like ":map" but for Command-line mode
1084|:cmapclear| :cmapc[lear] clear all mappings for Command-line mode
1085|:cmenu| :cme[nu] add menu for Command-line mode
1086|:cnext| :cn[ext] go to next error
1087|:cnewer| :cnew[er] go to newer error list
1088|:cnfile| :cnf[ile] go to first error in next file
1089|:cnoremap| :cno[remap] like ":noremap" but for Command-line mode
1090|:cnoreabbrev| :cnorea[bbrev] like ":noreabbrev" but for Command-line mode
1091|:cnoremenu| :cnoreme[nu] like ":noremenu" but for Command-line mode
1092|:copy| :co[py] copy lines
1093|:colder| :col[der] go to older error list
1094|:colorscheme| :colo[rscheme] load a specific color scheme
1095|:command| :com[mand] create user-defined command
1096|:comclear| :comc[lear] clear all user-defined commands
1097|:compiler| :comp[iler] do settings for a specific compiler
1098|:continue| :con[tinue] go back to :while
1099|:confirm| :conf[irm] prompt user when confirmation required
1100|:copen| :cope[n] open quickfix window
1101|:cprevious| :cp[revious] go to previous error
1102|:cpfile| :cpf[ile] go to last error in previous file
1103|:cquit| :cq[uit] quit Vim with an error code
1104|:crewind| :cr[ewind] go to the specified error, default first one
1105|:cscope| :cs[cope] execute cscope command
1106|:cstag| :cst[ag] use cscope to jump to a tag
1107|:cunmap| :cu[nmap] like ":unmap" but for Command-line mode
1108|:cunabbrev| :cuna[bbrev] like ":unabbrev" but for Command-line mode
1109|:cunmenu| :cunme[nu] remove menu for Command-line mode
1110|:cwindow| :cw[indow] open or close quickfix window
1111|:delete| :d[elete] delete lines
Bram Moolenaarc0197e22004-09-13 20:26:32 +00001112|:delmarks| :delm[arks] delete marks
Bram Moolenaar071d4272004-06-13 20:20:40 +00001113|:debug| :deb[ug] run a command in debugging mode
1114|:debuggreedy| :debugg[reedy] read debug mode commands from normal input
1115|:delcommand| :delc[ommand] delete user-defined command
1116|:delfunction| :delf[unction] delete a user function
1117|:diffupdate| :dif[fupdate] update 'diff' buffers
1118|:diffget| :diffg[et] remove differences in current buffer
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00001119|:diffoff| :diffo[ff] switch off diff mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001120|:diffpatch| :diffp[atch] apply a patch and show differences
1121|:diffput| :diffpu[t] remove differences in other buffer
1122|:diffsplit| :diffs[plit] show differences with another file
1123|:diffthis| :diffthis make current window a diff window
1124|:digraphs| :dig[raphs] show or enter digraphs
1125|:display| :di[splay] display registers
1126|:djump| :dj[ump] jump to #define
1127|:dlist| :dl[ist] list #defines
1128|:doautocmd| :do[autocmd] apply autocommands to current buffer
1129|:doautoall| :doautoa[ll] apply autocommands for all loaded buffers
1130|:drop| :dr[op] jump to window editing file or edit file in
1131 current window
1132|:dsearch| :ds[earch] list one #define
1133|:dsplit| :dsp[lit] split window and jump to #define
1134|:edit| :e[dit] edit a file
1135|:echo| :ec[ho] echoes the result of expressions
1136|:echoerr| :echoe[rr] like :echo, show like an error and use history
1137|:echohl| :echoh[l] set highlighting for echo commands
1138|:echomsg| :echom[sg] same as :echo, put message in history
1139|:echon| :echon same as :echo, but without <EOL>
1140|:else| :el[se] part of an :if command
1141|:elseif| :elsei[f] part of an :if command
1142|:emenu| :em[enu] execute a menu by name
1143|:endif| :en[dif] end previous :if
Bram Moolenaar17568792005-07-06 22:28:03 +00001144|:endfor| :endfo[r] end previous :for
Bram Moolenaar071d4272004-06-13 20:20:40 +00001145|:endfunction| :endf[unction] end of a user function
1146|:endtry| :endt[ry] end previous :try
1147|:endwhile| :endw[hile] end previous :while
1148|:enew| :ene[w] edit a new, unnamed buffer
1149|:ex| :ex same as ":edit"
1150|:execute| :exe[cute] execute result of expressions
1151|:exit| :exi[t] same as ":xit"
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001152|:exusage| :exu[sage] overview of Ex commands
Bram Moolenaar071d4272004-06-13 20:20:40 +00001153|:file| :f[ile] show or set the current file name
1154|:files| :files list all files in the buffer list
1155|:filetype| :filet[ype] switch file type detection on/off
1156|:find| :fin[d] find file in 'path' and edit it
1157|:finally| :fina[lly] part of a :try command
1158|:finish| :fini[sh] quit sourcing a Vim script
1159|:first| :fir[st] go to the first file in the argument list
1160|:fixdel| :fix[del] set key code of <Del>
1161|:fold| :fo[ld] create a fold
1162|:foldclose| :foldc[lose] close folds
1163|:folddoopen| :foldd[oopen] execute command on lines not in a closed fold
1164|:folddoclosed| :folddoc[losed] execute command on lines in a closed fold
1165|:foldopen| :foldo[pen] open folds
Bram Moolenaar17568792005-07-06 22:28:03 +00001166|:for| :for for loop
Bram Moolenaar071d4272004-06-13 20:20:40 +00001167|:function| :fu[nction] define a user function
1168|:global| :g[lobal] execute commands for matching lines
1169|:goto| :go[to] go to byte in the buffer
1170|:grep| :gr[ep] run 'grepprg' and jump to first match
Bram Moolenaar17568792005-07-06 22:28:03 +00001171|:grepadd| :grepa[dd] like :grep, but append to current list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001172|:gui| :gu[i] start the GUI
1173|:gvim| :gv[im] start the GUI
1174|:hardcopy| :ha[rdcopy] send text to the printer
1175|:help| :h[elp] open a help window
1176|:helpfind| :helpf[ind] dialog to open a help window
1177|:helpgrep| :helpg[rep] like ":grep" but searches help files
1178|:helptags| :helpt[ags] generate help tags for a directory
1179|:highlight| :hi[ghlight] specify highlighting methods
1180|:hide| :hid[e] hide current buffer for a command
1181|:history| :his[tory] print a history list
1182|:insert| :i[nsert] insert text
1183|:iabbrev| :ia[bbrev] like ":abbrev" but for Insert mode
1184|:iabclear| :iabc[lear] like ":abclear" but for Insert mode
1185|:if| :if execute commands when condition met
1186|:ijump| :ij[ump] jump to definition of identifier
1187|:ilist| :il[ist] list lines where identifier matches
1188|:imap| :im[ap] like ":map" but for Insert mode
1189|:imapclear| :imapc[lear] like ":mapclear" but for Insert mode
1190|:imenu| :ime[nu] add menu for Insert mode
1191|:inoremap| :ino[remap] like ":noremap" but for Insert mode
1192|:inoreabbrev| :inorea[bbrev] like ":noreabbrev" but for Insert mode
1193|:inoremenu| :inoreme[nu] like ":noremenu" but for Insert mode
1194|:intro| :int[ro] print the introductory message
1195|:isearch| :is[earch] list one line where identifier matches
1196|:isplit| :isp[lit] split window and jump to definition of
1197 identifier
1198|:iunmap| :iu[nmap] like ":unmap" but for Insert mode
1199|:iunabbrev| :iuna[bbrev] like ":unabbrev" but for Insert mode
1200|:iunmenu| :iunme[nu] remove menu for Insert mode
1201|:join| :j[oin] join lines
1202|:jumps| :ju[mps] print the jump list
1203|:k| :k set a mark
Bram Moolenaar17568792005-07-06 22:28:03 +00001204|:keepalt| :keepa[lt] following command keeps the alternate file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001205|:keepmarks| :kee[pmarks] following command keeps marks where they are
1206|:keepjumps| :keepj[jumps] following command keeps jumplist and marks
1207|:list| :l[ist] print lines
1208|:last| :la[st] go to the last file in the argument list
1209|:language| :lan[guage] set the language (locale)
1210|:lcd| :lc[d] change directory locally
1211|:lchdir| :lch[dir] change directory locally
1212|:left| :le[ft] left align lines
1213|:leftabove| :lefta[bove] make split window appear left or above
1214|:let| :let assign a value to a variable or option
1215|:lmap| :lm[ap] like ":map!" but includes Lang-Arg mode
1216|:lmapclear| :lmapc[lear] like ":mapclear!" but includes Lang-Arg mode
1217|:lnoremap| :ln[oremap] like ":noremap!" but includes Lang-Arg mode
1218|:loadkeymap| :loadk[eymap] load the following keymaps until EOF
1219|:loadview| :lo[adview] load view for current window from a file
1220|:lockmarks| :loc[kmarks] following command keeps marks where they are
Bram Moolenaar24c088a2005-02-02 22:55:47 +00001221|:lockvar| :lockv[ar] lock variables
Bram Moolenaar071d4272004-06-13 20:20:40 +00001222|:ls| :ls list all buffers
1223|:lunmap| :lu[nmap] like ":unmap!" but includes Lang-Arg mode
1224|:move| :m[ove] move lines
1225|:mark| :ma[rk] set a mark
1226|:make| :mak[e] execute external command 'makeprg' and parse
1227 error messages
1228|:map| :map show or enter a mapping
1229|:mapclear| :mapc[lear] clear all mappings for Normal and Visual mode
1230|:marks| :marks list all marks
1231|:match| :mat[ch] define a match to highlight
1232|:menu| :me[nu] enter a new menu item
1233|:menutranslate| :menut[ranslate] add a menu translation item
1234|:messages| :mes[sages] view previously displayed messages
1235|:mkexrc| :mk[exrc] write current mappings and settings to a file
1236|:mksession| :mks[ession] write session info to a file
Bram Moolenaar78599ad2005-06-16 21:47:53 +00001237|:mkspell| :mksp[ell] produce .spl spell file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001238|:mkvimrc| :mkv[imrc] write current mappings and settings to a file
1239|:mkview| :mkvie[w] write view of current window to a file
1240|:mode| :mod[e] show or change the screen mode
Bram Moolenaar8299df92004-07-10 09:47:34 +00001241|:mzscheme| :mz[scheme] execute MzScheme command
1242|:mzfile| :mzf[ile] execute MzScheme script file
Bram Moolenaar17568792005-07-06 22:28:03 +00001243|:nbkey| :nb[key] pass a key to Netbeans
Bram Moolenaar071d4272004-06-13 20:20:40 +00001244|:next| :n[ext] go to next file in the argument list
1245|:new| :new create a new empty window
1246|:nmap| :nm[ap] like ":map" but for Normal mode
1247|:nmapclear| :nmapc[lear] clear all mappings for Normal mode
1248|:nmenu| :nme[nu] add menu for Normal mode
1249|:nnoremap| :nn[oremap] like ":noremap" but for Normal mode
1250|:nnoremenu| :nnoreme[nu] like ":noremenu" but for Normal mode
1251|:noremap| :no[remap] enter a mapping that will not be remapped
1252|:nohlsearch| :noh[lsearch] suspend 'hlsearch' highlighting
1253|:noreabbrev| :norea[bbrev] enter an abbreviation that will not be
1254 remapped
1255|:noremenu| :noreme[nu] enter a menu that will not be remapped
1256|:normal| :norm[al] execute Normal mode commands
1257|:number| :nu[mber] print lines with line number
1258|:nunmap| :nun[map] like ":unmap" but for Normal mode
1259|:nunmenu| :nunme[nu] remove menu for Normal mode
1260|:open| :o[pen] start open mode (not implemented)
1261|:omap| :om[ap] like ":map" but for Operator-pending mode
1262|:omapclear| :omapc[lear] remove all mappings for Operator-pending mode
1263|:omenu| :ome[nu] add menu for Operator-pending mode
1264|:only| :on[ly] close all windows except current one
1265|:onoremap| :ono[remap] like ":noremap" but for Operator-pending mode
1266|:onoremenu| :onoreme[nu] like ":noremenu" but for Operator-pending mode
1267|:options| :opt[ions] open the options-window
1268|:ounmap| :ou[nmap] like ":unmap" but for Operator-pending mode
1269|:ounmenu| :ounme[nu] remove menu for Operator-pending mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001270|:pclose| :pc[lose] close preview window
1271|:pedit| :ped[it] edit file in the preview window
1272|:perl| :pe[rl] execute Perl command
Bram Moolenaar05159a02005-02-26 23:04:13 +00001273|:print| :p[rint] print lines
Bram Moolenaar17568792005-07-06 22:28:03 +00001274|:profdel| :profd[el] stop profiling a function or script
Bram Moolenaar05159a02005-02-26 23:04:13 +00001275|:profile| :prof[ile] profiling functions and scripts
1276|:promptfind| :pro[mtfind] open GUI dialog for searching
1277|:promptrepl| :promtr[epl] open GUI dialog for search/replace
Bram Moolenaar071d4272004-06-13 20:20:40 +00001278|:perldo| :perld[o] execute Perl command for each line
1279|:pop| :po[p] jump to older entry in tag stack
1280|:popup| :pop[up] popup a menu by name
1281|:ppop| :pp[op] ":pop" in preview window
1282|:preserve| :pre[serve] write all text to swap file
1283|:previous| :prev[ious] go to previous file in argument list
1284|:promptfind| :pro[mptfind] Search dialog
1285|:promptrepl| :promptr[epl] Search/Replace dialog
1286|:psearch| :ps[earch] like ":ijump" but shows match in preview window
1287|:ptag| :pt[ag] show tag in preview window
1288|:ptNext| :ptN[ext] |:tNext| in preview window
1289|:ptfirst| :ptf[irst] |:trewind| in preview window
1290|:ptjump| :ptj[ump] |:tjump| and show tag in preview window
1291|:ptlast| :ptl[ast] |:tlast| in preview window
1292|:ptnext| :ptn[ext] |:tnext| in preview window
1293|:ptprevious| :ptp[revious] |:tprevious| in preview window
1294|:ptrewind| :ptr[ewind] |:trewind| in preview window
1295|:ptselect| :pts[elect] |:tselect| and show tag in preview window
1296|:put| :pu[t] insert contents of register in the text
1297|:pwd| :pw[d] print current directory
1298|:python| :py[thon] execute Python command
1299|:pyfile| :pyf[ile] execute Python script file
1300|:quit| :q[uit] quit current window (when one window quit Vim)
1301|:quitall| :quita[ll] quit Vim
1302|:qall| :qa[ll] quit Vim
1303|:read| :r[ead] read file into the text
1304|:recover| :rec[over] recover a file from a swap file
1305|:redo| :red[o] redo one undone change
1306|:redir| :redi[r] redirect messages to a file or register
1307|:redraw| :redr[aw] force a redraw of the display
1308|:redrawstatus| :redraws[tatus] force a redraw of the status line(s)
1309|:registers| :reg[isters] display the contents of registers
1310|:resize| :res[ize] change current window height
1311|:retab| :ret[ab] change tab size
1312|:return| :retu[rn] return from a user function
1313|:rewind| :rew[ind] go to the first file in the argument list
1314|:right| :ri[ght] right align text
1315|:rightbelow| :rightb[elow] make split window appear right or below
1316|:ruby| :rub[y] execute Ruby command
1317|:rubydo| :rubyd[o] execute Ruby command for each line
1318|:rubyfile| :rubyf[ile] execute Ruby script file
1319|:runtime| :ru[ntime] source vim scripts in 'runtimepath'
1320|:rviminfo| :rv[iminfo] read from viminfo file
1321|:substitute| :s[ubstitute] find and replace text
1322|:sNext| :sN[ext] split window and go to previous file in
1323 argument list
Bram Moolenaar17568792005-07-06 22:28:03 +00001324|:sandbox| :san[dbox] execute a command in the sandbox
Bram Moolenaar071d4272004-06-13 20:20:40 +00001325|:sargument| :sa[rgument] split window and go to specific file in
1326 argument list
1327|:sall| :sal[l] open a window for each file in argument list
1328|:saveas| :sav[eas] save file under another name.
1329|:sbuffer| :sb[uffer] split window and go to specific file in the
1330 buffer list
1331|:sbNext| :sbN[ext] split window and go to previous file in the
1332 buffer list
1333|:sball| :sba[ll] open a window for each file in the buffer list
1334|:sbfirst| :sbf[irst] split window and go to first file in the
1335 buffer list
1336|:sblast| :sbl[ast] split window and go to last file in buffer
1337 list
1338|:sbmodified| :sbm[odified] split window and go to modified file in the
1339 buffer list
1340|:sbnext| :sbn[ext] split window and go to next file in the buffer
1341 list
1342|:sbprevious| :sbp[revious] split window and go to previous file in the
1343 buffer list
1344|:sbrewind| :sbr[ewind] split window and go to first file in the
1345 buffer list
1346|:scriptnames| :scrip[tnames] list names of all sourced Vim scripts
1347|:scriptencoding| :scripte[ncoding] encoding used in sourced Vim script
1348|:scscope| :scs[cope] split window and execute cscope command
1349|:set| :se[t] show or set options
1350|:setfiletype| :setf[iletype] set 'filetype', unless it was set already
1351|:setglobal| :setg[lobal] show global values of options
1352|:setlocal| :setl[ocal] show or set options locally
1353|:sfind| :sf[ind] split current window and edit file in 'path'
1354|:sfirst| :sfir[st] split window and go to first file in the
1355 argument list
1356|:shell| :sh[ell] escape to a shell
1357|:simalt| :sim[alt] Win32 GUI: simulate Windows ALT key
1358|:sign| :sig[n] manipulate signs
1359|:silent| :sil[ent] Run a command silently
1360|:sleep| :sl[eep] do nothing for a few seconds
1361|:slast| :sla[st] split window and go to last file in the
1362 argument list
1363|:smagic| :sm[agic] :substitute with 'magic'
1364|:snext| :sn[ext] split window and go to next file in the
1365 argument list
1366|:sniff| :sni[ff] send request to sniff
1367|:snomagic| :sno[magic] :substitute with 'nomagic'
Bram Moolenaarf95dc3b2005-05-22 22:02:25 +00001368|:sort| :sor[t] sort lines
Bram Moolenaar071d4272004-06-13 20:20:40 +00001369|:source| :so[urce] read Vim or Ex commands from a file
Bram Moolenaarf81b0fe2005-06-23 22:27:26 +00001370|:spelldump| :spelld[ump] split window and fill with all correct words
Bram Moolenaar78599ad2005-06-16 21:47:53 +00001371|:spellgood| :spe[llgood] add good word for spelling
Bram Moolenaara1ba8112005-06-28 23:23:32 +00001372|:spellrepall| :spellr[epall] replace all bad words like last |z?|
Bram Moolenaar78599ad2005-06-16 21:47:53 +00001373|:spellwrong| :spellw[rong] add spelling mistake
Bram Moolenaar071d4272004-06-13 20:20:40 +00001374|:split| :sp[lit] split current window
1375|:sprevious| :spr[evious] split window and go to previous file in the
1376 argument list
1377|:srewind| :sre[wind] split window and go to first file in the
1378 argument list
1379|:stop| :st[op] suspend the editor or escape to a shell
1380|:stag| :sta[g] split window and jump to a tag
1381|:startinsert| :star[tinsert] start Insert mode
Bram Moolenaar325b7a22004-07-05 15:58:32 +00001382|:startreplace| :startr[eplace] start Replace mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001383|:stopinsert|| :stopi[nsert] stop Insert mode
1384|:stjump| :stj[ump] do ":tjump" and split window
1385|:stselect| :sts[elect] do ":tselect" and split window
1386|:sunhide| :sun[hide] same as ":unhide"
1387|:suspend| :sus[pend] same as ":stop"
1388|:sview| :sv[iew] split window and edit file read-only
1389|:swapname| :sw[apname] show the name of the current swap file
1390|:syntax| :sy[ntax] syntax highlighting
1391|:syncbind| :sync[bind] sync scroll binding
1392|:t| :t same as ":copy"
1393|:tNext| :tN[ext] jump to previous matching tag
1394|:tag| :ta[g] jump to tag
1395|:tags| :tags show the contents of the tag stack
1396|:tcl| :tc[l] execute Tcl command
1397|:tcldo| :tcld[o] execute Tcl command for each line
1398|:tclfile| :tclf[ile] execute Tcl script file
1399|:tearoff| :te[aroff] tear-off a menu
1400|:tfirst| :tf[irst] jump to first matching tag
1401|:throw| :th[row] throw an exception
1402|:tjump| :tj[ump] like ":tselect", but jump directly when there
1403 is only one match
1404|:tlast| :tl[ast] jump to last matching tag
1405|:tmenu| :tm[enu] define menu tooltip
1406|:tnext| :tn[ext] jump to next matching tag
1407|:topleft| :to[pleft] make split window appear at top or far left
1408|:tprevious| :tp[revious] jump to previous matching tag
1409|:trewind| :tr[ewind] jump to first matching tag
1410|:try| :try execute commands, abort on error or exception
1411|:tselect| :ts[elect] list matching tags and select one
1412|:tunmenu| :tu[nmenu] remove menu tooltip
1413|:undo| :u[ndo] undo last change(s)
1414|:unabbreviate| :una[bbreviate] remove abbreviation
1415|:unhide| :unh[ide] open a window for each loaded file in the
1416 buffer list
1417|:unlet| :unl[et] delete variable
Bram Moolenaar24c088a2005-02-02 22:55:47 +00001418|:unlockvar| :unlo[ckvar] unlock variables
Bram Moolenaar071d4272004-06-13 20:20:40 +00001419|:unmap| :unm[ap] remove mapping
1420|:unmenu| :unme[nu] remove menu
1421|:update| :up[date] write buffer if modified
1422|:vglobal| :v[global] execute commands for not matching lines
1423|:version| :ve[rsion] print version number and other info
1424|:verbose| :verb[ose] execute command with 'verbose' set
1425|:vertical| :vert[ical] make following command split vertically
Bram Moolenaar17568792005-07-06 22:28:03 +00001426|:vimgrep| :vim[grep] search for pattern in files
1427|:vimgrepadd| :vimgrepa[dd] like :vimgrep, but append to current list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001428|:visual| :vi[sual] same as ":edit", but turns off "Ex" mode
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001429|:viusage| :viu[sage] overview of Normal mode commands
Bram Moolenaar071d4272004-06-13 20:20:40 +00001430|:view| :vie[w] edit a file read-only
1431|:vmap| :vm[ap] like ":map" but for Visual mode
1432|:vmapclear| :vmapc[lear] remove all mappings for Visual mode
1433|:vmenu| :vme[nu] add menu for Visual mode
1434|:vnoremap| :vn[oremap] like ":noremap" but for Visual mode
1435|:vnew| :vne[w] create a new empty window, vertically split
1436|:vnoremenu| :vnoreme[nu] like ":noremenu" but for Visual mode
1437|:vsplit| :vs[plit] split current window vertically
1438|:vunmap| :vu[nmap] like ":unmap" but for Visual mode
1439|:vunmenu| :vunme[nu] remove menu for Visual mode
1440|:windo| :windo execute command in each window
1441|:write| :w[rite] write to a file
1442|:wNext| :wN[ext] write to a file and go to previous file in
1443 argument list
1444|:wall| :wa[ll] write all (changed) buffers
1445|:while| :wh[ile] execute loop for as long as condition met
1446|:winsize| :wi[nsize] get or set window size (obsolete)
1447|:wincmd| :winc[md] execute a Window (CTRL-W) command
1448|:winpos| :winp[os] get or set window position
1449|:wnext| :wn[ext] write to a file and go to next file in
1450 argument list
1451|:wprevious| :wp[revious] write to a file and go to previous file in
1452 argument list
1453|:wq| :wq write to a file and quit window or Vim
1454|:wqall| :wqa[ll] write all changed buffers and quit Vim
1455|:wsverb| :ws[verb] pass the verb to workshop over IPC
1456|:wviminfo| :wv[iminfo] write to viminfo file
1457|:xit| :x[it] write if buffer changed and quit window or Vim
1458|:xall| :xa[ll] same as ":wqall"
1459|:yank| :y[ank] yank lines into a register
1460|:z| :z print some lines
1461|:~| :~ repeat last ":substitute"
1462
1463 vim:tw=78:ts=8:ft=help:norl: