blob: 8fc3cef9c6da18010843da2b1e9c21e5897d82e5 [file] [log] [blame]
Bram Moolenaarb21e5842006-04-16 18:30:08 +00001*index.txt* For Vim version 7.0e. Last change: 2006 Apr 10
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 Moolenaar5e0d6672005-09-13 21:09:24 +0000153|i_CTRL-X_CTRL-O| CTRL-X CTRL-O omni completion
Bram Moolenaar071d4272004-06-13 20:20:40 +0000154|i_CTRL-X_CTRL-P| CTRL-X CTRL-P previous completion
Bram Moolenaar8b59de92005-08-11 19:59:29 +0000155|i_CTRL-X_CTRL-S| CTRL-X CTRL-S spelling suggestions
Bram Moolenaar071d4272004-06-13 20:20:40 +0000156|i_CTRL-X_CTRL-T| CTRL-X CTRL-T complete identifiers from thesaurus
157|i_CTRL-X_CTRL-Y| CTRL-X CTRL-Y scroll down
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000158|i_CTRL-X_CTRL-U| CTRL-X CTRL-U complete with 'completefunc'
159|i_CTRL-X_CTRL-V| CTRL-X CTRL-V complete like in : command line
Bram Moolenaar071d4272004-06-13 20:20:40 +0000160|i_CTRL-X_CTRL-]| CTRL-X CTRL-] complete tags
Bram Moolenaar8b59de92005-08-11 19:59:29 +0000161|i_CTRL-X_s| CTRL-X s spelling suggestions
Bram Moolenaar071d4272004-06-13 20:20:40 +0000162{not available when compiled without the +insert_expand feature}
163
164==============================================================================
1652. Normal mode *normal-index*
166
167CHAR any non-blank character
168WORD a sequence of non-blank characters
169N a number entered before the command
170{motion} a cursor movement command
171Nmove the text that is moved over with a {motion}
172SECTION a section that possibly starts with '}' instead of '{'
173
174note: 1 = cursor movement command; 2 = can be undone/redone
175
176tag char note action in Normal mode ~
177------------------------------------------------------------------------------
178 CTRL-@ not used
179|CTRL-A| CTRL-A 2 add N to number at/after cursor
180|CTRL-B| CTRL-B 1 scroll N screens Backwards
181|CTRL-C| CTRL-C interrupt current (search) command
182|CTRL-D| CTRL-D scroll Down N lines (default: half a screen)
183|CTRL-E| CTRL-E scroll N lines upwards (N lines Extra)
184|CTRL-F| CTRL-F 1 scroll N screens Forward
185|CTRL-G| CTRL-G display current file name and position
186|<BS>| <BS> 1 same as "h"
187|CTRL-H| CTRL-H 1 same as "h"
188|<Tab>| <Tab> 1 go to N newer entry in jump list
189|CTRL-I| CTRL-I 1 same as <Tab>
190|<NL>| <NL> 1 same as "j"
191|CTRL-J| CTRL-J 1 same as "j"
192 CTRL-K not used
193|CTRL-L| CTRL-L redraw screen
194|<CR>| <CR> 1 cursor to the first CHAR N lines lower
195|CTRL-M| CTRL-M 1 same as <CR>
196|CTRL-N| CTRL-N 1 same as "j"
197|CTRL-O| CTRL-O 1 go to N older entry in jump list
198|CTRL-P| CTRL-P 1 same as "k"
199 CTRL-Q (used for terminal control flow)
200|CTRL-R| CTRL-R 2 redo changes which were undone with 'u'
201 CTRL-S (used for terminal control flow)
202|CTRL-T| CTRL-T jump to N older Tag in tag list
203|CTRL-U| CTRL-U scroll N lines Upwards (default: half a
204 screen)
205|CTRL-V| CTRL-V start blockwise Visual mode
206|CTRL-W| CTRL-W {char} window commands, see |CTRL-W|
207|CTRL-X| CTRL-X 2 subtract N from number at/after cursor
208|CTRL-Y| CTRL-Y scroll N lines downwards
209|CTRL-Z| CTRL-Z suspend program (or start new shell)
210 CTRL-[ <Esc> not used
211|CTRL-\_CTRL-N| CTRL-\ CTRL-N go to Normal mode (no-op)
212|CTRL-\_CTRL-G| CTRL-\ CTRL-G go to mode specified with 'insertmode'
213 CTRL-\ a - z reserved for extensions
214 CTRL-\ others not used
215|CTRL-]| CTRL-] :ta to ident under cursor
216|CTRL-^| CTRL-^ edit Nth alternate file (equivalent to
217 ":e #N")
218 CTRL-_ not used
219
220|<Space>| <Space> 1 same as "l"
221|!| !{motion}{filter}
222 2 filter Nmove text through the {filter}
223 command
224|!!| !!{filter} 2 filter N lines through the {filter} command
225|quote| "{a-zA-Z0-9.%#:-"} use register {a-zA-Z0-9.%#:-"} for next
226 delete, yank or put (uppercase to append)
227 ({.%#:} only work with put)
228|#| # 1 search backward for the Nth occurrence of
229 the ident under the cursor
230|$| $ 1 cursor to the end of Nth next line
231|%| % 1 find the next (curly/square) bracket on
232 this line and go to its match, or go to
233 matching comment bracket, or go to matching
234 preprocessor directive.
235|N%| {count}% 1 go to N percentage in the file
236|&| & 2 repeat last :s
237|'| '{a-zA-Z0-9} 1 cursor to the first CHAR on the line with
238 mark {a-zA-Z0-9}
239|''| '' 1 cursor to the first CHAR of the line where
240 the cursor was before the latest jump.
241|'(| '( 1 cursor to the first CHAR on the line of the
242 start of the current sentence
243|')| ') 1 cursor to the first CHAR on the line of the
244 end of the current sentence
245|'<| '< 1 cursor to the first CHAR of the line where
246 highlighted area starts/started in the
247 current buffer.
248|'>| '> 1 cursor to the first CHAR of the line where
249 highlighted area ends/ended in the current
250 buffer.
251|'[| '[ 1 cursor to the first CHAR on the line of the
252 start of last operated text or start of put
253 text
254|']| '] 1 cursor to the first CHAR on the line of the
255 end of last operated text or end of put
256 text
257|'{| '{ 1 cursor to the first CHAR on the line of the
258 start of the current paragraph
259|'}| '} 1 cursor to the first CHAR on the line of the
260 end of the current paragraph
261|(| ( 1 cursor N sentences backward
262|)| ) 1 cursor N sentences forward
263|star| * 1 search forward for the Nth occurrence of
264 the ident under the cursor
265|+| + 1 same as <CR>
266|,| , 1 repeat latest f, t, F or T in opposite
267 direction N times
268|-| - 1 cursor to the first CHAR N lines higher
269|.| . 2 repeat last change with count replaced with
270 N
271|/| /{pattern}<CR> 1 search forward for the Nth occurrence of
272 {pattern}
273|/<CR>| /<CR> 1 search forward for {pattern} of last search
274|count| 0 1 cursor to the first char of the line
275|count| 1 prepend to command to give a count
276|count| 2 "
277|count| 3 "
278|count| 4 "
279|count| 5 "
280|count| 6 "
281|count| 7 "
282|count| 8 "
283|count| 9 "
284|:| : 1 start entering an Ex command
285|N:| {count}: start entering an Ex command with range
286 from current line to N-1 lines down
287|;| ; 1 repeat latest f, t, F or T N times
288|<| <{motion} 2 shift Nmove lines one 'shiftwidth'
289 leftwards
290|<<| << 2 shift N lines one 'shiftwidth' leftwards
291|=| ={motion} 2 filter Nmove lines through "indent"
292|==| == 2 filter N lines through "indent"
293|>| >{motion} 2 shift Nmove lines one 'shiftwidth'
294 rightwards
295|>>| >> 2 shift N lines one 'shiftwidth' rightwards
296|?| ?{pattern}<CR> 1 search backward for the Nth previous
297 occurrence of {pattern}
298|?<CR>| ?<CR> 1 search backward for {pattern} of last search
299|@| @{a-z} 2 execute the contents of register {a-z}
300 N times
301|@:| @: repeat the previous ":" command N times
302|@@| @@ 2 repeat the previous @{a-z} N times
303|A| A 2 append text after the end of the line N times
304|B| B 1 cursor N WORDS backward
305|C| ["x]C 2 change from the cursor position to the end
306 of the line, and N-1 more lines [into
307 buffer x]; synonym for "c$"
308|D| ["x]D 2 delete the characters under the cursor
309 until the end of the line and N-1 more
310 lines [into buffer x]; synonym for "d$"
311|E| E 1 cursor forward to the end of WORD N
312|F| F{char} 1 cursor to the Nth occurrence of {char} to
313 the left
314|G| G 1 cursor to line N, default last line
315|H| H 1 cursor to line N from top of screen
316|I| I 2 insert text before the first CHAR on the
317 line N times
318|J| J 2 Join N lines; default is 2
319|K| K lookup Keyword under the cursor with
320 'keywordprg'
321|L| L 1 cursor to line N from bottom of screen
322|M| M 1 cursor to middle line of screen
323|N| N 1 repeat the latest '/' or '?' N times in
324 opposite direction
325|O| O 2 begin a new line above the cursor and
326 insert text, repeat N times
327|P| ["x]P 2 put the text [from buffer x] before the
328 cursor N times
329|Q| Q switch to "Ex" mode
330|R| R 2 enter replace mode: overtype existing
331 characters, repeat the entered text N-1
332 times
333|S| ["x]S 2 delete N lines [into buffer x] and start
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000334 insert; synonym for "cc".
Bram Moolenaar071d4272004-06-13 20:20:40 +0000335|T| T{char} 1 cursor till after Nth occurrence of {char}
336 to the left
337|U| U 2 undo all latest changes on one line
338|V| V start linewise Visual mode
339|W| W 1 cursor N WORDS forward
340|X| ["x]X 2 delete N characters before the cursor [into
341 buffer x]
342|Y| ["x]Y yank N lines [into buffer x]; synonym for
343 "yy"
344|ZZ| ZZ store current file if modified, and exit
345|ZQ| ZQ exit current file always
Bram Moolenaarc6039d82005-12-02 00:44:04 +0000346|[| [{char} square bracket command (see |[| below)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000347 \ not used
Bram Moolenaarc6039d82005-12-02 00:44:04 +0000348|]| ]{char} square bracket command (see |]| below)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000349|^| ^ 1 cursor to the first CHAR of the line
350|_| _ 1 cursor to the first CHAR N - 1 lines lower
351|`| `{a-zA-Z0-9} 1 cursor to the mark {a-zA-Z0-9}
352|`(| `( 1 cursor to the start of the current sentence
353|`)| `) 1 cursor to the end of the current sentence
354|`<| `< 1 cursor to the start of the highlighted area
355|`>| `> 1 cursor to the end of the highlighted area
356|`[| `[ 1 cursor to the start of last operated text
357 or start of putted text
358|`]| `] 1 cursor to the end of last operated text or
359 end of putted text
360|``| `` 1 cursor to the position before latest jump
361|`{| `{ 1 cursor to the start of the current paragraph
362|`}| `} 1 cursor to the end of the current paragraph
363|a| a 2 append text after the cursor N times
364|b| b 1 cursor N words backward
365|c| ["x]c{motion} 2 delete Nmove text [into buffer x] and start
366 insert
367|cc| ["x]cc 2 delete N lines [into buffer x] and start
368 insert
369|d| ["x]d{motion} 2 delete Nmove text [into buffer x]
370|dd| ["x]dd 2 delete N lines [into buffer x]
371|do| do 2 same as ":diffget"
372|dp| dp 2 same as ":diffput"
373|e| e 1 cursor forward to the end of word N
374|f| f{char} 1 cursor to Nth occurrence of {char} to the
375 right
Bram Moolenaarc6039d82005-12-02 00:44:04 +0000376|g| g{char} extended commands, see |g| below
Bram Moolenaar071d4272004-06-13 20:20:40 +0000377|h| h 1 cursor N chars to the left
378|i| i 2 insert text before the cursor N times
379|j| j 1 cursor N lines downward
380|k| k 1 cursor N lines upward
381|l| l 1 cursor N chars to the right
382|m| m{A-Za-z} set mark {A-Za-z} at cursor position
383|n| n 1 repeat the latest '/' or '?' N times
384|o| o 2 begin a new line below the cursor and
385 insert text, repeat N times
386|p| ["x]p 2 put the text [from register x] after the
387 cursor N times
388|q| q{0-9a-zA-Z"} record typed characters into named register
389 {0-9a-zA-Z"} (uppercase to append)
390|q| q (while recording) stops recording
391|q:| q: edit : command-line in command-line window
392|q/| q/ edit / command-line in command-line window
393|q?| q? edit ? command-line in command-line window
394|r| r{char} 2 replace N chars with {char}
395|s| ["x]s 2 (substitute) delete N characters [into
396 buffer x] and start insert
397|t| t{char} 1 cursor till before Nth occurrence of {char}
398 to the right
399|u| u 2 undo changes
400|v| v start characterwise Visual mode
401|w| w 1 cursor N words forward
402|x| ["x]x 2 delete N characters under and after the
403 cursor [into buffer x]
404|y| ["x]y{motion} yank Nmove text [into buffer x]
405|yy| ["x]yy yank N lines [into buffer x]
Bram Moolenaarc6039d82005-12-02 00:44:04 +0000406|z| z{char} commands starting with 'z', see |z| below
Bram Moolenaar071d4272004-06-13 20:20:40 +0000407|{| { 1 cursor N paragraphs backward
408|bar| | 1 cursor to column N
409|}| } 1 cursor N paragraphs forward
410|~| ~ 2 'tildeop' off: switch case of N characters
411 under cursor and move the cursor N
412 characters to the right
413|~| ~{motion} 'tildeop' on: switch case of Nmove text
414|<C-End>| <C-End> 1 same as "G"
415|<C-Home>| <C-Home> 1 same as "gg"
416|<C-Left>| <C-Left> 1 same as "b"
417|<C-LeftMouse>| <C-LeftMouse> ":ta" to the keyword at the mouse click
418|<C-Right>| <C-Right> 1 same as "w"
419|<C-RightMouse>| <C-RightMouse> same as "CTRL-T"
420|<Del>| ["x]<Del> 2 same as "x"
421|N<Del>| {count}<Del> remove the last digit from {count}
422|<Down>| <Down> 1 same as "j"
423|<End>| <End> 1 same as "$"
424|<F1>| <F1> same as <Help>
425|<Help>| <Help> open a help window
426|<Home>| <Home> 1 same as "0"
427|<Insert>| <Insert> 2 same as "i"
428|<Left>| <Left> 1 same as "h"
429|<LeftMouse>| <LeftMouse> 1 move cursor to the mouse click position
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000430|<MiddleMouse>| <MiddleMouse> 2 same as "gP" at the mouse click position
Bram Moolenaar071d4272004-06-13 20:20:40 +0000431|<PageDown>| <PageDown> same as CTRL-F
432|<PageUp>| <PageUp> same as CTRL-B
433|<Right>| <Right> 1 same as "l"
434|<RightMouse>| <RightMouse> start Visual mode, move cursor to the mouse
435 click position
436|<S-Down>| <S-Down> 1 same as CTRL-F
437|<S-Left>| <S-Left> 1 same as "b"
438|<S-LeftMouse>| <S-LeftMouse> same as "*" at the mouse click position
439|<S-Right>| <S-Right> 1 same as "w"
440|<S-RightMouse>| <S-RightMouse> same as "#" at the mouse click position
441|<S-Up>| <S-Up> 1 same as CTRL-B
442|<Undo>| <Undo> 2 same as "u"
443|<Up>| <Up> 1 same as "k"
444|<MouseDown>| <MouseDown> scroll three lines downwards
445|<S-MouseDown>| <S-MouseDown> scroll a full page downwards
446|<MouseUp>| <MouseUp> scroll three lines upwards
447|<S-MouseUp>| <S-MouseUp> scroll a full page upwards
448
449==============================================================================
4502.1 Text objects *objects*
451
452These can be used after an operator or in Visual mode to select an object.
453
454tag command action in Normal mode ~
455------------------------------------------------------------------------------
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000456|v_aquote| a" double quoted string
457|v_a'| a' single quoted string
Bram Moolenaar071d4272004-06-13 20:20:40 +0000458|v_a(| a( same as ab
459|v_a)| a) same as ab
460|v_a<| a< "a <>" from '<' to the matching '>'
461|v_a>| a> same as a<
462|v_aB| aB "a Block" from "[{" to "]}" (with brackets)
463|v_aW| aW "a WORD" (with white space)
464|v_a[| a[ "a []" from '[' to the matching ']'
465|v_a]| a] same as a[
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000466|v_a`| a` string in backticks
Bram Moolenaar071d4272004-06-13 20:20:40 +0000467|v_ab| ab "a block" from "[(" to "])" (with braces)
468|v_ap| ap "a paragraph" (with white space)
469|v_as| as "a sentence" (with white space)
470|v_aw| aw "a word" (with white space)
471|v_a{| a{ same as aB
472|v_a}| a} same as aB
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000473|v_iquote| i" double quoted string without the quotes
474|v_i'| i' single quoted string without the quotes
Bram Moolenaar071d4272004-06-13 20:20:40 +0000475|v_i(| i( same as ib
476|v_i)| i) same as ib
477|v_i<| i< "inner <>" from '<' to the matching '>'
478|v_i>| i> same as i<
479|v_iB| iB "inner Block" from "[{" and "]}"
480|v_iW| iW "inner WORD"
481|v_i[| i[ "inner []" from '[' to the matching ']'
482|v_i]| i] same as i[
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000483|v_i`| i` string in backticks without the backticks
Bram Moolenaar071d4272004-06-13 20:20:40 +0000484|v_ib| ib "inner block" from "[(" to "])"
485|v_ip| ip "inner paragraph"
486|v_is| is "inner sentence"
487|v_iw| iw "inner word"
488|v_i{| i{ same as iB
489|v_i}| i} same as iB
490
491==============================================================================
4922.2 Window commands *CTRL-W*
493
494tag command action in Normal mode ~
495------------------------------------------------------------------------------
496|CTRL-W_CTRL-B| CTRL-W CTRL-B same as "CTRL-W b"
497|CTRL-W_CTRL-C| CTRL-W CTRL-C same as "CTRL-W c"
498|CTRL-W_CTRL-D| CTRL-W CTRL-D same as "CTRL-W d"
499|CTRL-W_CTRL-F| CTRL-W CTRL-F same as "CTRL-W f"
500 CTRL-W CTRL-G same as "CTRL-W g .."
501|CTRL-W_CTRL-H| CTRL-W CTRL-H same as "CTRL-W h"
502|CTRL-W_CTRL-I| CTRL-W CTRL-I same as "CTRL-W i"
503|CTRL-W_CTRL-J| CTRL-W CTRL-J same as "CTRL-W j"
504|CTRL-W_CTRL-K| CTRL-W CTRL-K same as "CTRL-W k"
505|CTRL-W_CTRL-L| CTRL-W CTRL-L same as "CTRL-W l"
506|CTRL-W_CTRL-N| CTRL-W CTRL-N same as "CTRL-W n"
507|CTRL-W_CTRL-O| CTRL-W CTRL-O same as "CTRL-W o"
508|CTRL-W_CTRL-P| CTRL-W CTRL-P same as "CTRL-W p"
509|CTRL-W_CTRL-Q| CTRL-W CTRL-Q same as "CTRL-W q"
510|CTRL-W_CTRL-R| CTRL-W CTRL-R same as "CTRL-W r"
511|CTRL-W_CTRL-S| CTRL-W CTRL-S same as "CTRL-W s"
512|CTRL-W_CTRL-T| CTRL-W CTRL-T same as "CTRL-W t"
513|CTRL-W_CTRL-V| CTRL-W CTRL-V same as "CTRL-W v"
514|CTRL-W_CTRL-W| CTRL-W CTRL-W same as "CTRL-W w"
515|CTRL-W_CTRL-X| CTRL-W CTRL-X same as "CTRL-W x"
516|CTRL-W_CTRL-Z| CTRL-W CTRL-Z same as "CTRL-W z"
517|CTRL-W_CTRL-]| CTRL-W CTRL-] same as "CTRL-W ]"
518|CTRL-W_CTRL-^| CTRL-W CTRL-^ same as "CTRL-W ^"
519|CTRL-W_CTRL-_| CTRL-W CTRL-_ same as "CTRL-W _"
520|CTRL-W_+| CTRL-W + increase current window height N lines
521|CTRL-W_-| CTRL-W - decrease current window height N lines
522|CTRL-W_<| CTRL-W < decrease current window width N columns
523|CTRL-W_=| CTRL-W = make all windows the same height
524|CTRL-W_>| CTRL-W > increase current window width N columns
525|CTRL-W_H| CTRL-W H move current window to the far left
526|CTRL-W_J| CTRL-W J move current window to the very bottom
527|CTRL-W_K| CTRL-W K move current window to the very top
528|CTRL-W_L| CTRL-W L move current window to the far right
529|CTRL-W_P| CTRL-W P go to preview window
530|CTRL-W_R| CTRL-W R rotate windows upwards N times
531|CTRL-W_S| CTRL-W S same as "CTRL-W s"
Bram Moolenaar4c3f5362006-04-11 21:38:50 +0000532|CTRL-W_T| CTRL-W T move current window to a new tab page
Bram Moolenaar071d4272004-06-13 20:20:40 +0000533|CTRL-W_W| CTRL-W W go to N previous window (wrap around)
534|CTRL-W_]| CTRL-W ] split window and jump to tag under cursor
535|CTRL-W_^| CTRL-W ^ split current window and edit alternate
536 file N
537|CTRL-W__| CTRL-W _ set current window height to N (default:
538 very high)
539|CTRL-W_b| CTRL-W b go to bottom window
540|CTRL-W_c| CTRL-W c close current window (like |:close|)
541|CTRL-W_d| CTRL-W d split window and jump to definition under
542 the cursor
543|CTRL-W_f| CTRL-W f split window and edit file name under the
544 cursor
Bram Moolenaard1f56e62006-02-22 21:25:37 +0000545|CTRL-W_F| CTRL-W F split window and edit file name under the
546 cursor and jump to the line number
547 following the file name.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000548|CTRL-W_g_CTRL-]| CTRL-W g CTRL-] split window and do |:tjump| to tag under
549 cursor
550|CTRL-W_g]| CTRL-W g ] split window and do |:tselect| for tag
551 under cursor
552|CTRL-W_g}| CTRL-W g } do a |:ptjump| to the tag under the cursor
Bram Moolenaar8dff8182006-04-06 20:18:50 +0000553|CTRL-W_gf| CTRL-W g f edit file name under the cursor in a new
554 tab page
Bram Moolenaar071d4272004-06-13 20:20:40 +0000555|CTRL-W_h| CTRL-W h go to Nth left window (stop at first window)
556|CTRL-W_i| CTRL-W i split window and jump to declaration of
557 identifier under the cursor
558|CTRL-W_j| CTRL-W j go N windows down (stop at last window)
559|CTRL-W_k| CTRL-W k go N windows up (stop at first window)
560|CTRL-W_l| CTRL-W l go to Nth right window (stop at last window)
561|CTRL-W_n| CTRL-W n open new window, N lines high
562|CTRL-W_o| CTRL-W o close all but current window (like |:only|)
563|CTRL-W_p| CTRL-W p go to previous (last accessed) window
564|CTRL-W_q| CTRL-W q quit current window (like |:quit|)
565|CTRL-W_r| CTRL-W r rotate windows downwards N times
566|CTRL-W_s| CTRL-W s split current window in two parts, new
567 window N lines high
568|CTRL-W_t| CTRL-W t go to top window
569|CTRL-W_v| CTRL-W v split current window vertically, new window
570 N lines wide
571|CTRL-W_w| CTRL-W w go to N next window (wrap around)
572|CTRL-W_x| CTRL-W x exchange current window with window N
573 (default: next window)
574|CTRL-W_z| CTRL-W z close preview window
575|CTRL-W_bar| CTRL-W | set window width to N columns
576|CTRL-W_}| CTRL-W } show tag under cursor in preview window
577|CTRL-W_<Down>| CTRL-W <Down> same as "CTRL-W j"
578|CTRL-W_<Up>| CTRL-W <Up> same as "CTRL-W k"
579|CTRL-W_<Left>| CTRL-W <Left> same as "CTRL-W h"
580|CTRL-W_<Right>| CTRL-W <Right> same as "CTRL-W l"
581
582==============================================================================
5832.3 Square bracket commands *[* *]*
584
585tag char note action in Normal mode ~
586------------------------------------------------------------------------------
587|[_CTRL-D| [ CTRL-D jump to first #define found in current and
588 included files matching the word under the
589 cursor, start searching at beginning of
590 current file
591|[_CTRL-I| [ CTRL-I jump to first line in current and included
592 files that contains the word under the
593 cursor, start searching at beginning of
594 current file
595|[#| [# 1 cursor to N previous unmatched #if, #else
596 or #ifdef
597|['| [' 1 cursor to previous lowercase mark, on first
598 non-blank
599|[(| [( 1 cursor N times back to unmatched '('
600|[star| [* 1 same as "[/"
601|[`| [` 1 cursor to previous lowercase mark
602|[/| [/ 1 cursor to N previous start of a C comment
603|[D| [D list all defines found in current and
604 included files matching the word under the
605 cursor, start searching at beginning of
606 current file
607|[I| [I list all lines found in current and
608 included files that contain the word under
609 the cursor, start searching at beginning of
610 current file
611|[P| [P 2 same as "[p"
612|[[| [[ 1 cursor N sections backward
613|[]| [] 1 cursor N SECTIONS backward
614|[c| [c 1 cursor N times backwards to start of change
615|[d| [d show first #define found in current and
616 included files matching the word under the
617 cursor, start searching at beginning of
618 current file
619|[f| [f same as "gf"
620|[i| [i show first line found in current and
621 included files that contains the word under
622 the cursor, start searching at beginning of
623 current file
624|[p| [p 2 like "P", but adjust indent to current line
625|[m| [m 1 cursor N times back to start of member
626 function
627|[z| [z 1 move to start of open fold
628|[{| [{ 1 cursor N times back to unmatched '{'
629|[<MiddleMouse> [<MiddleMouse> 2 same as "[p"
630
631|]_CTRL-D| ] CTRL-D jump to first #define found in current and
632 included files matching the word under the
633 cursor, start searching at cursor position
634|]_CTRL-I| ] CTRL-I jump to first line in current and included
635 files that contains the word under the
636 cursor, start searching at cursor position
637|]#| ]# 1 cursor to N next unmatched #endif or #else
638|]'| ]' 1 cursor to next lowercase mark, on first
639 non-blank
640|])| ]) 1 cursor N times forward to unmatched ')'
641|]star| ]* 1 same as "]/"
642|]`| ]` 1 cursor to next lowercase mark
643|]/| ]/ 1 cursor to N next end of a C comment
644|]D| ]D list all #defines found in current and
645 included files matching the word under the
646 cursor, start searching at cursor position
647|]I| ]I list all lines found in current and
648 included files that contain the word under
649 the cursor, start searching at cursor
650 position
651|]P| ]P 2 same as "[p"
652|][| ][ 1 cursor N SECTIONS forward
653|]]| ]] 1 cursor N sections forward
654|]c| ]c 1 cursor N times forward to start of change
655|]d| ]d show first #define found in current and
656 included files matching the word under the
657 cursor, start searching at cursor position
658|]f| ]f same as "gf"
659|]i| ]i show first line found in current and
660 included files that contains the word under
661 the cursor, start searching at cursor
662 position
663|]p| ]p 2 like "p", but adjust indent to current line
664|]m| ]m 1 cursor N times forward to end of member
665 function
666|]z| ]z 1 move to end of open fold
667|]}| ]} 1 cursor N times forward to unmatched '}'
668|]<MiddleMouse> ]<MiddleMouse> 2 same as "]p"
669
670==============================================================================
6712.4 Commands starting with 'g' *g*
672
673tag char note action in Normal mode ~
674------------------------------------------------------------------------------
675|g_CTRL-A| g CTRL-A only when compiled with MEM_PROFILE
676 defined: dump a memory profile
677|g_CTRL-G| g CTRL-G show information about current cursor
678 position
679|g_CTRL-H| g CTRL-H start Select block mode
680|g_CTRL-]| g CTRL-] |:tjump| to the tag under the cursor
681|g#| g# 1 like "#", but without using "\<" and "\>"
682|g$| g$ 1 when 'wrap' off go to rightmost character of
683 the current line that is on the screen;
684 when 'wrap' on go to the rightmost character
685 of the current screen line
686|g&| g& 2 repeat last ":s" on all lines
687|g'| g'{mark} 1 like |'| but without changing the jumplist
688|g`| g`{mark} 1 like |`| but without changing the jumplist
689|gstar| g* 1 like "*", but without using "\<" and "\>"
690|g0| g0 1 when 'wrap' off go to leftmost character of
691 the current line that is on the screen;
692 when 'wrap' on go to the leftmost character
693 of the current screen line
694|g8| g8 print hex value of bytes used in UTF-8
695 character under the cursor
Bram Moolenaarcfc7d632005-07-28 22:28:16 +0000696|g<| g< display previous command output
Bram Moolenaar071d4272004-06-13 20:20:40 +0000697|g?| g? 2 Rot13 encoding operator
698|g?g?| g?? 2 Rot13 encode current line
699|g?g?| g?g? 2 Rot13 encode current line
700|gD| gD 1 go to definition of word under the cursor
701 in current file
702|gE| gE 1 go backwards to the end of the previous
703 WORD
704|gH| gH start Select line mode
705|gI| gI 2 like "I", but always start in column 1
706|gJ| gJ 2 join lines without inserting space
707|gP| ["x]gP 2 put the text [from register x] before the
708 cursor N times, leave the cursor after it
709|gR| gR 2 enter Virtual Replace mode
710|gU| gU{motion} 2 make Nmove text uppercase
711|gV| gV don't reselect the previous Visual area
712 when executing a mapping or menu in Select
713 mode
714|g]| g] :tselect on the tag under the cursor
715|g^| g^ 1 when 'wrap' off go to leftmost non-white
716 character of the current line that is on
717 the screen; when 'wrap' on go to the
718 leftmost non-white character of the current
719 screen line
720|ga| ga print ascii value of character under the
721 cursor
722|gd| gd 1 go to definition of word under the cursor
723 in current function
724|ge| ge 1 go backwards to the end of the previous
725 word
726|gf| gf start editing the file whose name is under
727 the cursor
Bram Moolenaard1f56e62006-02-22 21:25:37 +0000728|gF| gF start editing the file whose name is under
729 the cursor and jump to the line number
730 following the filename.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000731|gg| gg 1 cursor to line N, default first line
732|gh| gh start Select mode
733|gi| gi 2 like "i", but first move to the |'^| mark
734|gj| gj 1 like "j", but when 'wrap' on go N screen
735 lines down
736|gk| gk 1 like "k", but when 'wrap' on go N screen
737 lines up
738|gm| gm 1 go to character at middle of the screenline
739|go| go 1 cursor to byte N in the buffer
740|gp| ["x]gp 2 put the text [from register x] after the
741 cursor N times, leave the cursor after it
742|gq| gq{motion} 2 format Nmove text
743|gr| gr{char} 2 virtual replace N chars with {char}
744|gs| gs go to sleep for N seconds (default 1)
745|gu| gu{motion} 2 make Nmove text lowercase
746|gv| gv reselect the previous Visual area
747|gw| gw{motion} 2 format Nmove text and keep cursor
Bram Moolenaar5b962cf2005-12-12 21:58:40 +0000748|g@| g@{motion} call 'operatorfunc'
Bram Moolenaar071d4272004-06-13 20:20:40 +0000749|g~| g~{motion} 2 swap case for Nmove text
750|g<Down>| g<Down> 1 same as "gj"
751|g<End>| g<End> 1 same as "g$"
752|g<Home>| g<Home> 1 same as "g0"
753|g<LeftMouse>| g<LeftMouse> same as <C-LeftMouse>
754 g<MiddleMouse> same as <C-MiddleMouse>
755|g<RightMouse>| g<RightMouse> same as <C-RightMouse>
756|g<Up>| g<Up> 1 same as "gk"
757
758==============================================================================
7592.5 Commands starting with 'z' *z*
760
761tag char note action in Normal mode ~
762------------------------------------------------------------------------------
763|z<CR>| z<CR> redraw, cursor line to top of window,
764 cursor on first non-blank
765|zN<CR>| z{height}<CR> redraw, make window {height} lines high
766|z+| z+ cursor on line N (default line below
767 window), otherwise like "z<CR>"
768|z-| z- redraw, cursor line at bottom of window,
769 cursor on first non-blank
770|z.| z. redraw, cursor line to center of window,
771 cursor on first non-blank
Bram Moolenaar5c2f0502005-12-23 22:11:04 +0000772|z=| z= give spelling suggestions
Bram Moolenaar071d4272004-06-13 20:20:40 +0000773|zA| zA open a closed fold or close an open fold
774 recursively
775|zC| zC close folds recursively
776|zD| zD delete folds recursively
777|zE| zE eliminate all folds
778|zF| zF create a fold for N lines
Bram Moolenaar43abc522005-12-10 20:15:02 +0000779|zG| zG mark word as good spelled word
Bram Moolenaar071d4272004-06-13 20:20:40 +0000780|zM| zM set 'foldlevel' to zero
781|zN| zN set 'foldenable'
782|zO| zO open folds recursively
783|zR| zR set 'foldlevel' to the deepest fold
Bram Moolenaar43abc522005-12-10 20:15:02 +0000784|zW| zW mark word as wrong (bad) spelled word
Bram Moolenaar071d4272004-06-13 20:20:40 +0000785|zX| zX re-apply 'foldlevel'
786|z^| z^ cursor on line N (default line above
787 window), otherwise like "z-"
788|za| za open a closed fold, close an open fold
789|zb| zb redraw, cursor line at bottom of window
790|zc| zc close a fold
791|zd| zd delete a fold
792|ze| ze when 'wrap' off scroll horizontally to
793 position the cursor at the end (right side)
794 of the screen
795|zf| zf{motion} create a fold for Nmove text
Bram Moolenaar43abc522005-12-10 20:15:02 +0000796|zg| zg mark word as good spelled word
Bram Moolenaar071d4272004-06-13 20:20:40 +0000797|zh| zh when 'wrap' off scroll screen N characters
798 to the right
799|zi| zi toggle 'foldenable'
800|zj| zj 1 move to the start of the next fold
801|zk| zk 1 move to the end of the previous fold
802|zl| zl when 'wrap' off scroll screen N characters
803 to the left
804|zm| zm subtract one from 'foldlevel'
805|zn| zn reset 'foldenable'
806|zo| zo open fold
807|zr| zr add one to 'foldlevel'
808|zs| zs when 'wrap' off scroll horizontally to
809 position the cursor at the start (left
810 side) of the screen
811|zt| zt redraw, cursor line at top of window
812|zv| zv open enough folds to view the cursor line
Bram Moolenaar43abc522005-12-10 20:15:02 +0000813|zw| zw mark word as wrong (bad) spelled word
Bram Moolenaar071d4272004-06-13 20:20:40 +0000814|zx| zx re-apply 'foldlevel' and do "zv"
815|zz| zz redraw, cursor line at center of window
816|z<Left>| z<Left> same as "zh"
817|z<Right>| z<Right> same as "zl"
818
819==============================================================================
8203. Visual mode *visual-index*
821
Bram Moolenaar402d2fe2005-04-15 21:00:38 +0000822Most commands in Visual mode are the same as in Normal mode. The ones listed
Bram Moolenaar071d4272004-06-13 20:20:40 +0000823here are those that are different.
824
825tag command note action in Visual mode ~
826------------------------------------------------------------------------------
827|v_CTRL-\_CTRL-N| CTRL-\ CTRL-N stop Visual mode
828|v_CTRL-\_CTRL-G| CTRL-\ CTRL-G go to mode specified with 'insertmode'
Bram Moolenaar81695252004-12-29 20:58:21 +0000829|v_CTRL-C| CTRL-C stop Visual mode
Bram Moolenaar071d4272004-06-13 20:20:40 +0000830|v_CTRL-G| CTRL-G toggle between Visual mode and Select mode
831|v_<BS>| <BS> 2 Select mode: delete highlighted area
832|v_CTRL-H| CTRL-H 2 same as <BS>
833|v_CTRL-O| CTRL-O switch from Select to Visual mode for one
834 command
835|v_CTRL-V| CTRL-V make Visual mode blockwise or stop Visual
836 mode
Bram Moolenaar81695252004-12-29 20:58:21 +0000837|v_<Esc>| <Esc> stop Visual mode
Bram Moolenaar071d4272004-06-13 20:20:40 +0000838|v_CTRL-]| CTRL-] jump to highlighted tag
839|v_!| !{filter} 2 filter the highlighted lines through the
840 external command {filter}
841|v_:| : start a command-line with the highlighted
842 lines as a range
843|v_<| < 2 shift the highlighted lines one
844 'shiftwidth' left
845|v_=| = 2 filter the highlighted lines through the
846 external program given with the 'equalprg'
847 option
848|v_>| > 2 shift the highlighted lines one
849 'shiftwidth' right
850|v_b_A| A 2 block mode: append same text in all lines,
851 after the highlighted area
852|v_C| C 2 delete the highlighted lines and start
853 insert
854|v_D| D 2 delete the highlighted lines
855|v_b_I| I 2 block mode: insert same text in all lines,
856 before the highlighted area
857|v_J| J 2 join the highlighted lines
858|v_K| K run 'keywordprg' on the highlighted area
859|v_O| O Move horizontally to other corner of area.
860 Q does not start Ex mode
861|v_R| R 2 delete the highlighted lines and start
862 insert
863|v_S| S 2 delete the highlighted lines and start
864 insert
865|v_U| U 2 make highlighted area uppercase
866|v_V| V make Visual mode linewise or stop Visual
867 mode
868|v_X| X 2 delete the highlighted lines
869|v_Y| Y yank the highlighted lines
870|v_a(| a( same as ab
871|v_a)| a) same as ab
872|v_a<| a< extend highlighted area with a <> block
873|v_a>| a> same as a<
874|v_aB| aB extend highlighted area with a {} block
875|v_aW| aW extend highlighted area with "a WORD"
876|v_a[| a[ extend highlighted area with a [] block
877|v_a]| a] same as a[
878|v_ab| ab extend highlighted area with a () block
879|v_ap| ap extend highlighted area with a paragraph
880|v_as| as extend highlighted area with a sentence
881|v_aw| aw extend highlighted area with "a word"
882|v_a{| a{ same as aB
883|v_a}| a} same as aB
884|v_c| c 2 delete highlighted area and start insert
885|v_d| d 2 delete highlighted area
886|v_gJ| gJ 2 join the highlighted lines without
887 inserting spaces
888|v_gq| gq 2 format the highlighted lines
889|v_gv| gv exchange current and previous highlighted
890 area
891|v_i(| i( same as ib
892|v_i)| i) same as ib
893|v_i<| i< extend highlighted area with inner <> block
894|v_i>| i> same as i<
895|v_iB| iB extend highlighted area with inner {} block
896|v_iW| iW extend highlighted area with "inner WORD"
897|v_i[| i[ extend highlighted area with inner [] block
898|v_i]| i] same as i[
899|v_ib| ib extend highlighted area with inner () block
900|v_ip| ip extend highlighted area with inner paragraph
901|v_is| is extend highlighted area with inner sentence
902|v_iw| iw extend highlighted area with "inner word"
903|v_i{| i{ same as iB
904|v_i}| i} same as iB
905|v_o| o move cursor to other corner of area
906|v_r| r 2 delete highlighted area and start insert
907|v_s| s 2 delete highlighted area and start insert
908|v_u| u 2 make highlighted area lowercase
909|v_v| v make Visual mode characterwise or stop
910 Visual mode
911|v_x| x 2 delete the highlighted area
912|v_y| y yank the highlighted area
913|v_~| ~ 2 swap case for the highlighted area
914
915==============================================================================
9164. Command-line editing *ex-edit-index*
917
918Get to the command-line with the ':', '!', '/' or '?' commands.
919Normal characters are inserted at the current cursor position.
920"Completion" below refers to context-sensitive completion. It will complete
921file names, tags, commands etc. as appropriate.
922
923 CTRL-@ not used
924|c_CTRL-A| CTRL-A do completion on the pattern in front of the
925 cursor and insert all matches
926|c_CTRL-B| CTRL-B cursor to begin of command-line
927|c_CTRL-C| CTRL-C same as <ESC>
928|c_CTRL-D| CTRL-D list completions that match the pattern in
929 front of the cursor
930|c_CTRL-E| CTRL-E cursor to end of command-line
931|'cedit'| CTRL-F default value for 'cedit': opens the
932 command-line window; otherwise not used
933 CTRL-G not used
934|c_<BS>| <BS> delete the character in front of the cursor
935|c_digraph| {char1} <BS> {char2}
936 enter digraph when 'digraph' is on
937|c_CTRL-H| CTRL-H same as <BS>
938|c_<Tab>| <Tab> if 'wildchar' is <Tab>: Do completion on
939 the pattern in front of the cursor
940|c_<S-Tab>| <S-Tab> same as CTRL-P
941|c_wildchar| 'wildchar' Do completion on the pattern in front of the
942 cursor (default: <Tab>)
943|c_CTRL-I| CTRL-I same as <Tab>
944|c_<NL>| <NL> same as <CR>
945|c_CTRL-J| CTRL-J same as <CR>
946|c_CTRL-K| CTRL-K {char1} {char2}
947 enter digraph
948|c_CTRL-L| CTRL-L do completion on the pattern in front of the
949 cursor and insert the longest common part
950|c_<CR>| <CR> execute entered command
951|c_<CR>| CTRL-M same as <CR>
952|c_CTRL-N| CTRL-N after using 'wildchar' with multiple matches:
953 go to next match, otherwise: same as <Down>
954 CTRL-O not used
955|c_CTRL-P| CTRL-P after using 'wildchar' with multiple matches:
956 go to previous match, otherwise: same as <Up>
957|c_CTRL-Q| CTRL-Q same as CTRL-V, unless it's used for terminal
958 control flow
959|c_CTRL-R| CTRL-R {0-9a-z"%#*:= CTRL-F CTRL-P CTRL-W CTRL-A}
960 insert the contents of a register or object
961 under the cursor as if typed
962|c_CTRL-R_CTRL-R| CTRL-R CTRL-R {0-9a-z"%#*:= CTRL-F CTRL-P CTRL-W CTRL-A}
963 insert the contents of a register or object
964 under the cursor literally
965 CTRL-S (used for terminal control flow)
966 CTRL-T not used
967|c_CTRL-U| CTRL-U remove all characters
968|c_CTRL-V| CTRL-V insert next non-digit literally, insert three
969 digit decimal number as a single byte.
970|c_CTRL-W| CTRL-W delete the word in front of the cursor
971 CTRL-X not used (reserved for completion)
972 CTRL-Y copy (yank) modeless selection
973 CTRL-Z not used (reserved for suspend)
974|c_<Esc>| <Esc> abandon command-line without executing it
975|c_<Esc>| CTRL-[ same as <Esc>
976|c_CTRL-\_CTRL-N| CTRL-\ CTRL-N go to Normal mode, abandon command-line
977|c_CTRL-\_CTRL-G| CTRL-\ CTRL-G go to mode specified with 'insertmode',
978 abandon command-line
979 CTRL-\ a - d reserved for extensions
980|c_CTRL-\_e| CTRL-\ e {expr} replace the command line with the result of
981 {expr}
982 CTRL-\ f - z reserved for extensions
983 CTRL-\ others not used
984 CTRL-] not used
985|c_CTRL-^| CTRL-^ toggle use of |:lmap| mappings
986|c_CTRL-_| CTRL-_ when 'allowrevins' set: change language
987 (Hebrew, Farsi)
988|c_<Del>| <Del> delete the character under the cursor
989
990|c_<Left>| <Left> cursor left
991|c_<S-Left>| <S-Left> cursor one word left
992|c_<C-Left>| <C-Left> cursor one word left
993|c_<Right>| <Right> cursor right
994|c_<S-Right>| <S-Right> cursor one word right
995|c_<C-Right>| <C-Right> cursor one word right
996|c_<Up>| <Up> recall previous command-line from history that
997 matches pattern in front of the cursor
998|c_<S-Up>| <S-Up> recall previous command-line from history
999|c_<Down>| <Down> recall next command-line from history that
1000 matches pattern in front of the cursor
1001|c_<S-Down>| <S-Down> recall next command-line from history
1002|c_<Home>| <Home> cursor to start of command-line
1003|c_<End>| <End> cursor to end of command-line
1004|c_<PageDown>| <PageDown> same as <S-Down>
1005|c_<PageUp>| <PageUp> same as <S-Up>
1006|c_<Insert>| <Insert> toggle insert/overstrike mode
1007|c_<LeftMouse>| <LeftMouse> cursor at mouse click
1008
1009You found it, Arthur! *holy-grail*
1010
1011==============================================================================
10125. EX commands *ex-cmd-index* *:index*
1013
1014This is a brief but complete listing of all the ":" commands, without
1015mentioning any arguments. The optional part of the command name is inside [].
1016The commands are sorted on the non-optional part of their name.
1017
1018|:!| :! filter lines or execute an external command
1019|:!!| :!! repeat last ":!" command
1020|:#| :# same as ":number"
1021|:&| :& repeat last ":substitute"
1022|:star| :* execute contents of a register
1023|:<| :< shift lines one 'shiftwidth' left
1024|:=| := print the cursor line number
1025|:>| :> shift lines one 'shiftwidth' right
1026|:@| :@ execute contents of a register
1027|:@@| :@@ repeat the previous ":@"
1028|:Next| :N[ext] go to previous file in the argument list
1029|:Print| :P[rint] print lines
1030|:X| :X ask for encryption key
1031|:append| :a[ppend] append text
1032|:abbreviate| :ab[breviate] enter abbreviation
1033|:abclear| :abc[lear] remove all abbreviations
1034|:aboveleft| :abo[veleft] make split window appear left or above
1035|:all| :al[l] open a window for each file in the argument
1036 list
1037|:amenu| :am[enu] enter new menu item for all modes
1038|:anoremenu| :an[oremenu] enter a new menu for all modes that will not
1039 be remapped
1040|:args| :ar[gs] print the argument list
1041|:argadd| :arga[dd] add items to the argument list
1042|:argdelete| :argd[elete] delete items from the argument list
1043|:argedit| :arge[dit] add item to the argument list and edit it
1044|:argdo| :argdo do a command on all items in the argument list
1045|:argglobal| :argg[lobal] define the global argument list
1046|:arglocal| :argl[ocal] define a local argument list
1047|:argument| :argu[ment] go to specific file in the argument list
1048|:ascii| :as[cii] print ascii value of character under the cursor
1049|:autocmd| :au[tocmd] enter or show autocommands
1050|:augroup| :aug[roup] select the autocommand group to use
1051|:aunmenu| :aun[menu] remove menu for all modes
1052|:buffer| :b[uffer] go to specific buffer in the buffer list
1053|:bNext| :bN[ext] go to previous buffer in the buffer list
1054|:ball| :ba[ll] open a window for each buffer in the buffer list
1055|:badd| :bad[d] add buffer to the buffer list
1056|:bdelete| :bd[elete] remove a buffer from the buffer list
1057|:behave| :be[have] set mouse and selection behavior
1058|:belowright| :bel[owright] make split window appear right or below
1059|:bfirst| :bf[irst] go to first buffer in the buffer list
1060|:blast| :bl[ast] go to last buffer in the buffer list
1061|:bmodified| :bm[odified] go to next buffer in the buffer list that has
1062 been modified
1063|:bnext| :bn[ext] go to next buffer in the buffer list
1064|:botright| :bo[tright] make split window appear at bottom or far right
1065|:bprevious| :bp[revious] go to previous buffer in the buffer list
1066|:brewind| :br[ewind] go to first buffer in the buffer list
1067|:break| :brea[k] break out of while loop
1068|:breakadd| :breaka[dd] add a debugger breakpoint
1069|:breakdel| :breakd[el] delete a debugger breakpoint
1070|:breaklist| :breakl[ist] list debugger breakpoints
1071|:browse| :bro[wse] use file selection dialog
1072|:bufdo| :bufdo execute command in each listed buffer
1073|:buffers| :buffers list all files in the buffer list
1074|:bunload| :bun[load] unload a specific buffer
1075|:bwipeout| :bw[ipeout] really delete a buffer
1076|:change| :c[hange] replace a line or series of lines
1077|:cNext| :cN[ext] go to previous error
1078|:cNfile| :cNf[ile] go to last error in previous file
1079|:cabbrev| :ca[bbrev] like ":abbreviate" but for Command-line mode
1080|:cabclear| :cabc[lear] clear all abbreviations for Command-line mode
Bram Moolenaara37420f2006-02-04 22:37:47 +00001081|:caddbuffer| :caddb[uffer] add errors from buffer
Bram Moolenaar4770d092006-01-12 23:22:24 +00001082|:caddexpr| :cad[dexpr] add errors from expr
1083|:caddfile| :caddf[ile] add error message to current quickfix list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001084|:call| :cal[l] call a function
1085|:catch| :cat[ch] part of a :try command
Bram Moolenaar86b68352004-12-27 21:59:20 +00001086|:cbuffer| :cb[uffer] parse error messages and jump to first error
Bram Moolenaar071d4272004-06-13 20:20:40 +00001087|:cc| :cc go to specific error
1088|:cclose| :ccl[ose] close quickfix window
1089|:cd| :cd change directory
1090|:center| :ce[nter] format lines at the center
Bram Moolenaar87e25fd2005-07-27 21:13:01 +00001091|:cexpr| :cex[pr] read errors from expr and jump to first
Bram Moolenaar071d4272004-06-13 20:20:40 +00001092|:cfile| :cf[ile] read file with error messages and jump to first
1093|:cfirst| :cfir[st] go to the specified error, default first one
Bram Moolenaarc01140a2006-03-24 22:21:52 +00001094|:cgetbuffer| :cgetb[uffer] get errors from buffer
Bram Moolenaar8ab561d2006-03-23 22:44:10 +00001095|:cgetexpr| :cgete[xpr] get errors from expr
Bram Moolenaar071d4272004-06-13 20:20:40 +00001096|:cgetfile| :cg[etfile] read file with error messages
1097|:changes| :cha[nges] print the change list
1098|:chdir| :chd[ir] change directory
1099|:checkpath| :che[ckpath] list included files
1100|:checktime| :checkt[ime] check timestamp of loaded buffers
1101|:clist| :cl[ist] list all errors
1102|:clast| :cla[st] go to the specified error, default last one
1103|:close| :clo[se] close current window
1104|:cmap| :cm[ap] like ":map" but for Command-line mode
1105|:cmapclear| :cmapc[lear] clear all mappings for Command-line mode
1106|:cmenu| :cme[nu] add menu for Command-line mode
1107|:cnext| :cn[ext] go to next error
1108|:cnewer| :cnew[er] go to newer error list
1109|:cnfile| :cnf[ile] go to first error in next file
1110|:cnoremap| :cno[remap] like ":noremap" but for Command-line mode
1111|:cnoreabbrev| :cnorea[bbrev] like ":noreabbrev" but for Command-line mode
1112|:cnoremenu| :cnoreme[nu] like ":noremenu" but for Command-line mode
1113|:copy| :co[py] copy lines
1114|:colder| :col[der] go to older error list
1115|:colorscheme| :colo[rscheme] load a specific color scheme
1116|:command| :com[mand] create user-defined command
1117|:comclear| :comc[lear] clear all user-defined commands
1118|:compiler| :comp[iler] do settings for a specific compiler
1119|:continue| :con[tinue] go back to :while
1120|:confirm| :conf[irm] prompt user when confirmation required
1121|:copen| :cope[n] open quickfix window
1122|:cprevious| :cp[revious] go to previous error
1123|:cpfile| :cpf[ile] go to last error in previous file
1124|:cquit| :cq[uit] quit Vim with an error code
1125|:crewind| :cr[ewind] go to the specified error, default first one
1126|:cscope| :cs[cope] execute cscope command
1127|:cstag| :cst[ag] use cscope to jump to a tag
1128|:cunmap| :cu[nmap] like ":unmap" but for Command-line mode
1129|:cunabbrev| :cuna[bbrev] like ":unabbrev" but for Command-line mode
1130|:cunmenu| :cunme[nu] remove menu for Command-line mode
1131|:cwindow| :cw[indow] open or close quickfix window
1132|:delete| :d[elete] delete lines
Bram Moolenaarc0197e22004-09-13 20:26:32 +00001133|:delmarks| :delm[arks] delete marks
Bram Moolenaar071d4272004-06-13 20:20:40 +00001134|:debug| :deb[ug] run a command in debugging mode
1135|:debuggreedy| :debugg[reedy] read debug mode commands from normal input
1136|:delcommand| :delc[ommand] delete user-defined command
1137|:delfunction| :delf[unction] delete a user function
1138|:diffupdate| :dif[fupdate] update 'diff' buffers
1139|:diffget| :diffg[et] remove differences in current buffer
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00001140|:diffoff| :diffo[ff] switch off diff mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001141|:diffpatch| :diffp[atch] apply a patch and show differences
1142|:diffput| :diffpu[t] remove differences in other buffer
1143|:diffsplit| :diffs[plit] show differences with another file
1144|:diffthis| :diffthis make current window a diff window
1145|:digraphs| :dig[raphs] show or enter digraphs
1146|:display| :di[splay] display registers
1147|:djump| :dj[ump] jump to #define
1148|:dlist| :dl[ist] list #defines
1149|:doautocmd| :do[autocmd] apply autocommands to current buffer
1150|:doautoall| :doautoa[ll] apply autocommands for all loaded buffers
1151|:drop| :dr[op] jump to window editing file or edit file in
1152 current window
1153|:dsearch| :ds[earch] list one #define
1154|:dsplit| :dsp[lit] split window and jump to #define
1155|:edit| :e[dit] edit a file
Bram Moolenaard3667a22006-03-16 21:35:52 +00001156|:earlier| :ea[rlier] go to older change, undo
Bram Moolenaar071d4272004-06-13 20:20:40 +00001157|:echo| :ec[ho] echoes the result of expressions
1158|:echoerr| :echoe[rr] like :echo, show like an error and use history
1159|:echohl| :echoh[l] set highlighting for echo commands
1160|:echomsg| :echom[sg] same as :echo, put message in history
1161|:echon| :echon same as :echo, but without <EOL>
1162|:else| :el[se] part of an :if command
1163|:elseif| :elsei[f] part of an :if command
1164|:emenu| :em[enu] execute a menu by name
1165|:endif| :en[dif] end previous :if
Bram Moolenaar17568792005-07-06 22:28:03 +00001166|:endfor| :endfo[r] end previous :for
Bram Moolenaar071d4272004-06-13 20:20:40 +00001167|:endfunction| :endf[unction] end of a user function
1168|:endtry| :endt[ry] end previous :try
1169|:endwhile| :endw[hile] end previous :while
1170|:enew| :ene[w] edit a new, unnamed buffer
1171|:ex| :ex same as ":edit"
1172|:execute| :exe[cute] execute result of expressions
1173|:exit| :exi[t] same as ":xit"
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001174|:exusage| :exu[sage] overview of Ex commands
Bram Moolenaar071d4272004-06-13 20:20:40 +00001175|:file| :f[ile] show or set the current file name
1176|:files| :files list all files in the buffer list
1177|:filetype| :filet[ype] switch file type detection on/off
1178|:find| :fin[d] find file in 'path' and edit it
1179|:finally| :fina[lly] part of a :try command
1180|:finish| :fini[sh] quit sourcing a Vim script
1181|:first| :fir[st] go to the first file in the argument list
1182|:fixdel| :fix[del] set key code of <Del>
1183|:fold| :fo[ld] create a fold
1184|:foldclose| :foldc[lose] close folds
1185|:folddoopen| :foldd[oopen] execute command on lines not in a closed fold
1186|:folddoclosed| :folddoc[losed] execute command on lines in a closed fold
1187|:foldopen| :foldo[pen] open folds
Bram Moolenaar17568792005-07-06 22:28:03 +00001188|:for| :for for loop
Bram Moolenaar071d4272004-06-13 20:20:40 +00001189|:function| :fu[nction] define a user function
1190|:global| :g[lobal] execute commands for matching lines
1191|:goto| :go[to] go to byte in the buffer
1192|:grep| :gr[ep] run 'grepprg' and jump to first match
Bram Moolenaar17568792005-07-06 22:28:03 +00001193|:grepadd| :grepa[dd] like :grep, but append to current list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001194|:gui| :gu[i] start the GUI
1195|:gvim| :gv[im] start the GUI
1196|:hardcopy| :ha[rdcopy] send text to the printer
1197|:help| :h[elp] open a help window
1198|:helpfind| :helpf[ind] dialog to open a help window
1199|:helpgrep| :helpg[rep] like ":grep" but searches help files
1200|:helptags| :helpt[ags] generate help tags for a directory
1201|:highlight| :hi[ghlight] specify highlighting methods
1202|:hide| :hid[e] hide current buffer for a command
1203|:history| :his[tory] print a history list
1204|:insert| :i[nsert] insert text
1205|:iabbrev| :ia[bbrev] like ":abbrev" but for Insert mode
1206|:iabclear| :iabc[lear] like ":abclear" but for Insert mode
1207|:if| :if execute commands when condition met
1208|:ijump| :ij[ump] jump to definition of identifier
1209|:ilist| :il[ist] list lines where identifier matches
1210|:imap| :im[ap] like ":map" but for Insert mode
1211|:imapclear| :imapc[lear] like ":mapclear" but for Insert mode
1212|:imenu| :ime[nu] add menu for Insert mode
1213|:inoremap| :ino[remap] like ":noremap" but for Insert mode
1214|:inoreabbrev| :inorea[bbrev] like ":noreabbrev" but for Insert mode
1215|:inoremenu| :inoreme[nu] like ":noremenu" but for Insert mode
1216|:intro| :int[ro] print the introductory message
1217|:isearch| :is[earch] list one line where identifier matches
1218|:isplit| :isp[lit] split window and jump to definition of
1219 identifier
1220|:iunmap| :iu[nmap] like ":unmap" but for Insert mode
1221|:iunabbrev| :iuna[bbrev] like ":unabbrev" but for Insert mode
1222|:iunmenu| :iunme[nu] remove menu for Insert mode
1223|:join| :j[oin] join lines
1224|:jumps| :ju[mps] print the jump list
1225|:k| :k set a mark
Bram Moolenaar17568792005-07-06 22:28:03 +00001226|:keepalt| :keepa[lt] following command keeps the alternate file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001227|:keepmarks| :kee[pmarks] following command keeps marks where they are
1228|:keepjumps| :keepj[jumps] following command keeps jumplist and marks
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001229|:lNext| :lN[ext] go to previous entry in location list
1230|:lNfile| :lNf[ile] go to last entry in previous file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001231|:list| :l[ist] print lines
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001232|:laddexpr| :lad[dexpr] add locations from expr
Bram Moolenaara37420f2006-02-04 22:37:47 +00001233|:laddbuffer| :laddb[uffer] add locations from buffer
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001234|:laddfile| :laddf[ile] add locations to current location list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001235|:last| :la[st] go to the last file in the argument list
1236|:language| :lan[guage] set the language (locale)
Bram Moolenaard3667a22006-03-16 21:35:52 +00001237|:later| :lat[er] go to newer change, redo
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001238|:lbuffer| :lb[uffer] parse locations and jump to first location
Bram Moolenaar071d4272004-06-13 20:20:40 +00001239|:lcd| :lc[d] change directory locally
1240|:lchdir| :lch[dir] change directory locally
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001241|:lclose| :lcl[ose] close location window
Bram Moolenaar06b5db92006-02-10 23:11:56 +00001242|:lcscope| :lcs[cope] like ":cscope" but uses location list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001243|:left| :le[ft] left align lines
1244|:leftabove| :lefta[bove] make split window appear left or above
1245|:let| :let assign a value to a variable or option
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001246|:lexpr| :lex[pr] read locations from expr and jump to first
1247|:lfile| :lf[ile] read file with locations and jump to first
1248|:lfirst| :lfir[st] go to the specified location, default first one
Bram Moolenaarc01140a2006-03-24 22:21:52 +00001249|:lgetbuffer| :lgetb[uffer] get locations from buffer
Bram Moolenaar8ab561d2006-03-23 22:44:10 +00001250|:lgetexpr| :lgete[xpr] get locations from expr
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001251|:lgetfile| :lg[etfile] read file with locations
Bram Moolenaara37420f2006-02-04 22:37:47 +00001252|:lgrep| :lgr[ep] run 'grepprg' and jump to first match
1253|:lgrepadd| :lgrepa[dd] like :grep, but append to current list
Bram Moolenaar8b6144b2006-02-08 09:20:24 +00001254|:lhelpgrep| :lh[elpgrep] like ":helpgrep" but uses location list
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001255|:ll| :ll go to specific location
1256|:llast| :lla[st] go to the specified location, default last one
1257|:llist| :lli[st] list all locations
Bram Moolenaara37420f2006-02-04 22:37:47 +00001258|:lmake| :lmak[e] execute external command 'makeprg' and parse
1259 error messages
Bram Moolenaar071d4272004-06-13 20:20:40 +00001260|:lmap| :lm[ap] like ":map!" but includes Lang-Arg mode
1261|:lmapclear| :lmapc[lear] like ":mapclear!" but includes Lang-Arg mode
Bram Moolenaar6ab5b842006-01-26 22:16:34 +00001262|:lnext| :lne[xt] go to next location
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001263|:lnewer| :lnew[er] go to newer location list
1264|:lnfile| :lnf[ile] go to first location in next file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001265|:lnoremap| :ln[oremap] like ":noremap!" but includes Lang-Arg mode
1266|:loadkeymap| :loadk[eymap] load the following keymaps until EOF
1267|:loadview| :lo[adview] load view for current window from a file
1268|:lockmarks| :loc[kmarks] following command keeps marks where they are
Bram Moolenaar24c088a2005-02-02 22:55:47 +00001269|:lockvar| :lockv[ar] lock variables
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001270|:lolder| :lol[der] go to older location list
1271|:lopen| :lope[n] open location window
1272|:lprevious| :lp[revious] go to previous location
1273|:lpfile| :lpf[ile] go to last location in previous file
1274|:lrewind| :lr[ewind] go to the specified location, default first one
Bram Moolenaar071d4272004-06-13 20:20:40 +00001275|:ls| :ls list all buffers
Bram Moolenaarb8a7b562006-02-01 21:47:16 +00001276|:ltag| :lt[ag] jump to tag and add matching tags to the
1277 location list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001278|:lunmap| :lu[nmap] like ":unmap!" but includes Lang-Arg mode
Bram Moolenaara37420f2006-02-04 22:37:47 +00001279|:lvimgrep| :lv[imgrep] search for pattern in files
1280|:lvimgrepadd| :lvimgrepa[dd] like :vimgrep, but append to current list
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001281|:lwindow| :lw[indow] open or close location window
Bram Moolenaar071d4272004-06-13 20:20:40 +00001282|:move| :m[ove] move lines
1283|:mark| :ma[rk] set a mark
1284|:make| :mak[e] execute external command 'makeprg' and parse
1285 error messages
1286|:map| :map show or enter a mapping
1287|:mapclear| :mapc[lear] clear all mappings for Normal and Visual mode
1288|:marks| :marks list all marks
1289|:match| :mat[ch] define a match to highlight
1290|:menu| :me[nu] enter a new menu item
1291|:menutranslate| :menut[ranslate] add a menu translation item
1292|:messages| :mes[sages] view previously displayed messages
1293|:mkexrc| :mk[exrc] write current mappings and settings to a file
1294|:mksession| :mks[ession] write session info to a file
Bram Moolenaar78599ad2005-06-16 21:47:53 +00001295|:mkspell| :mksp[ell] produce .spl spell file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001296|:mkvimrc| :mkv[imrc] write current mappings and settings to a file
1297|:mkview| :mkvie[w] write view of current window to a file
1298|:mode| :mod[e] show or change the screen mode
Bram Moolenaar8299df92004-07-10 09:47:34 +00001299|:mzscheme| :mz[scheme] execute MzScheme command
1300|:mzfile| :mzf[ile] execute MzScheme script file
Bram Moolenaar17568792005-07-06 22:28:03 +00001301|:nbkey| :nb[key] pass a key to Netbeans
Bram Moolenaar071d4272004-06-13 20:20:40 +00001302|:next| :n[ext] go to next file in the argument list
1303|:new| :new create a new empty window
1304|:nmap| :nm[ap] like ":map" but for Normal mode
1305|:nmapclear| :nmapc[lear] clear all mappings for Normal mode
1306|:nmenu| :nme[nu] add menu for Normal mode
1307|:nnoremap| :nn[oremap] like ":noremap" but for Normal mode
1308|:nnoremenu| :nnoreme[nu] like ":noremenu" but for Normal mode
Bram Moolenaarcdbac1e2005-12-11 21:27:22 +00001309|:noautocmd| :noa[utocmd] following command don't trigger autocommands
Bram Moolenaar071d4272004-06-13 20:20:40 +00001310|:noremap| :no[remap] enter a mapping that will not be remapped
1311|:nohlsearch| :noh[lsearch] suspend 'hlsearch' highlighting
1312|:noreabbrev| :norea[bbrev] enter an abbreviation that will not be
1313 remapped
1314|:noremenu| :noreme[nu] enter a menu that will not be remapped
1315|:normal| :norm[al] execute Normal mode commands
1316|:number| :nu[mber] print lines with line number
1317|:nunmap| :nun[map] like ":unmap" but for Normal mode
1318|:nunmenu| :nunme[nu] remove menu for Normal mode
1319|:open| :o[pen] start open mode (not implemented)
1320|:omap| :om[ap] like ":map" but for Operator-pending mode
1321|:omapclear| :omapc[lear] remove all mappings for Operator-pending mode
1322|:omenu| :ome[nu] add menu for Operator-pending mode
Bram Moolenaar7e8fd632006-02-18 22:14:51 +00001323|:only| :on[ly] close all windows except the current one
Bram Moolenaar071d4272004-06-13 20:20:40 +00001324|:onoremap| :ono[remap] like ":noremap" but for Operator-pending mode
1325|:onoremenu| :onoreme[nu] like ":noremenu" but for Operator-pending mode
1326|:options| :opt[ions] open the options-window
1327|:ounmap| :ou[nmap] like ":unmap" but for Operator-pending mode
1328|:ounmenu| :ounme[nu] remove menu for Operator-pending mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001329|:pclose| :pc[lose] close preview window
1330|:pedit| :ped[it] edit file in the preview window
1331|:perl| :pe[rl] execute Perl command
Bram Moolenaar05159a02005-02-26 23:04:13 +00001332|:print| :p[rint] print lines
Bram Moolenaar17568792005-07-06 22:28:03 +00001333|:profdel| :profd[el] stop profiling a function or script
Bram Moolenaar05159a02005-02-26 23:04:13 +00001334|:profile| :prof[ile] profiling functions and scripts
1335|:promptfind| :pro[mtfind] open GUI dialog for searching
1336|:promptrepl| :promtr[epl] open GUI dialog for search/replace
Bram Moolenaar071d4272004-06-13 20:20:40 +00001337|:perldo| :perld[o] execute Perl command for each line
1338|:pop| :po[p] jump to older entry in tag stack
1339|:popup| :pop[up] popup a menu by name
1340|:ppop| :pp[op] ":pop" in preview window
1341|:preserve| :pre[serve] write all text to swap file
1342|:previous| :prev[ious] go to previous file in argument list
1343|:promptfind| :pro[mptfind] Search dialog
1344|:promptrepl| :promptr[epl] Search/Replace dialog
1345|:psearch| :ps[earch] like ":ijump" but shows match in preview window
1346|:ptag| :pt[ag] show tag in preview window
1347|:ptNext| :ptN[ext] |:tNext| in preview window
1348|:ptfirst| :ptf[irst] |:trewind| in preview window
1349|:ptjump| :ptj[ump] |:tjump| and show tag in preview window
1350|:ptlast| :ptl[ast] |:tlast| in preview window
1351|:ptnext| :ptn[ext] |:tnext| in preview window
1352|:ptprevious| :ptp[revious] |:tprevious| in preview window
1353|:ptrewind| :ptr[ewind] |:trewind| in preview window
1354|:ptselect| :pts[elect] |:tselect| and show tag in preview window
1355|:put| :pu[t] insert contents of register in the text
1356|:pwd| :pw[d] print current directory
1357|:python| :py[thon] execute Python command
1358|:pyfile| :pyf[ile] execute Python script file
1359|:quit| :q[uit] quit current window (when one window quit Vim)
1360|:quitall| :quita[ll] quit Vim
1361|:qall| :qa[ll] quit Vim
1362|:read| :r[ead] read file into the text
1363|:recover| :rec[over] recover a file from a swap file
1364|:redo| :red[o] redo one undone change
1365|:redir| :redi[r] redirect messages to a file or register
1366|:redraw| :redr[aw] force a redraw of the display
1367|:redrawstatus| :redraws[tatus] force a redraw of the status line(s)
1368|:registers| :reg[isters] display the contents of registers
1369|:resize| :res[ize] change current window height
1370|:retab| :ret[ab] change tab size
1371|:return| :retu[rn] return from a user function
1372|:rewind| :rew[ind] go to the first file in the argument list
1373|:right| :ri[ght] right align text
1374|:rightbelow| :rightb[elow] make split window appear right or below
1375|:ruby| :rub[y] execute Ruby command
1376|:rubydo| :rubyd[o] execute Ruby command for each line
1377|:rubyfile| :rubyf[ile] execute Ruby script file
1378|:runtime| :ru[ntime] source vim scripts in 'runtimepath'
1379|:rviminfo| :rv[iminfo] read from viminfo file
1380|:substitute| :s[ubstitute] find and replace text
1381|:sNext| :sN[ext] split window and go to previous file in
1382 argument list
Bram Moolenaar17568792005-07-06 22:28:03 +00001383|:sandbox| :san[dbox] execute a command in the sandbox
Bram Moolenaar071d4272004-06-13 20:20:40 +00001384|:sargument| :sa[rgument] split window and go to specific file in
1385 argument list
1386|:sall| :sal[l] open a window for each file in argument list
1387|:saveas| :sav[eas] save file under another name.
1388|:sbuffer| :sb[uffer] split window and go to specific file in the
1389 buffer list
1390|:sbNext| :sbN[ext] split window and go to previous file in the
1391 buffer list
1392|:sball| :sba[ll] open a window for each file in the buffer list
1393|:sbfirst| :sbf[irst] split window and go to first file in the
1394 buffer list
1395|:sblast| :sbl[ast] split window and go to last file in buffer
1396 list
1397|:sbmodified| :sbm[odified] split window and go to modified file in the
1398 buffer list
1399|:sbnext| :sbn[ext] split window and go to next file in the buffer
1400 list
1401|:sbprevious| :sbp[revious] split window and go to previous file in the
1402 buffer list
1403|:sbrewind| :sbr[ewind] split window and go to first file in the
1404 buffer list
1405|:scriptnames| :scrip[tnames] list names of all sourced Vim scripts
1406|:scriptencoding| :scripte[ncoding] encoding used in sourced Vim script
Bram Moolenaar64969662005-12-14 21:59:55 +00001407|:scscope| :scs[cope] split window and execute cscope command
Bram Moolenaar071d4272004-06-13 20:20:40 +00001408|:set| :se[t] show or set options
1409|:setfiletype| :setf[iletype] set 'filetype', unless it was set already
1410|:setglobal| :setg[lobal] show global values of options
1411|:setlocal| :setl[ocal] show or set options locally
1412|:sfind| :sf[ind] split current window and edit file in 'path'
1413|:sfirst| :sfir[st] split window and go to first file in the
1414 argument list
1415|:shell| :sh[ell] escape to a shell
1416|:simalt| :sim[alt] Win32 GUI: simulate Windows ALT key
1417|:sign| :sig[n] manipulate signs
1418|:silent| :sil[ent] Run a command silently
1419|:sleep| :sl[eep] do nothing for a few seconds
1420|:slast| :sla[st] split window and go to last file in the
1421 argument list
1422|:smagic| :sm[agic] :substitute with 'magic'
Bram Moolenaar371d5402006-03-20 21:47:49 +00001423|:smap| :sma[p] like ":map" but for Select mode
1424|:smapclear| :smapc[lear] remove all mappings for Select mode
1425|:smenu| :sme[nu] add menu for Select mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001426|:snext| :sn[ext] split window and go to next file in the
1427 argument list
1428|:sniff| :sni[ff] send request to sniff
1429|:snomagic| :sno[magic] :substitute with 'nomagic'
Bram Moolenaar371d5402006-03-20 21:47:49 +00001430|:snoremap| :snor[emap] like ":noremap" but for Select mode
1431|:snoremenu| :snoreme[nu] like ":noremenu" but for Select mode
Bram Moolenaarf95dc3b2005-05-22 22:02:25 +00001432|:sort| :sor[t] sort lines
Bram Moolenaar071d4272004-06-13 20:20:40 +00001433|:source| :so[urce] read Vim or Ex commands from a file
Bram Moolenaarf81b0fe2005-06-23 22:27:26 +00001434|:spelldump| :spelld[ump] split window and fill with all correct words
Bram Moolenaar78599ad2005-06-16 21:47:53 +00001435|:spellgood| :spe[llgood] add good word for spelling
Bram Moolenaar362e1a32006-03-06 23:29:24 +00001436|:spellinfo| :spelli[nfo] show info about loaded spell files
Bram Moolenaar43abc522005-12-10 20:15:02 +00001437|:spellrepall| :spellr[epall] replace all bad words like last |z=|
Bram Moolenaard0131a82006-03-04 21:46:13 +00001438|:spellundo| :spellu[ndo] remove good or bad word
Bram Moolenaar78599ad2005-06-16 21:47:53 +00001439|:spellwrong| :spellw[rong] add spelling mistake
Bram Moolenaar071d4272004-06-13 20:20:40 +00001440|:split| :sp[lit] split current window
1441|:sprevious| :spr[evious] split window and go to previous file in the
1442 argument list
1443|:srewind| :sre[wind] split window and go to first file in the
1444 argument list
1445|:stop| :st[op] suspend the editor or escape to a shell
1446|:stag| :sta[g] split window and jump to a tag
1447|:startinsert| :star[tinsert] start Insert mode
Bram Moolenaar64969662005-12-14 21:59:55 +00001448|:startgreplace| :startg[replace] start Virtual Replace mode
Bram Moolenaar325b7a22004-07-05 15:58:32 +00001449|:startreplace| :startr[eplace] start Replace mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001450|:stopinsert|| :stopi[nsert] stop Insert mode
1451|:stjump| :stj[ump] do ":tjump" and split window
1452|:stselect| :sts[elect] do ":tselect" and split window
1453|:sunhide| :sun[hide] same as ":unhide"
Bram Moolenaar371d5402006-03-20 21:47:49 +00001454|:sunmap| :sunm[ap] like ":unmap" but for Select mode
1455|:sunmenu| :sunme[nu] remove menu for Select mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001456|:suspend| :sus[pend] same as ":stop"
1457|:sview| :sv[iew] split window and edit file read-only
1458|:swapname| :sw[apname] show the name of the current swap file
1459|:syntax| :sy[ntax] syntax highlighting
1460|:syncbind| :sync[bind] sync scroll binding
1461|:t| :t same as ":copy"
1462|:tNext| :tN[ext] jump to previous matching tag
Bram Moolenaar80a94a52006-02-23 21:26:58 +00001463|:tabNext| :tabN[ext] go to previous tab page
Bram Moolenaar7e8fd632006-02-18 22:14:51 +00001464|:tabclose| :tabc[lose] close current tab page
Bram Moolenaard0131a82006-03-04 21:46:13 +00001465|:tabdo| :tabdo execute command in each tab page
Bram Moolenaar7e8fd632006-02-18 22:14:51 +00001466|:tabedit| :tabe[dit] edit a file in a new tab page
1467|:tabfind| :tabf[ind] find file in 'path', edit it in a new tab page
Bram Moolenaar32466aa2006-02-24 23:53:04 +00001468|:tabfirst| :tabfir[st] got to first tab page
1469|:tablast| :tabl[ast] got to last tab page
Bram Moolenaar80a94a52006-02-23 21:26:58 +00001470|:tabmove| :tabm[ove] move tab page to other position
1471|:tabnew| :tabnew edit a file in a new tab page
1472|:tabnext| :tabn[ext] go to next tab page
Bram Moolenaar7e8fd632006-02-18 22:14:51 +00001473|:tabonly| :tabo[nly] close all tab pages except the current one
Bram Moolenaar80a94a52006-02-23 21:26:58 +00001474|:tabprevious| :tabp[revious] go to previous tab page
Bram Moolenaar32466aa2006-02-24 23:53:04 +00001475|:tabrewind| :tabr[ewind] got to first tab page
Bram Moolenaar7e8fd632006-02-18 22:14:51 +00001476|:tabs| :tabs list the tab pages and what they contain
Bram Moolenaar80a94a52006-02-23 21:26:58 +00001477|:tab| :tab create new tab when opening new window
Bram Moolenaar071d4272004-06-13 20:20:40 +00001478|:tag| :ta[g] jump to tag
1479|:tags| :tags show the contents of the tag stack
1480|:tcl| :tc[l] execute Tcl command
1481|:tcldo| :tcld[o] execute Tcl command for each line
1482|:tclfile| :tclf[ile] execute Tcl script file
1483|:tearoff| :te[aroff] tear-off a menu
1484|:tfirst| :tf[irst] jump to first matching tag
1485|:throw| :th[row] throw an exception
1486|:tjump| :tj[ump] like ":tselect", but jump directly when there
1487 is only one match
1488|:tlast| :tl[ast] jump to last matching tag
1489|:tmenu| :tm[enu] define menu tooltip
1490|:tnext| :tn[ext] jump to next matching tag
1491|:topleft| :to[pleft] make split window appear at top or far left
1492|:tprevious| :tp[revious] jump to previous matching tag
1493|:trewind| :tr[ewind] jump to first matching tag
1494|:try| :try execute commands, abort on error or exception
1495|:tselect| :ts[elect] list matching tags and select one
1496|:tunmenu| :tu[nmenu] remove menu tooltip
1497|:undo| :u[ndo] undo last change(s)
Bram Moolenaarb388adb2006-02-28 23:50:17 +00001498|:undojoin| :undoj[oin] join next change with previous undo block
Bram Moolenaard3667a22006-03-16 21:35:52 +00001499|:undolist| :undol[ist] list leafs of the undo tree
Bram Moolenaar071d4272004-06-13 20:20:40 +00001500|:unabbreviate| :una[bbreviate] remove abbreviation
1501|:unhide| :unh[ide] open a window for each loaded file in the
1502 buffer list
1503|:unlet| :unl[et] delete variable
Bram Moolenaar24c088a2005-02-02 22:55:47 +00001504|:unlockvar| :unlo[ckvar] unlock variables
Bram Moolenaar071d4272004-06-13 20:20:40 +00001505|:unmap| :unm[ap] remove mapping
1506|:unmenu| :unme[nu] remove menu
1507|:update| :up[date] write buffer if modified
1508|:vglobal| :v[global] execute commands for not matching lines
1509|:version| :ve[rsion] print version number and other info
1510|:verbose| :verb[ose] execute command with 'verbose' set
1511|:vertical| :vert[ical] make following command split vertically
Bram Moolenaar17568792005-07-06 22:28:03 +00001512|:vimgrep| :vim[grep] search for pattern in files
1513|:vimgrepadd| :vimgrepa[dd] like :vimgrep, but append to current list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001514|:visual| :vi[sual] same as ":edit", but turns off "Ex" mode
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001515|:viusage| :viu[sage] overview of Normal mode commands
Bram Moolenaar071d4272004-06-13 20:20:40 +00001516|:view| :vie[w] edit a file read-only
Bram Moolenaar371d5402006-03-20 21:47:49 +00001517|:vmap| :vm[ap] like ":map" but for Visual+Select mode
1518|:vmapclear| :vmapc[lear] remove all mappings for Visual+Select mode
1519|:vmenu| :vme[nu] add menu for Visual+Select mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001520|:vnew| :vne[w] create a new empty window, vertically split
Bram Moolenaar371d5402006-03-20 21:47:49 +00001521|:vnoremap| :vn[oremap] like ":noremap" but for Visual+Select mode
1522|:vnoremenu| :vnoreme[nu] like ":noremenu" but for Visual+Select mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001523|:vsplit| :vs[plit] split current window vertically
Bram Moolenaar371d5402006-03-20 21:47:49 +00001524|:vunmap| :vu[nmap] like ":unmap" but for Visual+Select mode
1525|:vunmenu| :vunme[nu] remove menu for Visual+Select mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001526|:windo| :windo execute command in each window
1527|:write| :w[rite] write to a file
1528|:wNext| :wN[ext] write to a file and go to previous file in
1529 argument list
1530|:wall| :wa[ll] write all (changed) buffers
1531|:while| :wh[ile] execute loop for as long as condition met
1532|:winsize| :wi[nsize] get or set window size (obsolete)
1533|:wincmd| :winc[md] execute a Window (CTRL-W) command
1534|:winpos| :winp[os] get or set window position
1535|:wnext| :wn[ext] write to a file and go to next file in
1536 argument list
1537|:wprevious| :wp[revious] write to a file and go to previous file in
1538 argument list
1539|:wq| :wq write to a file and quit window or Vim
1540|:wqall| :wqa[ll] write all changed buffers and quit Vim
1541|:wsverb| :ws[verb] pass the verb to workshop over IPC
1542|:wviminfo| :wv[iminfo] write to viminfo file
1543|:xit| :x[it] write if buffer changed and quit window or Vim
1544|:xall| :xa[ll] same as ":wqall"
Bram Moolenaar371d5402006-03-20 21:47:49 +00001545|:xmapclear| :xmapc[lear] remove all mappings for Visual mode
1546|:xmap| :xm[ap] like ":map" but for Visual mode
1547|:xmenu| :xme[nu] add menu for Visual mode
1548|:xnoremap| :xn[oremap] like ":noremap" but for Visual mode
1549|:xnoremenu| :xnoreme[nu] like ":noremenu" but for Visual mode
1550|:xunmap| :xu[nmap] like ":unmap" but for Visual mode
1551|:xunmenu| :xunme[nu] remove menu for Visual mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001552|:yank| :y[ank] yank lines into a register
1553|:z| :z print some lines
1554|:~| :~ repeat last ":substitute"
1555
Bram Moolenaar371d5402006-03-20 21:47:49 +00001556
Bram Moolenaar071d4272004-06-13 20:20:40 +00001557 vim:tw=78:ts=8:ft=help:norl: