blob: 83be4a529283a0a629eae7ffb3dde1cb0286f5d5 [file] [log] [blame]
Bram Moolenaar911ead12019-04-21 00:03:35 +02001*index.txt* For Vim version 8.1. Last change: 2019 Apr 19
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|
Bram Moolenaarf6b40102019-02-22 15:24:03 +010020 2.6. Operator-pending mode |operator-pending-index|
Bram Moolenaar071d4272004-06-13 20:20:40 +0000213. Visual mode |visual-index|
224. Command-line editing |ex-edit-index|
Bram Moolenaarf6b40102019-02-22 15:24:03 +0100235. Terminal-Job mode |terminal-job-index|
246. EX commands |ex-cmd-index|
Bram Moolenaar071d4272004-06-13 20:20:40 +000025
26For an overview of options see help.txt |option-list|.
27For an overview of built-in functions see |functions|.
28For a list of Vim variables see |vim-variable|.
29For a complete listing of all help items see |help-tags|.
30
31==============================================================================
321. Insert mode *insert-index*
33
Bram Moolenaar2a8a3ec2011-01-08 16:06:37 +010034tag char action in Insert mode ~
Bram Moolenaar071d4272004-06-13 20:20:40 +000035-----------------------------------------------------------------------
36|i_CTRL-@| CTRL-@ insert previously inserted text and stop
37 insert
38|i_CTRL-A| CTRL-A insert previously inserted text
39 CTRL-B not used |i_CTRL-B-gone|
40|i_CTRL-C| CTRL-C quit insert mode, without checking for
41 abbreviation, unless 'insertmode' set.
42|i_CTRL-D| CTRL-D delete one shiftwidth of indent in the current
43 line
44|i_CTRL-E| CTRL-E insert the character which is below the cursor
45 CTRL-F not used (but by default it's in 'cinkeys' to
46 re-indent the current line)
47|i_CTRL-G_j| CTRL-G CTRL-J line down, to column where inserting started
48|i_CTRL-G_j| CTRL-G j line down, to column where inserting started
49|i_CTRL-G_j| CTRL-G <Down> line down, to column where inserting started
50|i_CTRL-G_k| CTRL-G CTRL-K line up, to column where inserting started
51|i_CTRL-G_k| CTRL-G k line up, to column where inserting started
52|i_CTRL-G_k| CTRL-G <Up> line up, to column where inserting started
53|i_CTRL-G_u| CTRL-G u start new undoable edit
Bram Moolenaaraa3b15d2016-04-21 08:53:19 +020054|i_CTRL-G_U| CTRL-G U don't break undo with next cursor movement
Bram Moolenaar071d4272004-06-13 20:20:40 +000055|i_<BS>| <BS> delete character before the cursor
56|i_digraph| {char1}<BS>{char2}
57 enter digraph (only when 'digraph' option set)
58|i_CTRL-H| CTRL-H same as <BS>
59|i_<Tab>| <Tab> insert a <Tab> character
60|i_CTRL-I| CTRL-I same as <Tab>
61|i_<NL>| <NL> same as <CR>
62|i_CTRL-J| CTRL-J same as <CR>
63|i_CTRL-K| CTRL-K {char1} {char2}
64 enter digraph
65|i_CTRL-L| CTRL-L when 'insertmode' set: Leave Insert mode
66|i_<CR>| <CR> begin new line
67|i_CTRL-M| CTRL-M same as <CR>
68|i_CTRL-N| CTRL-N find next match for keyword in front of the
69 cursor
70|i_CTRL-O| CTRL-O execute a single command and return to insert
71 mode
72|i_CTRL-P| CTRL-P find previous match for keyword in front of
73 the cursor
74|i_CTRL-Q| CTRL-Q same as CTRL-V, unless used for terminal
75 control flow
76|i_CTRL-R| CTRL-R {0-9a-z"%#*:=}
77 insert the contents of a register
78|i_CTRL-R_CTRL-R| CTRL-R CTRL-R {0-9a-z"%#*:=}
79 insert the contents of a register literally
80|i_CTRL-R_CTRL-O| CTRL-R CTRL-O {0-9a-z"%#*:=}
81 insert the contents of a register literally
82 and don't auto-indent
83|i_CTRL-R_CTRL-P| CTRL-R CTRL-P {0-9a-z"%#*:=}
84 insert the contents of a register literally
85 and fix indent.
86 CTRL-S (used for terminal control flow)
87|i_CTRL-T| CTRL-T insert one shiftwidth of indent in current
88 line
89|i_CTRL-U| CTRL-U delete all entered characters in the current
90 line
91|i_CTRL-V| CTRL-V {char} insert next non-digit literally
92|i_CTRL-V_digit| CTRL-V {number} insert three digit decimal number as a single
93 byte.
94|i_CTRL-W| CTRL-W delete word before the cursor
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +000095|i_CTRL-X| CTRL-X {mode} enter CTRL-X sub mode, see |i_CTRL-X_index|
Bram Moolenaar071d4272004-06-13 20:20:40 +000096|i_CTRL-Y| CTRL-Y insert the character which is above the cursor
97|i_CTRL-Z| CTRL-Z when 'insertmode' set: suspend Vim
98|i_<Esc>| <Esc> end insert mode (unless 'insertmode' set)
99|i_CTRL-[| CTRL-[ same as <Esc>
Bram Moolenaarfa13eef2013-02-06 17:34:04 +0100100|i_CTRL-\_CTRL-N| CTRL-\ CTRL-N go to Normal mode
101|i_CTRL-\_CTRL-G| CTRL-\ CTRL-G go to mode specified with 'insertmode'
Bram Moolenaar071d4272004-06-13 20:20:40 +0000102 CTRL-\ a - z reserved for extensions
103 CTRL-\ others not used
104|i_CTRL-]| CTRL-] trigger abbreviation
105|i_CTRL-^| CTRL-^ toggle use of |:lmap| mappings
106|i_CTRL-_| CTRL-_ When 'allowrevins' set: change language
107 (Hebrew, Farsi) {only when compiled with
Bram Moolenaardb84e452010-08-15 13:50:43 +0200108 the |+rightleft| feature}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000109
110 <Space> to '~' not used, except '0' and '^' followed by
111 CTRL-D
112
113|i_0_CTRL-D| 0 CTRL-D delete all indent in the current line
114|i_^_CTRL-D| ^ CTRL-D delete all indent in the current line, restore
115 it in the next line
116
117|i_<Del>| <Del> delete character under the cursor
118
119 Meta characters (0x80 to 0xff, 128 to 255)
120 not used
121
122|i_<Left>| <Left> cursor one character left
123|i_<S-Left>| <S-Left> cursor one word left
124|i_<C-Left>| <C-Left> cursor one word left
125|i_<Right>| <Right> cursor one character right
126|i_<S-Right>| <S-Right> cursor one word right
127|i_<C-Right>| <C-Right> cursor one word right
128|i_<Up>| <Up> cursor one line up
129|i_<S-Up>| <S-Up> same as <PageUp>
130|i_<Down>| <Down> cursor one line down
131|i_<S-Down>| <S-Down> same as <PageDown>
132|i_<Home>| <Home> cursor to start of line
133|i_<C-Home>| <C-Home> cursor to start of file
134|i_<End>| <End> cursor past end of line
135|i_<C-End>| <C-End> cursor past end of file
Bram Moolenaar69a7cb42004-06-20 12:51:53 +0000136|i_<PageUp>| <PageUp> one screenful backward
137|i_<PageDown>| <PageDown> one screenful forward
Bram Moolenaar071d4272004-06-13 20:20:40 +0000138|i_<F1>| <F1> same as <Help>
139|i_<Help>| <Help> stop insert mode and display help window
140|i_<Insert>| <Insert> toggle Insert/Replace mode
141|i_<LeftMouse>| <LeftMouse> cursor at mouse click
Bram Moolenaar8d9b40e2010-07-25 15:49:07 +0200142|i_<ScrollWheelDown>| <ScrollWheelDown> move window three lines down
143|i_<S-ScrollWheelDown>| <S-ScrollWheelDown> move window one page down
144|i_<ScrollWheelUp>| <ScrollWheelUp> move window three lines up
145|i_<S-ScrollWheelUp>| <S-ScrollWheelUp> move window one page up
146|i_<ScrollWheelLeft>| <ScrollWheelLeft> move window six columns left
Bram Moolenaarfa13eef2013-02-06 17:34:04 +0100147|i_<S-ScrollWheelLeft>| <S-ScrollWheelLeft> move window one page left
Bram Moolenaar8d9b40e2010-07-25 15:49:07 +0200148|i_<ScrollWheelRight>| <ScrollWheelRight> move window six columns right
149|i_<S-ScrollWheelRight>| <S-ScrollWheelRight> move window one page right
Bram Moolenaar071d4272004-06-13 20:20:40 +0000150
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000151commands in CTRL-X submode *i_CTRL-X_index*
Bram Moolenaar071d4272004-06-13 20:20:40 +0000152
153|i_CTRL-X_CTRL-D| CTRL-X CTRL-D complete defined identifiers
154|i_CTRL-X_CTRL-E| CTRL-X CTRL-E scroll up
155|i_CTRL-X_CTRL-F| CTRL-X CTRL-F complete file names
156|i_CTRL-X_CTRL-I| CTRL-X CTRL-I complete identifiers
157|i_CTRL-X_CTRL-K| CTRL-X CTRL-K complete identifiers from dictionary
158|i_CTRL-X_CTRL-L| CTRL-X CTRL-L complete whole lines
159|i_CTRL-X_CTRL-N| CTRL-X CTRL-N next completion
Bram Moolenaar5e0d6672005-09-13 21:09:24 +0000160|i_CTRL-X_CTRL-O| CTRL-X CTRL-O omni completion
Bram Moolenaar071d4272004-06-13 20:20:40 +0000161|i_CTRL-X_CTRL-P| CTRL-X CTRL-P previous completion
Bram Moolenaar8b59de92005-08-11 19:59:29 +0000162|i_CTRL-X_CTRL-S| CTRL-X CTRL-S spelling suggestions
Bram Moolenaar071d4272004-06-13 20:20:40 +0000163|i_CTRL-X_CTRL-T| CTRL-X CTRL-T complete identifiers from thesaurus
164|i_CTRL-X_CTRL-Y| CTRL-X CTRL-Y scroll down
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000165|i_CTRL-X_CTRL-U| CTRL-X CTRL-U complete with 'completefunc'
166|i_CTRL-X_CTRL-V| CTRL-X CTRL-V complete like in : command line
Bram Moolenaar071d4272004-06-13 20:20:40 +0000167|i_CTRL-X_CTRL-]| CTRL-X CTRL-] complete tags
Bram Moolenaar8b59de92005-08-11 19:59:29 +0000168|i_CTRL-X_s| CTRL-X s spelling suggestions
Bram Moolenaardb84e452010-08-15 13:50:43 +0200169{not available when compiled without the |+insert_expand| feature}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000170
Bram Moolenaarf6b40102019-02-22 15:24:03 +0100171commands in completion mode (see |popupmenu-keys|)
172
173|complete_CTRL-E| CTRL-E stop completion and go back to original text
174|complete_CTRL-Y| CTRL-Y accept selected match and stop completion
175 CTRL-L insert one character from the current match
176 <CR> insert currently selected match
177 <BS> delete one character and redo search
178 CTRL-H same as <BS>
179 <Up> select the previous match
180 <Down> select the next match
181 <PageUp> select a match several entries back
182 <PageDown> select a match several entries forward
183 other stop completion and insert the typed character
184
Bram Moolenaar071d4272004-06-13 20:20:40 +0000185==============================================================================
1862. Normal mode *normal-index*
187
188CHAR any non-blank character
189WORD a sequence of non-blank characters
190N a number entered before the command
191{motion} a cursor movement command
192Nmove the text that is moved over with a {motion}
193SECTION a section that possibly starts with '}' instead of '{'
194
195note: 1 = cursor movement command; 2 = can be undone/redone
196
197tag char note action in Normal mode ~
198------------------------------------------------------------------------------
199 CTRL-@ not used
200|CTRL-A| CTRL-A 2 add N to number at/after cursor
201|CTRL-B| CTRL-B 1 scroll N screens Backwards
202|CTRL-C| CTRL-C interrupt current (search) command
203|CTRL-D| CTRL-D scroll Down N lines (default: half a screen)
204|CTRL-E| CTRL-E scroll N lines upwards (N lines Extra)
205|CTRL-F| CTRL-F 1 scroll N screens Forward
206|CTRL-G| CTRL-G display current file name and position
207|<BS>| <BS> 1 same as "h"
208|CTRL-H| CTRL-H 1 same as "h"
209|<Tab>| <Tab> 1 go to N newer entry in jump list
210|CTRL-I| CTRL-I 1 same as <Tab>
211|<NL>| <NL> 1 same as "j"
212|CTRL-J| CTRL-J 1 same as "j"
213 CTRL-K not used
214|CTRL-L| CTRL-L redraw screen
215|<CR>| <CR> 1 cursor to the first CHAR N lines lower
216|CTRL-M| CTRL-M 1 same as <CR>
217|CTRL-N| CTRL-N 1 same as "j"
218|CTRL-O| CTRL-O 1 go to N older entry in jump list
219|CTRL-P| CTRL-P 1 same as "k"
220 CTRL-Q (used for terminal control flow)
221|CTRL-R| CTRL-R 2 redo changes which were undone with 'u'
222 CTRL-S (used for terminal control flow)
223|CTRL-T| CTRL-T jump to N older Tag in tag list
224|CTRL-U| CTRL-U scroll N lines Upwards (default: half a
225 screen)
226|CTRL-V| CTRL-V start blockwise Visual mode
227|CTRL-W| CTRL-W {char} window commands, see |CTRL-W|
228|CTRL-X| CTRL-X 2 subtract N from number at/after cursor
229|CTRL-Y| CTRL-Y scroll N lines downwards
230|CTRL-Z| CTRL-Z suspend program (or start new shell)
231 CTRL-[ <Esc> not used
Bram Moolenaarfa13eef2013-02-06 17:34:04 +0100232|CTRL-\_CTRL-N| CTRL-\ CTRL-N go to Normal mode (no-op)
233|CTRL-\_CTRL-G| CTRL-\ CTRL-G go to mode specified with 'insertmode'
Bram Moolenaar071d4272004-06-13 20:20:40 +0000234 CTRL-\ a - z reserved for extensions
235 CTRL-\ others not used
236|CTRL-]| CTRL-] :ta to ident under cursor
237|CTRL-^| CTRL-^ edit Nth alternate file (equivalent to
238 ":e #N")
239 CTRL-_ not used
240
241|<Space>| <Space> 1 same as "l"
242|!| !{motion}{filter}
243 2 filter Nmove text through the {filter}
244 command
245|!!| !!{filter} 2 filter N lines through the {filter} command
246|quote| "{a-zA-Z0-9.%#:-"} use register {a-zA-Z0-9.%#:-"} for next
247 delete, yank or put (uppercase to append)
248 ({.%#:} only work with put)
249|#| # 1 search backward for the Nth occurrence of
250 the ident under the cursor
251|$| $ 1 cursor to the end of Nth next line
252|%| % 1 find the next (curly/square) bracket on
253 this line and go to its match, or go to
254 matching comment bracket, or go to matching
255 preprocessor directive.
256|N%| {count}% 1 go to N percentage in the file
257|&| & 2 repeat last :s
258|'| '{a-zA-Z0-9} 1 cursor to the first CHAR on the line with
259 mark {a-zA-Z0-9}
260|''| '' 1 cursor to the first CHAR of the line where
261 the cursor was before the latest jump.
262|'(| '( 1 cursor to the first CHAR on the line of the
263 start of the current sentence
264|')| ') 1 cursor to the first CHAR on the line of the
265 end of the current sentence
266|'<| '< 1 cursor to the first CHAR of the line where
267 highlighted area starts/started in the
268 current buffer.
269|'>| '> 1 cursor to the first CHAR of the line where
270 highlighted area ends/ended in the current
271 buffer.
272|'[| '[ 1 cursor to the first CHAR on the line of the
273 start of last operated text or start of put
274 text
275|']| '] 1 cursor to the first CHAR on the line of the
276 end of last operated text or end of put
277 text
278|'{| '{ 1 cursor to the first CHAR on the line of the
279 start of the current paragraph
280|'}| '} 1 cursor to the first CHAR on the line of the
281 end of the current paragraph
282|(| ( 1 cursor N sentences backward
283|)| ) 1 cursor N sentences forward
284|star| * 1 search forward for the Nth occurrence of
285 the ident under the cursor
286|+| + 1 same as <CR>
287|,| , 1 repeat latest f, t, F or T in opposite
288 direction N times
289|-| - 1 cursor to the first CHAR N lines higher
290|.| . 2 repeat last change with count replaced with
291 N
292|/| /{pattern}<CR> 1 search forward for the Nth occurrence of
293 {pattern}
294|/<CR>| /<CR> 1 search forward for {pattern} of last search
295|count| 0 1 cursor to the first char of the line
296|count| 1 prepend to command to give a count
297|count| 2 "
298|count| 3 "
299|count| 4 "
300|count| 5 "
301|count| 6 "
302|count| 7 "
303|count| 8 "
304|count| 9 "
305|:| : 1 start entering an Ex command
306|N:| {count}: start entering an Ex command with range
307 from current line to N-1 lines down
308|;| ; 1 repeat latest f, t, F or T N times
309|<| <{motion} 2 shift Nmove lines one 'shiftwidth'
310 leftwards
311|<<| << 2 shift N lines one 'shiftwidth' leftwards
312|=| ={motion} 2 filter Nmove lines through "indent"
313|==| == 2 filter N lines through "indent"
314|>| >{motion} 2 shift Nmove lines one 'shiftwidth'
315 rightwards
316|>>| >> 2 shift N lines one 'shiftwidth' rightwards
317|?| ?{pattern}<CR> 1 search backward for the Nth previous
318 occurrence of {pattern}
319|?<CR>| ?<CR> 1 search backward for {pattern} of last search
320|@| @{a-z} 2 execute the contents of register {a-z}
321 N times
322|@:| @: repeat the previous ":" command N times
323|@@| @@ 2 repeat the previous @{a-z} N times
324|A| A 2 append text after the end of the line N times
325|B| B 1 cursor N WORDS backward
326|C| ["x]C 2 change from the cursor position to the end
327 of the line, and N-1 more lines [into
Bram Moolenaar94237492017-04-23 18:40:21 +0200328 register x]; synonym for "c$"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000329|D| ["x]D 2 delete the characters under the cursor
330 until the end of the line and N-1 more
Bram Moolenaar94237492017-04-23 18:40:21 +0200331 lines [into register x]; synonym for "d$"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000332|E| E 1 cursor forward to the end of WORD N
333|F| F{char} 1 cursor to the Nth occurrence of {char} to
334 the left
335|G| G 1 cursor to line N, default last line
336|H| H 1 cursor to line N from top of screen
337|I| I 2 insert text before the first CHAR on the
338 line N times
339|J| J 2 Join N lines; default is 2
340|K| K lookup Keyword under the cursor with
341 'keywordprg'
342|L| L 1 cursor to line N from bottom of screen
343|M| M 1 cursor to middle line of screen
344|N| N 1 repeat the latest '/' or '?' N times in
345 opposite direction
346|O| O 2 begin a new line above the cursor and
347 insert text, repeat N times
Bram Moolenaar94237492017-04-23 18:40:21 +0200348|P| ["x]P 2 put the text [from register x] before the
Bram Moolenaar071d4272004-06-13 20:20:40 +0000349 cursor N times
350|Q| Q switch to "Ex" mode
351|R| R 2 enter replace mode: overtype existing
352 characters, repeat the entered text N-1
353 times
Bram Moolenaar94237492017-04-23 18:40:21 +0200354|S| ["x]S 2 delete N lines [into register x] and start
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000355 insert; synonym for "cc".
Bram Moolenaar071d4272004-06-13 20:20:40 +0000356|T| T{char} 1 cursor till after Nth occurrence of {char}
357 to the left
358|U| U 2 undo all latest changes on one line
359|V| V start linewise Visual mode
360|W| W 1 cursor N WORDS forward
361|X| ["x]X 2 delete N characters before the cursor [into
Bram Moolenaar94237492017-04-23 18:40:21 +0200362 register x]
363|Y| ["x]Y yank N lines [into register x]; synonym for
Bram Moolenaar071d4272004-06-13 20:20:40 +0000364 "yy"
365|ZZ| ZZ store current file if modified, and exit
366|ZQ| ZQ exit current file always
Bram Moolenaarc6039d82005-12-02 00:44:04 +0000367|[| [{char} square bracket command (see |[| below)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000368 \ not used
Bram Moolenaarc6039d82005-12-02 00:44:04 +0000369|]| ]{char} square bracket command (see |]| below)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000370|^| ^ 1 cursor to the first CHAR of the line
371|_| _ 1 cursor to the first CHAR N - 1 lines lower
372|`| `{a-zA-Z0-9} 1 cursor to the mark {a-zA-Z0-9}
373|`(| `( 1 cursor to the start of the current sentence
374|`)| `) 1 cursor to the end of the current sentence
375|`<| `< 1 cursor to the start of the highlighted area
376|`>| `> 1 cursor to the end of the highlighted area
377|`[| `[ 1 cursor to the start of last operated text
378 or start of putted text
379|`]| `] 1 cursor to the end of last operated text or
380 end of putted text
381|``| `` 1 cursor to the position before latest jump
382|`{| `{ 1 cursor to the start of the current paragraph
383|`}| `} 1 cursor to the end of the current paragraph
384|a| a 2 append text after the cursor N times
385|b| b 1 cursor N words backward
Bram Moolenaar94237492017-04-23 18:40:21 +0200386|c| ["x]c{motion} 2 delete Nmove text [into register x] and
387 start insert
388|cc| ["x]cc 2 delete N lines [into register x] and start
Bram Moolenaar071d4272004-06-13 20:20:40 +0000389 insert
Bram Moolenaar94237492017-04-23 18:40:21 +0200390|d| ["x]d{motion} 2 delete Nmove text [into register x]
391|dd| ["x]dd 2 delete N lines [into register x]
Bram Moolenaar071d4272004-06-13 20:20:40 +0000392|do| do 2 same as ":diffget"
393|dp| dp 2 same as ":diffput"
394|e| e 1 cursor forward to the end of word N
395|f| f{char} 1 cursor to Nth occurrence of {char} to the
396 right
Bram Moolenaarc6039d82005-12-02 00:44:04 +0000397|g| g{char} extended commands, see |g| below
Bram Moolenaar071d4272004-06-13 20:20:40 +0000398|h| h 1 cursor N chars to the left
399|i| i 2 insert text before the cursor N times
400|j| j 1 cursor N lines downward
401|k| k 1 cursor N lines upward
402|l| l 1 cursor N chars to the right
403|m| m{A-Za-z} set mark {A-Za-z} at cursor position
404|n| n 1 repeat the latest '/' or '?' N times
405|o| o 2 begin a new line below the cursor and
406 insert text, repeat N times
407|p| ["x]p 2 put the text [from register x] after the
408 cursor N times
409|q| q{0-9a-zA-Z"} record typed characters into named register
410 {0-9a-zA-Z"} (uppercase to append)
411|q| q (while recording) stops recording
412|q:| q: edit : command-line in command-line window
413|q/| q/ edit / command-line in command-line window
414|q?| q? edit ? command-line in command-line window
415|r| r{char} 2 replace N chars with {char}
416|s| ["x]s 2 (substitute) delete N characters [into
Bram Moolenaar94237492017-04-23 18:40:21 +0200417 register x] and start insert
Bram Moolenaar071d4272004-06-13 20:20:40 +0000418|t| t{char} 1 cursor till before Nth occurrence of {char}
419 to the right
420|u| u 2 undo changes
421|v| v start characterwise Visual mode
422|w| w 1 cursor N words forward
423|x| ["x]x 2 delete N characters under and after the
Bram Moolenaar94237492017-04-23 18:40:21 +0200424 cursor [into register x]
425|y| ["x]y{motion} yank Nmove text [into register x]
426|yy| ["x]yy yank N lines [into register x]
Bram Moolenaarc6039d82005-12-02 00:44:04 +0000427|z| z{char} commands starting with 'z', see |z| below
Bram Moolenaar071d4272004-06-13 20:20:40 +0000428|{| { 1 cursor N paragraphs backward
429|bar| | 1 cursor to column N
430|}| } 1 cursor N paragraphs forward
431|~| ~ 2 'tildeop' off: switch case of N characters
432 under cursor and move the cursor N
433 characters to the right
434|~| ~{motion} 'tildeop' on: switch case of Nmove text
435|<C-End>| <C-End> 1 same as "G"
436|<C-Home>| <C-Home> 1 same as "gg"
437|<C-Left>| <C-Left> 1 same as "b"
438|<C-LeftMouse>| <C-LeftMouse> ":ta" to the keyword at the mouse click
439|<C-Right>| <C-Right> 1 same as "w"
440|<C-RightMouse>| <C-RightMouse> same as "CTRL-T"
441|<Del>| ["x]<Del> 2 same as "x"
442|N<Del>| {count}<Del> remove the last digit from {count}
443|<Down>| <Down> 1 same as "j"
444|<End>| <End> 1 same as "$"
445|<F1>| <F1> same as <Help>
446|<Help>| <Help> open a help window
447|<Home>| <Home> 1 same as "0"
448|<Insert>| <Insert> 2 same as "i"
449|<Left>| <Left> 1 same as "h"
450|<LeftMouse>| <LeftMouse> 1 move cursor to the mouse click position
Bram Moolenaarfa13eef2013-02-06 17:34:04 +0100451|<MiddleMouse>| <MiddleMouse> 2 same as "gP" at the mouse click position
Bram Moolenaar071d4272004-06-13 20:20:40 +0000452|<PageDown>| <PageDown> same as CTRL-F
453|<PageUp>| <PageUp> same as CTRL-B
454|<Right>| <Right> 1 same as "l"
455|<RightMouse>| <RightMouse> start Visual mode, move cursor to the mouse
456 click position
457|<S-Down>| <S-Down> 1 same as CTRL-F
458|<S-Left>| <S-Left> 1 same as "b"
459|<S-LeftMouse>| <S-LeftMouse> same as "*" at the mouse click position
460|<S-Right>| <S-Right> 1 same as "w"
461|<S-RightMouse>| <S-RightMouse> same as "#" at the mouse click position
462|<S-Up>| <S-Up> 1 same as CTRL-B
463|<Undo>| <Undo> 2 same as "u"
464|<Up>| <Up> 1 same as "k"
Bram Moolenaar8d9b40e2010-07-25 15:49:07 +0200465|<ScrollWheelDown>| <ScrollWheelDown> move window three lines down
466|<S-ScrollWheelDown>| <S-ScrollWheelDown> move window one page down
467|<ScrollWheelUp>| <ScrollWheelUp> move window three lines up
468|<S-ScrollWheelUp>| <S-ScrollWheelUp> move window one page up
469|<ScrollWheelLeft>| <ScrollWheelLeft> move window six columns left
470|<S-ScrollWheelLeft>| <S-ScrollWheelLeft> move window one page left
471|<ScrollWheelRight>| <ScrollWheelRight> move window six columns right
472|<S-ScrollWheelRight>| <S-ScrollWheelRight> move window one page right
Bram Moolenaar071d4272004-06-13 20:20:40 +0000473
474==============================================================================
4752.1 Text objects *objects*
476
477These can be used after an operator or in Visual mode to select an object.
478
Bram Moolenaar2a8a3ec2011-01-08 16:06:37 +0100479tag command action in op-pending and Visual mode ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000480------------------------------------------------------------------------------
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000481|v_aquote| a" double quoted string
482|v_a'| a' single quoted string
Bram Moolenaar071d4272004-06-13 20:20:40 +0000483|v_a(| a( same as ab
484|v_a)| a) same as ab
485|v_a<| a< "a <>" from '<' to the matching '>'
486|v_a>| a> same as a<
487|v_aB| aB "a Block" from "[{" to "]}" (with brackets)
488|v_aW| aW "a WORD" (with white space)
489|v_a[| a[ "a []" from '[' to the matching ']'
490|v_a]| a] same as a[
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000491|v_a`| a` string in backticks
Bram Moolenaar071d4272004-06-13 20:20:40 +0000492|v_ab| ab "a block" from "[(" to "])" (with braces)
493|v_ap| ap "a paragraph" (with white space)
494|v_as| as "a sentence" (with white space)
Bram Moolenaarf2330482008-06-24 20:19:36 +0000495|v_at| at "a tag block" (with white space)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000496|v_aw| aw "a word" (with white space)
497|v_a{| a{ same as aB
498|v_a}| a} same as aB
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000499|v_iquote| i" double quoted string without the quotes
500|v_i'| i' single quoted string without the quotes
Bram Moolenaar071d4272004-06-13 20:20:40 +0000501|v_i(| i( same as ib
502|v_i)| i) same as ib
503|v_i<| i< "inner <>" from '<' to the matching '>'
504|v_i>| i> same as i<
505|v_iB| iB "inner Block" from "[{" and "]}"
506|v_iW| iW "inner WORD"
507|v_i[| i[ "inner []" from '[' to the matching ']'
508|v_i]| i] same as i[
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000509|v_i`| i` string in backticks without the backticks
Bram Moolenaar071d4272004-06-13 20:20:40 +0000510|v_ib| ib "inner block" from "[(" to "])"
511|v_ip| ip "inner paragraph"
512|v_is| is "inner sentence"
Bram Moolenaarf2330482008-06-24 20:19:36 +0000513|v_it| it "inner tag block"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000514|v_iw| iw "inner word"
515|v_i{| i{ same as iB
516|v_i}| i} same as iB
517
518==============================================================================
5192.2 Window commands *CTRL-W*
520
521tag command action in Normal mode ~
522------------------------------------------------------------------------------
523|CTRL-W_CTRL-B| CTRL-W CTRL-B same as "CTRL-W b"
524|CTRL-W_CTRL-C| CTRL-W CTRL-C same as "CTRL-W c"
525|CTRL-W_CTRL-D| CTRL-W CTRL-D same as "CTRL-W d"
526|CTRL-W_CTRL-F| CTRL-W CTRL-F same as "CTRL-W f"
527 CTRL-W CTRL-G same as "CTRL-W g .."
528|CTRL-W_CTRL-H| CTRL-W CTRL-H same as "CTRL-W h"
529|CTRL-W_CTRL-I| CTRL-W CTRL-I same as "CTRL-W i"
530|CTRL-W_CTRL-J| CTRL-W CTRL-J same as "CTRL-W j"
531|CTRL-W_CTRL-K| CTRL-W CTRL-K same as "CTRL-W k"
532|CTRL-W_CTRL-L| CTRL-W CTRL-L same as "CTRL-W l"
533|CTRL-W_CTRL-N| CTRL-W CTRL-N same as "CTRL-W n"
534|CTRL-W_CTRL-O| CTRL-W CTRL-O same as "CTRL-W o"
535|CTRL-W_CTRL-P| CTRL-W CTRL-P same as "CTRL-W p"
536|CTRL-W_CTRL-Q| CTRL-W CTRL-Q same as "CTRL-W q"
537|CTRL-W_CTRL-R| CTRL-W CTRL-R same as "CTRL-W r"
538|CTRL-W_CTRL-S| CTRL-W CTRL-S same as "CTRL-W s"
539|CTRL-W_CTRL-T| CTRL-W CTRL-T same as "CTRL-W t"
540|CTRL-W_CTRL-V| CTRL-W CTRL-V same as "CTRL-W v"
541|CTRL-W_CTRL-W| CTRL-W CTRL-W same as "CTRL-W w"
542|CTRL-W_CTRL-X| CTRL-W CTRL-X same as "CTRL-W x"
543|CTRL-W_CTRL-Z| CTRL-W CTRL-Z same as "CTRL-W z"
544|CTRL-W_CTRL-]| CTRL-W CTRL-] same as "CTRL-W ]"
545|CTRL-W_CTRL-^| CTRL-W CTRL-^ same as "CTRL-W ^"
546|CTRL-W_CTRL-_| CTRL-W CTRL-_ same as "CTRL-W _"
547|CTRL-W_+| CTRL-W + increase current window height N lines
548|CTRL-W_-| CTRL-W - decrease current window height N lines
Bram Moolenaarb6e0ec62017-07-23 22:12:20 +0200549|CTRL-W_:| CTRL-W : same as |:|, edit a command line
Bram Moolenaar071d4272004-06-13 20:20:40 +0000550|CTRL-W_<| CTRL-W < decrease current window width N columns
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100551|CTRL-W_=| CTRL-W = make all windows the same height & width
Bram Moolenaar071d4272004-06-13 20:20:40 +0000552|CTRL-W_>| CTRL-W > increase current window width N columns
553|CTRL-W_H| CTRL-W H move current window to the far left
554|CTRL-W_J| CTRL-W J move current window to the very bottom
555|CTRL-W_K| CTRL-W K move current window to the very top
556|CTRL-W_L| CTRL-W L move current window to the far right
557|CTRL-W_P| CTRL-W P go to preview window
558|CTRL-W_R| CTRL-W R rotate windows upwards N times
559|CTRL-W_S| CTRL-W S same as "CTRL-W s"
Bram Moolenaar4c3f5362006-04-11 21:38:50 +0000560|CTRL-W_T| CTRL-W T move current window to a new tab page
Bram Moolenaar071d4272004-06-13 20:20:40 +0000561|CTRL-W_W| CTRL-W W go to N previous window (wrap around)
562|CTRL-W_]| CTRL-W ] split window and jump to tag under cursor
563|CTRL-W_^| CTRL-W ^ split current window and edit alternate
564 file N
565|CTRL-W__| CTRL-W _ set current window height to N (default:
566 very high)
567|CTRL-W_b| CTRL-W b go to bottom window
568|CTRL-W_c| CTRL-W c close current window (like |:close|)
569|CTRL-W_d| CTRL-W d split window and jump to definition under
570 the cursor
571|CTRL-W_f| CTRL-W f split window and edit file name under the
572 cursor
Bram Moolenaard1f56e62006-02-22 21:25:37 +0000573|CTRL-W_F| CTRL-W F split window and edit file name under the
574 cursor and jump to the line number
575 following the file name.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000576|CTRL-W_g_CTRL-]| CTRL-W g CTRL-] split window and do |:tjump| to tag under
577 cursor
578|CTRL-W_g]| CTRL-W g ] split window and do |:tselect| for tag
579 under cursor
580|CTRL-W_g}| CTRL-W g } do a |:ptjump| to the tag under the cursor
Bram Moolenaar8dff8182006-04-06 20:18:50 +0000581|CTRL-W_gf| CTRL-W g f edit file name under the cursor in a new
582 tab page
Bram Moolenaar57657d82006-04-21 22:12:41 +0000583|CTRL-W_gF| CTRL-W g F edit file name under the cursor in a new
584 tab page and jump to the line number
585 following the file name.
Bram Moolenaar26967612019-03-17 17:13:16 +0100586|CTRL-W_gt| CTRL-W g t same as `gt`: go to next tab page
587|CTRL-W_gT| CTRL-W g T same as `gT`: go to previous tab page
Bram Moolenaar071d4272004-06-13 20:20:40 +0000588|CTRL-W_h| CTRL-W h go to Nth left window (stop at first window)
589|CTRL-W_i| CTRL-W i split window and jump to declaration of
590 identifier under the cursor
591|CTRL-W_j| CTRL-W j go N windows down (stop at last window)
592|CTRL-W_k| CTRL-W k go N windows up (stop at first window)
593|CTRL-W_l| CTRL-W l go to Nth right window (stop at last window)
594|CTRL-W_n| CTRL-W n open new window, N lines high
595|CTRL-W_o| CTRL-W o close all but current window (like |:only|)
596|CTRL-W_p| CTRL-W p go to previous (last accessed) window
597|CTRL-W_q| CTRL-W q quit current window (like |:quit|)
598|CTRL-W_r| CTRL-W r rotate windows downwards N times
599|CTRL-W_s| CTRL-W s split current window in two parts, new
600 window N lines high
601|CTRL-W_t| CTRL-W t go to top window
602|CTRL-W_v| CTRL-W v split current window vertically, new window
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100603 N columns wide
Bram Moolenaar071d4272004-06-13 20:20:40 +0000604|CTRL-W_w| CTRL-W w go to N next window (wrap around)
605|CTRL-W_x| CTRL-W x exchange current window with window N
606 (default: next window)
607|CTRL-W_z| CTRL-W z close preview window
608|CTRL-W_bar| CTRL-W | set window width to N columns
609|CTRL-W_}| CTRL-W } show tag under cursor in preview window
610|CTRL-W_<Down>| CTRL-W <Down> same as "CTRL-W j"
611|CTRL-W_<Up>| CTRL-W <Up> same as "CTRL-W k"
612|CTRL-W_<Left>| CTRL-W <Left> same as "CTRL-W h"
613|CTRL-W_<Right>| CTRL-W <Right> same as "CTRL-W l"
614
615==============================================================================
6162.3 Square bracket commands *[* *]*
617
618tag char note action in Normal mode ~
619------------------------------------------------------------------------------
620|[_CTRL-D| [ CTRL-D jump to first #define found in current and
621 included files matching the word under the
622 cursor, start searching at beginning of
623 current file
624|[_CTRL-I| [ CTRL-I jump to first line in current and included
625 files that contains the word under the
626 cursor, start searching at beginning of
627 current file
628|[#| [# 1 cursor to N previous unmatched #if, #else
629 or #ifdef
630|['| [' 1 cursor to previous lowercase mark, on first
631 non-blank
632|[(| [( 1 cursor N times back to unmatched '('
633|[star| [* 1 same as "[/"
634|[`| [` 1 cursor to previous lowercase mark
635|[/| [/ 1 cursor to N previous start 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 beginning of
639 current file
640|[I| [I list all lines found in current and
641 included files that contain the word under
642 the cursor, start searching at beginning of
643 current file
644|[P| [P 2 same as "[p"
645|[[| [[ 1 cursor N sections backward
646|[]| [] 1 cursor N SECTIONS backward
647|[c| [c 1 cursor N times backwards to start of change
648|[d| [d show first #define found in current and
649 included files matching the word under the
650 cursor, start searching at beginning of
651 current file
652|[f| [f same as "gf"
653|[i| [i show first line found in current and
654 included files that contains the word under
655 the cursor, start searching at beginning of
656 current file
Bram Moolenaar071d4272004-06-13 20:20:40 +0000657|[m| [m 1 cursor N times back to start of member
658 function
Bram Moolenaardd2a3cd2007-05-05 17:10:09 +0000659|[p| [p 2 like "P", but adjust indent to current line
660|[s| [s 1 move to the previous misspelled word
Bram Moolenaar071d4272004-06-13 20:20:40 +0000661|[z| [z 1 move to start of open fold
662|[{| [{ 1 cursor N times back to unmatched '{'
Bram Moolenaarfa13eef2013-02-06 17:34:04 +0100663|[<MiddleMouse>| [<MiddleMouse> 2 same as "[p"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000664
665|]_CTRL-D| ] CTRL-D jump to first #define found in current and
666 included files matching the word under the
667 cursor, start searching at cursor position
668|]_CTRL-I| ] CTRL-I jump to first line in current and included
669 files that contains the word under the
670 cursor, start searching at cursor position
671|]#| ]# 1 cursor to N next unmatched #endif or #else
672|]'| ]' 1 cursor to next lowercase mark, on first
673 non-blank
674|])| ]) 1 cursor N times forward to unmatched ')'
675|]star| ]* 1 same as "]/"
676|]`| ]` 1 cursor to next lowercase mark
677|]/| ]/ 1 cursor to N next end of a C comment
678|]D| ]D list all #defines found in current and
679 included files matching the word under the
680 cursor, start searching at cursor position
681|]I| ]I list all lines found in current and
682 included files that contain the word under
683 the cursor, start searching at cursor
684 position
685|]P| ]P 2 same as "[p"
686|][| ][ 1 cursor N SECTIONS forward
687|]]| ]] 1 cursor N sections forward
688|]c| ]c 1 cursor N times forward to start of change
689|]d| ]d show first #define found in current and
690 included files matching the word under the
691 cursor, start searching at cursor position
692|]f| ]f same as "gf"
693|]i| ]i show first line found in current and
694 included files that contains the word under
695 the cursor, start searching at cursor
696 position
Bram Moolenaar071d4272004-06-13 20:20:40 +0000697|]m| ]m 1 cursor N times forward to end of member
698 function
Bram Moolenaardd2a3cd2007-05-05 17:10:09 +0000699|]p| ]p 2 like "p", but adjust indent to current line
700|]s| ]s 1 move to next misspelled word
Bram Moolenaar071d4272004-06-13 20:20:40 +0000701|]z| ]z 1 move to end of open fold
702|]}| ]} 1 cursor N times forward to unmatched '}'
Bram Moolenaarfa13eef2013-02-06 17:34:04 +0100703|]<MiddleMouse>| ]<MiddleMouse> 2 same as "]p"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000704
705==============================================================================
7062.4 Commands starting with 'g' *g*
707
708tag char note action in Normal mode ~
709------------------------------------------------------------------------------
710|g_CTRL-A| g CTRL-A only when compiled with MEM_PROFILE
711 defined: dump a memory profile
712|g_CTRL-G| g CTRL-G show information about current cursor
713 position
714|g_CTRL-H| g CTRL-H start Select block mode
715|g_CTRL-]| g CTRL-] |:tjump| to the tag under the cursor
716|g#| g# 1 like "#", but without using "\<" and "\>"
717|g$| g$ 1 when 'wrap' off go to rightmost character of
718 the current line that is on the screen;
719 when 'wrap' on go to the rightmost character
720 of the current screen line
721|g&| g& 2 repeat last ":s" on all lines
722|g'| g'{mark} 1 like |'| but without changing the jumplist
723|g`| g`{mark} 1 like |`| but without changing the jumplist
724|gstar| g* 1 like "*", but without using "\<" and "\>"
Bram Moolenaar2b8388b2015-02-28 13:11:45 +0100725|g+| g+ go to newer text state N times
726|g,| g, 1 go to N newer position in change list
727|g-| g- go to older text state N times
Bram Moolenaar071d4272004-06-13 20:20:40 +0000728|g0| g0 1 when 'wrap' off go to leftmost character of
729 the current line that is on the screen;
730 when 'wrap' on go to the leftmost character
731 of the current screen line
732|g8| g8 print hex value of bytes used in UTF-8
733 character under the cursor
Bram Moolenaar2b8388b2015-02-28 13:11:45 +0100734|g;| g; 1 go to N older position in change list
Bram Moolenaarcfc7d632005-07-28 22:28:16 +0000735|g<| g< display previous command output
Bram Moolenaar071d4272004-06-13 20:20:40 +0000736|g?| g? 2 Rot13 encoding operator
737|g?g?| g?? 2 Rot13 encode current line
738|g?g?| g?g? 2 Rot13 encode current line
739|gD| gD 1 go to definition of word under the cursor
740 in current file
741|gE| gE 1 go backwards to the end of the previous
742 WORD
743|gH| gH start Select line mode
744|gI| gI 2 like "I", but always start in column 1
745|gJ| gJ 2 join lines without inserting space
Bram Moolenaar6c35bea2012-07-25 17:49:10 +0200746|gN| gN 1,2 find the previous match with the last used
747 search pattern and Visually select it
Bram Moolenaar071d4272004-06-13 20:20:40 +0000748|gP| ["x]gP 2 put the text [from register x] before the
749 cursor N times, leave the cursor after it
Bram Moolenaar2a8a3ec2011-01-08 16:06:37 +0100750|gQ| gQ switch to "Ex" mode with Vim editing
Bram Moolenaar071d4272004-06-13 20:20:40 +0000751|gR| gR 2 enter Virtual Replace mode
Bram Moolenaar531da592013-05-06 05:58:55 +0200752|gT| gT go to the previous tab page
Bram Moolenaar071d4272004-06-13 20:20:40 +0000753|gU| gU{motion} 2 make Nmove text uppercase
754|gV| gV don't reselect the previous Visual area
755 when executing a mapping or menu in Select
756 mode
757|g]| g] :tselect on the tag under the cursor
758|g^| g^ 1 when 'wrap' off go to leftmost non-white
759 character of the current line that is on
760 the screen; when 'wrap' on go to the
761 leftmost non-white character of the current
762 screen line
Bram Moolenaar2b8388b2015-02-28 13:11:45 +0100763|g_| g_ 1 cursor to the last CHAR N - 1 lines lower
Bram Moolenaar071d4272004-06-13 20:20:40 +0000764|ga| ga print ascii value of character under the
765 cursor
766|gd| gd 1 go to definition of word under the cursor
767 in current function
768|ge| ge 1 go backwards to the end of the previous
769 word
770|gf| gf start editing the file whose name is under
771 the cursor
Bram Moolenaard1f56e62006-02-22 21:25:37 +0000772|gF| gF start editing the file whose name is under
773 the cursor and jump to the line number
774 following the filename.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000775|gg| gg 1 cursor to line N, default first line
776|gh| gh start Select mode
777|gi| gi 2 like "i", but first move to the |'^| mark
778|gj| gj 1 like "j", but when 'wrap' on go N screen
779 lines down
780|gk| gk 1 like "k", but when 'wrap' on go N screen
781 lines up
Bram Moolenaar641e2862012-07-25 15:06:34 +0200782|gn| gn 1,2 find the next match with the last used
783 search pattern and Visually select it
Bram Moolenaar071d4272004-06-13 20:20:40 +0000784|gm| gm 1 go to character at middle of the screenline
785|go| go 1 cursor to byte N in the buffer
786|gp| ["x]gp 2 put the text [from register x] after the
787 cursor N times, leave the cursor after it
788|gq| gq{motion} 2 format Nmove text
789|gr| gr{char} 2 virtual replace N chars with {char}
790|gs| gs go to sleep for N seconds (default 1)
Bram Moolenaar531da592013-05-06 05:58:55 +0200791|gt| gt go to the next tab page
Bram Moolenaar071d4272004-06-13 20:20:40 +0000792|gu| gu{motion} 2 make Nmove text lowercase
793|gv| gv reselect the previous Visual area
794|gw| gw{motion} 2 format Nmove text and keep cursor
Bram Moolenaardd2a3cd2007-05-05 17:10:09 +0000795|netrw-gx| gx execute application for file name under the
796 cursor (only with |netrw| plugin)
Bram Moolenaarc9b4b052006-04-30 18:54:39 +0000797|g@| g@{motion} call 'operatorfunc'
Bram Moolenaar071d4272004-06-13 20:20:40 +0000798|g~| g~{motion} 2 swap case for Nmove text
799|g<Down>| g<Down> 1 same as "gj"
800|g<End>| g<End> 1 same as "g$"
801|g<Home>| g<Home> 1 same as "g0"
802|g<LeftMouse>| g<LeftMouse> same as <C-LeftMouse>
803 g<MiddleMouse> same as <C-MiddleMouse>
804|g<RightMouse>| g<RightMouse> same as <C-RightMouse>
805|g<Up>| g<Up> 1 same as "gk"
806
807==============================================================================
8082.5 Commands starting with 'z' *z*
809
810tag char note action in Normal mode ~
811------------------------------------------------------------------------------
812|z<CR>| z<CR> redraw, cursor line to top of window,
813 cursor on first non-blank
814|zN<CR>| z{height}<CR> redraw, make window {height} lines high
815|z+| z+ cursor on line N (default line below
816 window), otherwise like "z<CR>"
817|z-| z- redraw, cursor line at bottom of window,
818 cursor on first non-blank
819|z.| z. redraw, cursor line to center of window,
820 cursor on first non-blank
Bram Moolenaar5c2f0502005-12-23 22:11:04 +0000821|z=| z= give spelling suggestions
Bram Moolenaar071d4272004-06-13 20:20:40 +0000822|zA| zA open a closed fold or close an open fold
823 recursively
824|zC| zC close folds recursively
825|zD| zD delete folds recursively
826|zE| zE eliminate all folds
827|zF| zF create a fold for N lines
Bram Moolenaar43abc522005-12-10 20:15:02 +0000828|zG| zG mark word as good spelled word
Bram Moolenaar56b45b92013-06-24 22:22:18 +0200829|zH| zH when 'wrap' off scroll half a screenwidth
830 to the right
831|zL| zL when 'wrap' off scroll half a screenwidth
832 to the left
Bram Moolenaar071d4272004-06-13 20:20:40 +0000833|zM| zM set 'foldlevel' to zero
834|zN| zN set 'foldenable'
835|zO| zO open folds recursively
836|zR| zR set 'foldlevel' to the deepest fold
Bram Moolenaar43abc522005-12-10 20:15:02 +0000837|zW| zW mark word as wrong (bad) spelled word
Bram Moolenaar071d4272004-06-13 20:20:40 +0000838|zX| zX re-apply 'foldlevel'
839|z^| z^ cursor on line N (default line above
840 window), otherwise like "z-"
841|za| za open a closed fold, close an open fold
842|zb| zb redraw, cursor line at bottom of window
843|zc| zc close a fold
844|zd| zd delete a fold
845|ze| ze when 'wrap' off scroll horizontally to
846 position the cursor at the end (right side)
847 of the screen
848|zf| zf{motion} create a fold for Nmove text
Bram Moolenaar43abc522005-12-10 20:15:02 +0000849|zg| zg mark word as good spelled word
Bram Moolenaar071d4272004-06-13 20:20:40 +0000850|zh| zh when 'wrap' off scroll screen N characters
851 to the right
852|zi| zi toggle 'foldenable'
853|zj| zj 1 move to the start of the next fold
854|zk| zk 1 move to the end of the previous fold
855|zl| zl when 'wrap' off scroll screen N characters
856 to the left
857|zm| zm subtract one from 'foldlevel'
858|zn| zn reset 'foldenable'
859|zo| zo open fold
860|zr| zr add one to 'foldlevel'
861|zs| zs when 'wrap' off scroll horizontally to
862 position the cursor at the start (left
863 side) of the screen
864|zt| zt redraw, cursor line at top of window
865|zv| zv open enough folds to view the cursor line
Bram Moolenaar43abc522005-12-10 20:15:02 +0000866|zw| zw mark word as wrong (bad) spelled word
Bram Moolenaar071d4272004-06-13 20:20:40 +0000867|zx| zx re-apply 'foldlevel' and do "zv"
868|zz| zz redraw, cursor line at center of window
869|z<Left>| z<Left> same as "zh"
870|z<Right>| z<Right> same as "zl"
871
872==============================================================================
Bram Moolenaarf6b40102019-02-22 15:24:03 +01008732.6 Operator-pending mode *operator-pending-index*
874
875These can be used after an operator, but before a {motion} has been entered.
876
Bram Moolenaar26967612019-03-17 17:13:16 +0100877tag char action in Operator-pending mode ~
Bram Moolenaarf6b40102019-02-22 15:24:03 +0100878-----------------------------------------------------------------------
879|o_v| v force operator to work characterwise
880|o_V| V force operator to work linewise
881|o_CTRL-V| CTRL-V force operator to work blockwise
882
883==============================================================================
Bram Moolenaar071d4272004-06-13 20:20:40 +00008843. Visual mode *visual-index*
885
Bram Moolenaar402d2fe2005-04-15 21:00:38 +0000886Most commands in Visual mode are the same as in Normal mode. The ones listed
Bram Moolenaar071d4272004-06-13 20:20:40 +0000887here are those that are different.
888
889tag command note action in Visual mode ~
890------------------------------------------------------------------------------
891|v_CTRL-\_CTRL-N| CTRL-\ CTRL-N stop Visual mode
892|v_CTRL-\_CTRL-G| CTRL-\ CTRL-G go to mode specified with 'insertmode'
Bram Moolenaaraa3b15d2016-04-21 08:53:19 +0200893|v_CTRL-A| CTRL-A 2 add N to number in highlighted text
Bram Moolenaar81695252004-12-29 20:58:21 +0000894|v_CTRL-C| CTRL-C stop Visual mode
Bram Moolenaar071d4272004-06-13 20:20:40 +0000895|v_CTRL-G| CTRL-G toggle between Visual mode and Select mode
896|v_<BS>| <BS> 2 Select mode: delete highlighted area
897|v_CTRL-H| CTRL-H 2 same as <BS>
898|v_CTRL-O| CTRL-O switch from Select to Visual mode for one
899 command
900|v_CTRL-V| CTRL-V make Visual mode blockwise or stop Visual
901 mode
Bram Moolenaaraa3b15d2016-04-21 08:53:19 +0200902|v_CTRL-X| CTRL-X 2 subtract N from number in highlighted text
Bram Moolenaar81695252004-12-29 20:58:21 +0000903|v_<Esc>| <Esc> stop Visual mode
Bram Moolenaar071d4272004-06-13 20:20:40 +0000904|v_CTRL-]| CTRL-] jump to highlighted tag
905|v_!| !{filter} 2 filter the highlighted lines through the
906 external command {filter}
907|v_:| : start a command-line with the highlighted
908 lines as a range
909|v_<| < 2 shift the highlighted lines one
910 'shiftwidth' left
911|v_=| = 2 filter the highlighted lines through the
912 external program given with the 'equalprg'
913 option
914|v_>| > 2 shift the highlighted lines one
915 'shiftwidth' right
916|v_b_A| A 2 block mode: append same text in all lines,
917 after the highlighted area
918|v_C| C 2 delete the highlighted lines and start
919 insert
920|v_D| D 2 delete the highlighted lines
921|v_b_I| I 2 block mode: insert same text in all lines,
922 before the highlighted area
923|v_J| J 2 join the highlighted lines
924|v_K| K run 'keywordprg' on the highlighted area
925|v_O| O Move horizontally to other corner of area.
926 Q does not start Ex mode
927|v_R| R 2 delete the highlighted lines and start
928 insert
929|v_S| S 2 delete the highlighted lines and start
930 insert
931|v_U| U 2 make highlighted area uppercase
932|v_V| V make Visual mode linewise or stop Visual
933 mode
934|v_X| X 2 delete the highlighted lines
935|v_Y| Y yank the highlighted lines
Bram Moolenaarf2330482008-06-24 20:19:36 +0000936|v_aquote| a" extend highlighted area with a double
937 quoted string
938|v_a'| a' extend highlighted area with a single
939 quoted string
Bram Moolenaar071d4272004-06-13 20:20:40 +0000940|v_a(| a( same as ab
941|v_a)| a) same as ab
942|v_a<| a< extend highlighted area with a <> block
943|v_a>| a> same as a<
944|v_aB| aB extend highlighted area with a {} block
945|v_aW| aW extend highlighted area with "a WORD"
946|v_a[| a[ extend highlighted area with a [] block
947|v_a]| a] same as a[
Bram Moolenaarf2330482008-06-24 20:19:36 +0000948|v_a`| a` extend highlighted area with a backtick
949 quoted string
Bram Moolenaar071d4272004-06-13 20:20:40 +0000950|v_ab| ab extend highlighted area with a () block
951|v_ap| ap extend highlighted area with a paragraph
952|v_as| as extend highlighted area with a sentence
Bram Moolenaarf2330482008-06-24 20:19:36 +0000953|v_at| at extend highlighted area with a tag block
Bram Moolenaar071d4272004-06-13 20:20:40 +0000954|v_aw| aw extend highlighted area with "a word"
955|v_a{| a{ same as aB
956|v_a}| a} same as aB
957|v_c| c 2 delete highlighted area and start insert
958|v_d| d 2 delete highlighted area
Bram Moolenaaraa3b15d2016-04-21 08:53:19 +0200959|v_g_CTRL-A| g CTRL-A 2 add N to number in highlighted text
960|v_g_CTRL-X| g CTRL-X 2 subtract N from number in highlighted text
Bram Moolenaar071d4272004-06-13 20:20:40 +0000961|v_gJ| gJ 2 join the highlighted lines without
962 inserting spaces
963|v_gq| gq 2 format the highlighted lines
964|v_gv| gv exchange current and previous highlighted
965 area
Bram Moolenaarf2330482008-06-24 20:19:36 +0000966|v_iquote| i" extend highlighted area with a double
967 quoted string (without quotes)
968|v_i'| i' extend highlighted area with a single
969 quoted string (without quotes)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000970|v_i(| i( same as ib
971|v_i)| i) same as ib
972|v_i<| i< extend highlighted area with inner <> block
973|v_i>| i> same as i<
974|v_iB| iB extend highlighted area with inner {} block
975|v_iW| iW extend highlighted area with "inner WORD"
976|v_i[| i[ extend highlighted area with inner [] block
977|v_i]| i] same as i[
Bram Moolenaarf2330482008-06-24 20:19:36 +0000978|v_i`| i` extend highlighted area with a backtick
979 quoted string (without the backticks)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000980|v_ib| ib extend highlighted area with inner () block
981|v_ip| ip extend highlighted area with inner paragraph
982|v_is| is extend highlighted area with inner sentence
Bram Moolenaarf2330482008-06-24 20:19:36 +0000983|v_it| it extend highlighted area with inner tag block
Bram Moolenaar071d4272004-06-13 20:20:40 +0000984|v_iw| iw extend highlighted area with "inner word"
985|v_i{| i{ same as iB
986|v_i}| i} same as iB
987|v_o| o move cursor to other corner of area
Bram Moolenaar7dda86f2018-04-20 22:36:41 +0200988|v_r| r 2 replace highlighted area with a character
Bram Moolenaar071d4272004-06-13 20:20:40 +0000989|v_s| s 2 delete highlighted area and start insert
990|v_u| u 2 make highlighted area lowercase
991|v_v| v make Visual mode characterwise or stop
992 Visual mode
993|v_x| x 2 delete the highlighted area
994|v_y| y yank the highlighted area
995|v_~| ~ 2 swap case for the highlighted area
996
997==============================================================================
9984. Command-line editing *ex-edit-index*
999
1000Get to the command-line with the ':', '!', '/' or '?' commands.
1001Normal characters are inserted at the current cursor position.
1002"Completion" below refers to context-sensitive completion. It will complete
1003file names, tags, commands etc. as appropriate.
1004
Bram Moolenaar26967612019-03-17 17:13:16 +01001005tag command action in Command-line editing mode ~
Bram Moolenaar2a8a3ec2011-01-08 16:06:37 +01001006------------------------------------------------------------------------------
Bram Moolenaar071d4272004-06-13 20:20:40 +00001007 CTRL-@ not used
1008|c_CTRL-A| CTRL-A do completion on the pattern in front of the
1009 cursor and insert all matches
1010|c_CTRL-B| CTRL-B cursor to begin of command-line
Bram Moolenaar2a8a3ec2011-01-08 16:06:37 +01001011|c_CTRL-C| CTRL-C same as <Esc>
Bram Moolenaar071d4272004-06-13 20:20:40 +00001012|c_CTRL-D| CTRL-D list completions that match the pattern in
1013 front of the cursor
1014|c_CTRL-E| CTRL-E cursor to end of command-line
1015|'cedit'| CTRL-F default value for 'cedit': opens the
1016 command-line window; otherwise not used
Bram Moolenaar818078d2016-08-27 21:58:42 +02001017|c_CTRL-G| CTRL-G next match when 'incsearch' is active
Bram Moolenaar071d4272004-06-13 20:20:40 +00001018|c_<BS>| <BS> delete the character in front of the cursor
1019|c_digraph| {char1} <BS> {char2}
1020 enter digraph when 'digraph' is on
1021|c_CTRL-H| CTRL-H same as <BS>
1022|c_<Tab>| <Tab> if 'wildchar' is <Tab>: Do completion on
1023 the pattern in front of the cursor
1024|c_<S-Tab>| <S-Tab> same as CTRL-P
1025|c_wildchar| 'wildchar' Do completion on the pattern in front of the
1026 cursor (default: <Tab>)
1027|c_CTRL-I| CTRL-I same as <Tab>
1028|c_<NL>| <NL> same as <CR>
1029|c_CTRL-J| CTRL-J same as <CR>
1030|c_CTRL-K| CTRL-K {char1} {char2}
1031 enter digraph
1032|c_CTRL-L| CTRL-L do completion on the pattern in front of the
1033 cursor and insert the longest common part
1034|c_<CR>| <CR> execute entered command
Bram Moolenaar2ec618c2016-10-01 14:47:05 +02001035|c_CTRL-M| CTRL-M same as <CR>
Bram Moolenaar071d4272004-06-13 20:20:40 +00001036|c_CTRL-N| CTRL-N after using 'wildchar' with multiple matches:
Bram Moolenaar214641f2017-03-05 17:04:09 +01001037 go to next match, otherwise: recall older
1038 command-line from history.
Bram Moolenaar071d4272004-06-13 20:20:40 +00001039 CTRL-O not used
1040|c_CTRL-P| CTRL-P after using 'wildchar' with multiple matches:
Bram Moolenaar214641f2017-03-05 17:04:09 +01001041 go to previous match, otherwise: recall older
1042 command-line from history.
Bram Moolenaar071d4272004-06-13 20:20:40 +00001043|c_CTRL-Q| CTRL-Q same as CTRL-V, unless it's used for terminal
1044 control flow
Bram Moolenaar63b74a82019-03-24 15:09:13 +01001045|c_CTRL-R| CTRL-R {regname}
Bram Moolenaar071d4272004-06-13 20:20:40 +00001046 insert the contents of a register or object
1047 under the cursor as if typed
Bram Moolenaar63b74a82019-03-24 15:09:13 +01001048|c_CTRL-R_CTRL-R| CTRL-R CTRL-R {regname}
1049|c_CTRL-R_CTRL-O| CTRL-R CTRL-O {regname}
Bram Moolenaar071d4272004-06-13 20:20:40 +00001050 insert the contents of a register or object
1051 under the cursor literally
1052 CTRL-S (used for terminal control flow)
Bram Moolenaar818078d2016-08-27 21:58:42 +02001053|c_CTRL-T| CTRL-T previous match when 'incsearch' is active
Bram Moolenaar071d4272004-06-13 20:20:40 +00001054|c_CTRL-U| CTRL-U remove all characters
1055|c_CTRL-V| CTRL-V insert next non-digit literally, insert three
1056 digit decimal number as a single byte.
1057|c_CTRL-W| CTRL-W delete the word in front of the cursor
1058 CTRL-X not used (reserved for completion)
1059 CTRL-Y copy (yank) modeless selection
1060 CTRL-Z not used (reserved for suspend)
1061|c_<Esc>| <Esc> abandon command-line without executing it
Bram Moolenaar2ec618c2016-10-01 14:47:05 +02001062|c_CTRL-[| CTRL-[ same as <Esc>
Bram Moolenaarfa13eef2013-02-06 17:34:04 +01001063|c_CTRL-\_CTRL-N| CTRL-\ CTRL-N go to Normal mode, abandon command-line
1064|c_CTRL-\_CTRL-G| CTRL-\ CTRL-G go to mode specified with 'insertmode',
Bram Moolenaar071d4272004-06-13 20:20:40 +00001065 abandon command-line
1066 CTRL-\ a - d reserved for extensions
1067|c_CTRL-\_e| CTRL-\ e {expr} replace the command line with the result of
1068 {expr}
1069 CTRL-\ f - z reserved for extensions
1070 CTRL-\ others not used
Bram Moolenaardd2a3cd2007-05-05 17:10:09 +00001071|c_CTRL-]| CTRL-] trigger abbreviation
Bram Moolenaar071d4272004-06-13 20:20:40 +00001072|c_CTRL-^| CTRL-^ toggle use of |:lmap| mappings
1073|c_CTRL-_| CTRL-_ when 'allowrevins' set: change language
1074 (Hebrew, Farsi)
1075|c_<Del>| <Del> delete the character under the cursor
1076
1077|c_<Left>| <Left> cursor left
1078|c_<S-Left>| <S-Left> cursor one word left
1079|c_<C-Left>| <C-Left> cursor one word left
1080|c_<Right>| <Right> cursor right
1081|c_<S-Right>| <S-Right> cursor one word right
1082|c_<C-Right>| <C-Right> cursor one word right
1083|c_<Up>| <Up> recall previous command-line from history that
1084 matches pattern in front of the cursor
1085|c_<S-Up>| <S-Up> recall previous command-line from history
1086|c_<Down>| <Down> recall next command-line from history that
1087 matches pattern in front of the cursor
1088|c_<S-Down>| <S-Down> recall next command-line from history
1089|c_<Home>| <Home> cursor to start of command-line
1090|c_<End>| <End> cursor to end of command-line
1091|c_<PageDown>| <PageDown> same as <S-Down>
1092|c_<PageUp>| <PageUp> same as <S-Up>
1093|c_<Insert>| <Insert> toggle insert/overstrike mode
1094|c_<LeftMouse>| <LeftMouse> cursor at mouse click
1095
Bram Moolenaarf6b40102019-02-22 15:24:03 +01001096==============================================================================
10975. Terminal-Job mode *terminal-job-index*
1098
1099Most Normal mode commands except for window commands (|CTRL-W|) do not work in
1100a terminal window. Switch to Terminal-Normal mode to use them.
1101This assumes 'termwinkey' is not set.
1102
Bram Moolenaar26967612019-03-17 17:13:16 +01001103tag char action in Terminal-Job mode ~
Bram Moolenaarf6b40102019-02-22 15:24:03 +01001104-----------------------------------------------------------------------
1105|t_CTRL-\_CTRL-N| CTRL-\ CTRL-N switch to Terminal-Normal mode
Bram Moolenaar26967612019-03-17 17:13:16 +01001106|t_CTRL-W_N| CTRL-W N switch to Terminal-Normal mode
1107|t_CTRL-W_:| CTRL-W : enter an Ex command
1108|t_CTRL-W_.| CTRL-W . type CTRL-W in the terminal
Bram Moolenaarf6b40102019-02-22 15:24:03 +01001109 CTRL-W CTRL-\ send a CTRL-\ to the job in the terminal
Bram Moolenaar911ead12019-04-21 00:03:35 +02001110|t_CTRL-W_quote| CTRL-W " {0-9a-z"%#*:=}
Bram Moolenaarf6b40102019-02-22 15:24:03 +01001111 paste register in the terminal
1112|t_CTRL-W_CTRL-C| CTRL-W CTRL-C forcefully ends the job
Bram Moolenaar911ead12019-04-21 00:03:35 +02001113|t_CTRL-W_CTRL-W| CTRL-W CTRL-W move focus to the next window
Bram Moolenaar26967612019-03-17 17:13:16 +01001114|t_CTRL-W_gt| CTRL-W gt go to next tabpage, same as `gt`
1115|t_CTRL-W_gT| CTRL-W gT go to previous tabpage, same as `gT`
Bram Moolenaarf6b40102019-02-22 15:24:03 +01001116
Bram Moolenaaracb4f222016-01-10 15:59:26 +01001117You found it, Arthur! *holy-grail* *:smile*
Bram Moolenaar071d4272004-06-13 20:20:40 +00001118
1119==============================================================================
Bram Moolenaarf6b40102019-02-22 15:24:03 +010011206. EX commands *ex-cmd-index* *:index*
Bram Moolenaar071d4272004-06-13 20:20:40 +00001121
1122This is a brief but complete listing of all the ":" commands, without
1123mentioning any arguments. The optional part of the command name is inside [].
1124The commands are sorted on the non-optional part of their name.
1125
Bram Moolenaar26967612019-03-17 17:13:16 +01001126tag command action ~
Bram Moolenaar2a8a3ec2011-01-08 16:06:37 +01001127------------------------------------------------------------------------------
Bram Moolenaar071d4272004-06-13 20:20:40 +00001128|:!| :! filter lines or execute an external command
1129|:!!| :!! repeat last ":!" command
1130|:#| :# same as ":number"
1131|:&| :& repeat last ":substitute"
1132|:star| :* execute contents of a register
1133|:<| :< shift lines one 'shiftwidth' left
1134|:=| := print the cursor line number
1135|:>| :> shift lines one 'shiftwidth' right
1136|:@| :@ execute contents of a register
1137|:@@| :@@ repeat the previous ":@"
1138|:Next| :N[ext] go to previous file in the argument list
1139|:Print| :P[rint] print lines
1140|:X| :X ask for encryption key
1141|:append| :a[ppend] append text
1142|:abbreviate| :ab[breviate] enter abbreviation
1143|:abclear| :abc[lear] remove all abbreviations
1144|:aboveleft| :abo[veleft] make split window appear left or above
1145|:all| :al[l] open a window for each file in the argument
1146 list
1147|:amenu| :am[enu] enter new menu item for all modes
1148|:anoremenu| :an[oremenu] enter a new menu for all modes that will not
1149 be remapped
1150|:args| :ar[gs] print the argument list
1151|:argadd| :arga[dd] add items to the argument list
1152|:argdelete| :argd[elete] delete items from the argument list
1153|:argedit| :arge[dit] add item to the argument list and edit it
1154|:argdo| :argdo do a command on all items in the argument list
1155|:argglobal| :argg[lobal] define the global argument list
1156|:arglocal| :argl[ocal] define a local argument list
1157|:argument| :argu[ment] go to specific file in the argument list
1158|:ascii| :as[cii] print ascii value of character under the cursor
1159|:autocmd| :au[tocmd] enter or show autocommands
1160|:augroup| :aug[roup] select the autocommand group to use
1161|:aunmenu| :aun[menu] remove menu for all modes
1162|:buffer| :b[uffer] go to specific buffer in the buffer list
1163|:bNext| :bN[ext] go to previous buffer in the buffer list
1164|:ball| :ba[ll] open a window for each buffer in the buffer list
1165|:badd| :bad[d] add buffer to the buffer list
1166|:bdelete| :bd[elete] remove a buffer from the buffer list
1167|:behave| :be[have] set mouse and selection behavior
1168|:belowright| :bel[owright] make split window appear right or below
1169|:bfirst| :bf[irst] go to first buffer in the buffer list
1170|:blast| :bl[ast] go to last buffer in the buffer list
1171|:bmodified| :bm[odified] go to next buffer in the buffer list that has
1172 been modified
1173|:bnext| :bn[ext] go to next buffer in the buffer list
1174|:botright| :bo[tright] make split window appear at bottom or far right
1175|:bprevious| :bp[revious] go to previous buffer in the buffer list
1176|:brewind| :br[ewind] go to first buffer in the buffer list
1177|:break| :brea[k] break out of while loop
1178|:breakadd| :breaka[dd] add a debugger breakpoint
1179|:breakdel| :breakd[el] delete a debugger breakpoint
1180|:breaklist| :breakl[ist] list debugger breakpoints
1181|:browse| :bro[wse] use file selection dialog
1182|:bufdo| :bufdo execute command in each listed buffer
1183|:buffers| :buffers list all files in the buffer list
1184|:bunload| :bun[load] unload a specific buffer
1185|:bwipeout| :bw[ipeout] really delete a buffer
1186|:change| :c[hange] replace a line or series of lines
1187|:cNext| :cN[ext] go to previous error
1188|:cNfile| :cNf[ile] go to last error in previous file
1189|:cabbrev| :ca[bbrev] like ":abbreviate" but for Command-line mode
1190|:cabclear| :cabc[lear] clear all abbreviations for Command-line mode
Bram Moolenaara6878372014-03-22 21:02:50 +01001191|:caddbuffer| :cad[dbuffer] add errors from buffer
1192|:caddexpr| :cadde[xpr] add errors from expr
Bram Moolenaar4770d092006-01-12 23:22:24 +00001193|:caddfile| :caddf[ile] add error message to current quickfix list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001194|:call| :cal[l] call a function
1195|:catch| :cat[ch] part of a :try command
Bram Moolenaar537ef082016-07-09 17:56:19 +02001196|:cbottom| :cbo[ttom] scroll to the bottom of the quickfix window
Bram Moolenaar86b68352004-12-27 21:59:20 +00001197|:cbuffer| :cb[uffer] parse error messages and jump to first error
Bram Moolenaar071d4272004-06-13 20:20:40 +00001198|:cc| :cc go to specific error
1199|:cclose| :ccl[ose] close quickfix window
1200|:cd| :cd change directory
Bram Moolenaaraa23b372015-09-08 18:46:31 +02001201|:cdo| :cdo execute command in each valid error list entry
1202|:cfdo| :cfd[o] execute command in each file in error list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001203|:center| :ce[nter] format lines at the center
Bram Moolenaar87e25fd2005-07-27 21:13:01 +00001204|:cexpr| :cex[pr] read errors from expr and jump to first
Bram Moolenaar071d4272004-06-13 20:20:40 +00001205|:cfile| :cf[ile] read file with error messages and jump to first
1206|:cfirst| :cfir[st] go to the specified error, default first one
Bram Moolenaarc01140a2006-03-24 22:21:52 +00001207|:cgetbuffer| :cgetb[uffer] get errors from buffer
Bram Moolenaar8ab561d2006-03-23 22:44:10 +00001208|:cgetexpr| :cgete[xpr] get errors from expr
Bram Moolenaar071d4272004-06-13 20:20:40 +00001209|:cgetfile| :cg[etfile] read file with error messages
Bram Moolenaar34700a62013-03-07 13:20:54 +01001210|:changes| :changes print the change list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001211|:chdir| :chd[ir] change directory
1212|:checkpath| :che[ckpath] list included files
1213|:checktime| :checkt[ime] check timestamp of loaded buffers
Bram Moolenaar42ebd062016-07-17 13:35:14 +02001214|:chistory| :chi[story] list the error lists
Bram Moolenaar071d4272004-06-13 20:20:40 +00001215|:clast| :cla[st] go to the specified error, default last one
Bram Moolenaarc95a3022016-06-12 23:01:46 +02001216|:clearjumps| :cle[arjumps] clear the jump list
1217|:clist| :cl[ist] list all errors
Bram Moolenaar071d4272004-06-13 20:20:40 +00001218|:close| :clo[se] close current window
1219|:cmap| :cm[ap] like ":map" but for Command-line mode
1220|:cmapclear| :cmapc[lear] clear all mappings for Command-line mode
1221|:cmenu| :cme[nu] add menu for Command-line mode
1222|:cnext| :cn[ext] go to next error
1223|:cnewer| :cnew[er] go to newer error list
1224|:cnfile| :cnf[ile] go to first error in next file
1225|:cnoremap| :cno[remap] like ":noremap" but for Command-line mode
1226|:cnoreabbrev| :cnorea[bbrev] like ":noreabbrev" but for Command-line mode
1227|:cnoremenu| :cnoreme[nu] like ":noremenu" but for Command-line mode
1228|:copy| :co[py] copy lines
1229|:colder| :col[der] go to older error list
1230|:colorscheme| :colo[rscheme] load a specific color scheme
1231|:command| :com[mand] create user-defined command
1232|:comclear| :comc[lear] clear all user-defined commands
1233|:compiler| :comp[iler] do settings for a specific compiler
1234|:continue| :con[tinue] go back to :while
1235|:confirm| :conf[irm] prompt user when confirmation required
1236|:copen| :cope[n] open quickfix window
1237|:cprevious| :cp[revious] go to previous error
1238|:cpfile| :cpf[ile] go to last error in previous file
1239|:cquit| :cq[uit] quit Vim with an error code
1240|:crewind| :cr[ewind] go to the specified error, default first one
Bram Moolenaaracb4f222016-01-10 15:59:26 +01001241|:cscope| :cs[cope] execute cscope command
Bram Moolenaar071d4272004-06-13 20:20:40 +00001242|:cstag| :cst[ag] use cscope to jump to a tag
1243|:cunmap| :cu[nmap] like ":unmap" but for Command-line mode
1244|:cunabbrev| :cuna[bbrev] like ":unabbrev" but for Command-line mode
1245|:cunmenu| :cunme[nu] remove menu for Command-line mode
1246|:cwindow| :cw[indow] open or close quickfix window
1247|:delete| :d[elete] delete lines
Bram Moolenaarc0197e22004-09-13 20:26:32 +00001248|:delmarks| :delm[arks] delete marks
Bram Moolenaar071d4272004-06-13 20:20:40 +00001249|:debug| :deb[ug] run a command in debugging mode
1250|:debuggreedy| :debugg[reedy] read debug mode commands from normal input
1251|:delcommand| :delc[ommand] delete user-defined command
1252|:delfunction| :delf[unction] delete a user function
1253|:diffupdate| :dif[fupdate] update 'diff' buffers
1254|:diffget| :diffg[et] remove differences in current buffer
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00001255|:diffoff| :diffo[ff] switch off diff mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001256|:diffpatch| :diffp[atch] apply a patch and show differences
1257|:diffput| :diffpu[t] remove differences in other buffer
1258|:diffsplit| :diffs[plit] show differences with another file
1259|:diffthis| :diffthis make current window a diff window
1260|:digraphs| :dig[raphs] show or enter digraphs
1261|:display| :di[splay] display registers
1262|:djump| :dj[ump] jump to #define
Bram Moolenaarb1332082013-10-06 14:22:40 +02001263|:dl| :dl short for |:delete| with the 'l' flag
Bram Moolenaardc1f1642016-08-16 18:33:43 +02001264|:del| :del[ete]l short for |:delete| with the 'l' flag
Bram Moolenaar9ba7e172013-07-17 22:37:26 +02001265|:dlist| :dli[st] list #defines
Bram Moolenaar071d4272004-06-13 20:20:40 +00001266|:doautocmd| :do[autocmd] apply autocommands to current buffer
1267|:doautoall| :doautoa[ll] apply autocommands for all loaded buffers
Bram Moolenaarb1332082013-10-06 14:22:40 +02001268|:dp| :d[elete]p short for |:delete| with the 'p' flag
Bram Moolenaar071d4272004-06-13 20:20:40 +00001269|:drop| :dr[op] jump to window editing file or edit file in
1270 current window
1271|:dsearch| :ds[earch] list one #define
1272|:dsplit| :dsp[lit] split window and jump to #define
1273|:edit| :e[dit] edit a file
Bram Moolenaard3667a22006-03-16 21:35:52 +00001274|:earlier| :ea[rlier] go to older change, undo
Bram Moolenaar071d4272004-06-13 20:20:40 +00001275|:echo| :ec[ho] echoes the result of expressions
1276|:echoerr| :echoe[rr] like :echo, show like an error and use history
1277|:echohl| :echoh[l] set highlighting for echo commands
1278|:echomsg| :echom[sg] same as :echo, put message in history
1279|:echon| :echon same as :echo, but without <EOL>
1280|:else| :el[se] part of an :if command
1281|:elseif| :elsei[f] part of an :if command
1282|:emenu| :em[enu] execute a menu by name
1283|:endif| :en[dif] end previous :if
Bram Moolenaar17568792005-07-06 22:28:03 +00001284|:endfor| :endfo[r] end previous :for
Bram Moolenaar071d4272004-06-13 20:20:40 +00001285|:endfunction| :endf[unction] end of a user function
1286|:endtry| :endt[ry] end previous :try
1287|:endwhile| :endw[hile] end previous :while
1288|:enew| :ene[w] edit a new, unnamed buffer
1289|:ex| :ex same as ":edit"
1290|:execute| :exe[cute] execute result of expressions
1291|:exit| :exi[t] same as ":xit"
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001292|:exusage| :exu[sage] overview of Ex commands
Bram Moolenaar071d4272004-06-13 20:20:40 +00001293|:file| :f[ile] show or set the current file name
1294|:files| :files list all files in the buffer list
1295|:filetype| :filet[ype] switch file type detection on/off
Bram Moolenaare4a3bcf2016-08-26 19:52:37 +02001296|:filter| :filt[er] filter output of following command
Bram Moolenaar071d4272004-06-13 20:20:40 +00001297|:find| :fin[d] find file in 'path' and edit it
1298|:finally| :fina[lly] part of a :try command
1299|:finish| :fini[sh] quit sourcing a Vim script
1300|:first| :fir[st] go to the first file in the argument list
1301|:fixdel| :fix[del] set key code of <Del>
1302|:fold| :fo[ld] create a fold
1303|:foldclose| :foldc[lose] close folds
1304|:folddoopen| :foldd[oopen] execute command on lines not in a closed fold
1305|:folddoclosed| :folddoc[losed] execute command on lines in a closed fold
1306|:foldopen| :foldo[pen] open folds
Bram Moolenaar17568792005-07-06 22:28:03 +00001307|:for| :for for loop
Bram Moolenaar071d4272004-06-13 20:20:40 +00001308|:function| :fu[nction] define a user function
1309|:global| :g[lobal] execute commands for matching lines
1310|:goto| :go[to] go to byte in the buffer
1311|:grep| :gr[ep] run 'grepprg' and jump to first match
Bram Moolenaar17568792005-07-06 22:28:03 +00001312|:grepadd| :grepa[dd] like :grep, but append to current list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001313|:gui| :gu[i] start the GUI
1314|:gvim| :gv[im] start the GUI
1315|:hardcopy| :ha[rdcopy] send text to the printer
1316|:help| :h[elp] open a help window
Bram Moolenaar5bfa2ed2014-09-19 19:39:34 +02001317|:helpclose| :helpc[lose] close one help window
Bram Moolenaar071d4272004-06-13 20:20:40 +00001318|:helpfind| :helpf[ind] dialog to open a help window
1319|:helpgrep| :helpg[rep] like ":grep" but searches help files
1320|:helptags| :helpt[ags] generate help tags for a directory
1321|:highlight| :hi[ghlight] specify highlighting methods
1322|:hide| :hid[e] hide current buffer for a command
1323|:history| :his[tory] print a history list
1324|:insert| :i[nsert] insert text
1325|:iabbrev| :ia[bbrev] like ":abbrev" but for Insert mode
1326|:iabclear| :iabc[lear] like ":abclear" but for Insert mode
1327|:if| :if execute commands when condition met
1328|:ijump| :ij[ump] jump to definition of identifier
1329|:ilist| :il[ist] list lines where identifier matches
1330|:imap| :im[ap] like ":map" but for Insert mode
1331|:imapclear| :imapc[lear] like ":mapclear" but for Insert mode
1332|:imenu| :ime[nu] add menu for Insert mode
1333|:inoremap| :ino[remap] like ":noremap" but for Insert mode
1334|:inoreabbrev| :inorea[bbrev] like ":noreabbrev" but for Insert mode
1335|:inoremenu| :inoreme[nu] like ":noremenu" but for Insert mode
1336|:intro| :int[ro] print the introductory message
1337|:isearch| :is[earch] list one line where identifier matches
1338|:isplit| :isp[lit] split window and jump to definition of
1339 identifier
1340|:iunmap| :iu[nmap] like ":unmap" but for Insert mode
1341|:iunabbrev| :iuna[bbrev] like ":unabbrev" but for Insert mode
1342|:iunmenu| :iunme[nu] remove menu for Insert mode
1343|:join| :j[oin] join lines
1344|:jumps| :ju[mps] print the jump list
1345|:k| :k set a mark
Bram Moolenaar17568792005-07-06 22:28:03 +00001346|:keepalt| :keepa[lt] following command keeps the alternate file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001347|:keepmarks| :kee[pmarks] following command keeps marks where they are
Bram Moolenaar5302d9e2011-09-14 17:55:08 +02001348|:keepjumps| :keepj[umps] following command keeps jumplist and marks
Bram Moolenaar4b60a6c2013-11-14 05:48:46 +01001349|:keeppatterns| :keepp[atterns] following command keeps search pattern history
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001350|:lNext| :lN[ext] go to previous entry in location list
1351|:lNfile| :lNf[ile] go to last entry in previous file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001352|:list| :l[ist] print lines
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001353|:laddexpr| :lad[dexpr] add locations from expr
Bram Moolenaara37420f2006-02-04 22:37:47 +00001354|:laddbuffer| :laddb[uffer] add locations from buffer
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001355|:laddfile| :laddf[ile] add locations to current location list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001356|:last| :la[st] go to the last file in the argument list
1357|:language| :lan[guage] set the language (locale)
Bram Moolenaard3667a22006-03-16 21:35:52 +00001358|:later| :lat[er] go to newer change, redo
Bram Moolenaar537ef082016-07-09 17:56:19 +02001359|:lbottom| :lbo[ttom] scroll to the bottom of the location window
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001360|:lbuffer| :lb[uffer] parse locations and jump to first location
Bram Moolenaar071d4272004-06-13 20:20:40 +00001361|:lcd| :lc[d] change directory locally
1362|:lchdir| :lch[dir] change directory locally
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001363|:lclose| :lcl[ose] close location window
Bram Moolenaaracb4f222016-01-10 15:59:26 +01001364|:lcscope| :lcs[cope] like ":cscope" but uses location list
Bram Moolenaaraa23b372015-09-08 18:46:31 +02001365|:ldo| :ld[o] execute command in valid location list entries
1366|:lfdo| :lfd[o] execute command in each file in location list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001367|:left| :le[ft] left align lines
1368|:leftabove| :lefta[bove] make split window appear left or above
1369|:let| :let assign a value to a variable or option
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001370|:lexpr| :lex[pr] read locations from expr and jump to first
1371|:lfile| :lf[ile] read file with locations and jump to first
1372|:lfirst| :lfir[st] go to the specified location, default first one
Bram Moolenaarc01140a2006-03-24 22:21:52 +00001373|:lgetbuffer| :lgetb[uffer] get locations from buffer
Bram Moolenaar8ab561d2006-03-23 22:44:10 +00001374|:lgetexpr| :lgete[xpr] get locations from expr
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001375|:lgetfile| :lg[etfile] read file with locations
Bram Moolenaara37420f2006-02-04 22:37:47 +00001376|:lgrep| :lgr[ep] run 'grepprg' and jump to first match
1377|:lgrepadd| :lgrepa[dd] like :grep, but append to current list
Bram Moolenaar8b6144b2006-02-08 09:20:24 +00001378|:lhelpgrep| :lh[elpgrep] like ":helpgrep" but uses location list
Bram Moolenaar42ebd062016-07-17 13:35:14 +02001379|:lhistory| :lhi[story] list the location lists
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001380|:ll| :ll go to specific location
1381|:llast| :lla[st] go to the specified location, default last one
1382|:llist| :lli[st] list all locations
Bram Moolenaara37420f2006-02-04 22:37:47 +00001383|:lmake| :lmak[e] execute external command 'makeprg' and parse
1384 error messages
Bram Moolenaar071d4272004-06-13 20:20:40 +00001385|:lmap| :lm[ap] like ":map!" but includes Lang-Arg mode
1386|:lmapclear| :lmapc[lear] like ":mapclear!" but includes Lang-Arg mode
Bram Moolenaar6ab5b842006-01-26 22:16:34 +00001387|:lnext| :lne[xt] go to next location
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001388|:lnewer| :lnew[er] go to newer location list
1389|:lnfile| :lnf[ile] go to first location in next file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001390|:lnoremap| :ln[oremap] like ":noremap!" but includes Lang-Arg mode
1391|:loadkeymap| :loadk[eymap] load the following keymaps until EOF
1392|:loadview| :lo[adview] load view for current window from a file
1393|:lockmarks| :loc[kmarks] following command keeps marks where they are
Bram Moolenaar24c088a2005-02-02 22:55:47 +00001394|:lockvar| :lockv[ar] lock variables
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001395|:lolder| :lol[der] go to older location list
1396|:lopen| :lope[n] open location window
1397|:lprevious| :lp[revious] go to previous location
1398|:lpfile| :lpf[ile] go to last location in previous file
1399|:lrewind| :lr[ewind] go to the specified location, default first one
Bram Moolenaar071d4272004-06-13 20:20:40 +00001400|:ls| :ls list all buffers
Bram Moolenaarb8a7b562006-02-01 21:47:16 +00001401|:ltag| :lt[ag] jump to tag and add matching tags to the
1402 location list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001403|:lunmap| :lu[nmap] like ":unmap!" but includes Lang-Arg mode
Bram Moolenaar0ba04292010-07-14 23:23:17 +02001404|:lua| :lua execute |Lua| command
1405|:luado| :luad[o] execute Lua command for each line
1406|:luafile| :luaf[ile] execute |Lua| script file
Bram Moolenaara37420f2006-02-04 22:37:47 +00001407|:lvimgrep| :lv[imgrep] search for pattern in files
1408|:lvimgrepadd| :lvimgrepa[dd] like :vimgrep, but append to current list
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001409|:lwindow| :lw[indow] open or close location window
Bram Moolenaar071d4272004-06-13 20:20:40 +00001410|:move| :m[ove] move lines
1411|:mark| :ma[rk] set a mark
1412|:make| :mak[e] execute external command 'makeprg' and parse
1413 error messages
1414|:map| :map show or enter a mapping
1415|:mapclear| :mapc[lear] clear all mappings for Normal and Visual mode
1416|:marks| :marks list all marks
1417|:match| :mat[ch] define a match to highlight
1418|:menu| :me[nu] enter a new menu item
Bram Moolenaaracb4f222016-01-10 15:59:26 +01001419|:menutranslate| :menut[ranslate] add a menu translation item
Bram Moolenaar071d4272004-06-13 20:20:40 +00001420|:messages| :mes[sages] view previously displayed messages
1421|:mkexrc| :mk[exrc] write current mappings and settings to a file
1422|:mksession| :mks[ession] write session info to a file
Bram Moolenaar78599ad2005-06-16 21:47:53 +00001423|:mkspell| :mksp[ell] produce .spl spell file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001424|:mkvimrc| :mkv[imrc] write current mappings and settings to a file
1425|:mkview| :mkvie[w] write view of current window to a file
1426|:mode| :mod[e] show or change the screen mode
Bram Moolenaar8299df92004-07-10 09:47:34 +00001427|:mzscheme| :mz[scheme] execute MzScheme command
1428|:mzfile| :mzf[ile] execute MzScheme script file
Bram Moolenaarb26e6322010-05-22 21:34:09 +02001429|:nbclose| :nbc[lose] close the current Netbeans session
Bram Moolenaar17568792005-07-06 22:28:03 +00001430|:nbkey| :nb[key] pass a key to Netbeans
Bram Moolenaarb26e6322010-05-22 21:34:09 +02001431|:nbstart| :nbs[art] start a new Netbeans session
Bram Moolenaar071d4272004-06-13 20:20:40 +00001432|:next| :n[ext] go to next file in the argument list
1433|:new| :new create a new empty window
1434|:nmap| :nm[ap] like ":map" but for Normal mode
1435|:nmapclear| :nmapc[lear] clear all mappings for Normal mode
1436|:nmenu| :nme[nu] add menu for Normal mode
1437|:nnoremap| :nn[oremap] like ":noremap" but for Normal mode
1438|:nnoremenu| :nnoreme[nu] like ":noremenu" but for Normal mode
Bram Moolenaar76f3b1a2014-03-27 22:30:07 +01001439|:noautocmd| :noa[utocmd] following commands don't trigger autocommands
Bram Moolenaar071d4272004-06-13 20:20:40 +00001440|:noremap| :no[remap] enter a mapping that will not be remapped
1441|:nohlsearch| :noh[lsearch] suspend 'hlsearch' highlighting
1442|:noreabbrev| :norea[bbrev] enter an abbreviation that will not be
1443 remapped
1444|:noremenu| :noreme[nu] enter a menu that will not be remapped
1445|:normal| :norm[al] execute Normal mode commands
Bram Moolenaar76f3b1a2014-03-27 22:30:07 +01001446|:noswapfile| :nos[wapfile] following commands don't create a swap file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001447|:number| :nu[mber] print lines with line number
1448|:nunmap| :nun[map] like ":unmap" but for Normal mode
1449|:nunmenu| :nunme[nu] remove menu for Normal mode
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01001450|:oldfiles| :ol[dfiles] list files that have marks in the viminfo file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001451|:open| :o[pen] start open mode (not implemented)
1452|:omap| :om[ap] like ":map" but for Operator-pending mode
1453|:omapclear| :omapc[lear] remove all mappings for Operator-pending mode
1454|:omenu| :ome[nu] add menu for Operator-pending mode
Bram Moolenaar7e8fd632006-02-18 22:14:51 +00001455|:only| :on[ly] close all windows except the current one
Bram Moolenaar071d4272004-06-13 20:20:40 +00001456|:onoremap| :ono[remap] like ":noremap" but for Operator-pending mode
1457|:onoremenu| :onoreme[nu] like ":noremenu" but for Operator-pending mode
1458|:options| :opt[ions] open the options-window
1459|:ounmap| :ou[nmap] like ":unmap" but for Operator-pending mode
1460|:ounmenu| :ounme[nu] remove menu for Operator-pending mode
Bram Moolenaarb2c03502010-07-02 20:20:09 +02001461|:ownsyntax| :ow[nsyntax] set new local syntax highlight for this window
Bram Moolenaar328da0d2016-03-04 22:22:32 +01001462|:packadd| :pa[ckadd] add a plugin from 'packpath'
Bram Moolenaare18c0b32016-03-20 21:08:34 +01001463|:packloadall| :packl[oadall] load all packages under 'packpath'
Bram Moolenaar071d4272004-06-13 20:20:40 +00001464|:pclose| :pc[lose] close preview window
1465|:pedit| :ped[it] edit file in the preview window
1466|:perl| :pe[rl] execute Perl command
Bram Moolenaar05159a02005-02-26 23:04:13 +00001467|:print| :p[rint] print lines
Bram Moolenaar17568792005-07-06 22:28:03 +00001468|:profdel| :profd[el] stop profiling a function or script
Bram Moolenaar05159a02005-02-26 23:04:13 +00001469|:profile| :prof[ile] profiling functions and scripts
Bram Moolenaarf2330482008-06-24 20:19:36 +00001470|:promptfind| :pro[mptfind] open GUI dialog for searching
1471|:promptrepl| :promptr[epl] open GUI dialog for search/replace
Bram Moolenaar071d4272004-06-13 20:20:40 +00001472|:perldo| :perld[o] execute Perl command for each line
1473|:pop| :po[p] jump to older entry in tag stack
Bram Moolenaar34700a62013-03-07 13:20:54 +01001474|:popup| :popu[p] popup a menu by name
Bram Moolenaar071d4272004-06-13 20:20:40 +00001475|:ppop| :pp[op] ":pop" in preview window
1476|:preserve| :pre[serve] write all text to swap file
1477|:previous| :prev[ious] go to previous file in argument list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001478|:psearch| :ps[earch] like ":ijump" but shows match in preview window
1479|:ptag| :pt[ag] show tag in preview window
1480|:ptNext| :ptN[ext] |:tNext| in preview window
1481|:ptfirst| :ptf[irst] |:trewind| in preview window
1482|:ptjump| :ptj[ump] |:tjump| and show tag in preview window
1483|:ptlast| :ptl[ast] |:tlast| in preview window
1484|:ptnext| :ptn[ext] |:tnext| in preview window
1485|:ptprevious| :ptp[revious] |:tprevious| in preview window
1486|:ptrewind| :ptr[ewind] |:trewind| in preview window
1487|:ptselect| :pts[elect] |:tselect| and show tag in preview window
1488|:put| :pu[t] insert contents of register in the text
1489|:pwd| :pw[d] print current directory
Bram Moolenaar368373e2010-07-19 20:46:22 +02001490|:py3| :py3 execute Python 3 command
Bram Moolenaarb6590522010-07-21 16:00:43 +02001491|:python3| :python3 same as :py3
Bram Moolenaarad3b3662013-05-17 18:14:19 +02001492|:py3do| :py3d[o] execute Python 3 command for each line
Bram Moolenaar60aad972010-07-21 20:36:22 +02001493|:py3file| :py3f[ile] execute Python 3 script file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001494|:python| :py[thon] execute Python command
Bram Moolenaarad3b3662013-05-17 18:14:19 +02001495|:pydo| :pyd[o] execute Python command for each line
Bram Moolenaar071d4272004-06-13 20:20:40 +00001496|:pyfile| :pyf[ile] execute Python script file
Bram Moolenaarf42dd3c2017-01-28 16:06:38 +01001497|:pyx| :pyx execute |python_x| command
1498|:pythonx| :pythonx same as :pyx
1499|:pyxdo| :pyxd[o] execute |python_x| command for each line
1500|:pyxfile| :pyxf[ile] execute |python_x| script file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001501|:quit| :q[uit] quit current window (when one window quit Vim)
1502|:quitall| :quita[ll] quit Vim
1503|:qall| :qa[ll] quit Vim
1504|:read| :r[ead] read file into the text
1505|:recover| :rec[over] recover a file from a swap file
1506|:redo| :red[o] redo one undone change
1507|:redir| :redi[r] redirect messages to a file or register
Bram Moolenaard09091d2019-01-17 16:07:22 +01001508|:redraw| :redr[aw] force a redraw of the display
1509|:redrawstatus| :redraws[tatus] force a redraw of the status line(s)
1510|:redrawtabline| :redrawt[abline] force a redraw of the tabline
Bram Moolenaar071d4272004-06-13 20:20:40 +00001511|:registers| :reg[isters] display the contents of registers
1512|:resize| :res[ize] change current window height
1513|:retab| :ret[ab] change tab size
1514|:return| :retu[rn] return from a user function
1515|:rewind| :rew[ind] go to the first file in the argument list
1516|:right| :ri[ght] right align text
1517|:rightbelow| :rightb[elow] make split window appear right or below
1518|:ruby| :rub[y] execute Ruby command
1519|:rubydo| :rubyd[o] execute Ruby command for each line
1520|:rubyfile| :rubyf[ile] execute Ruby script file
Bram Moolenaar1d689522010-05-28 20:54:39 +02001521|:rundo| :rund[o] read undo information from a file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001522|:runtime| :ru[ntime] source vim scripts in 'runtimepath'
1523|:rviminfo| :rv[iminfo] read from viminfo file
1524|:substitute| :s[ubstitute] find and replace text
1525|:sNext| :sN[ext] split window and go to previous file in
1526 argument list
Bram Moolenaar17568792005-07-06 22:28:03 +00001527|:sandbox| :san[dbox] execute a command in the sandbox
Bram Moolenaar071d4272004-06-13 20:20:40 +00001528|:sargument| :sa[rgument] split window and go to specific file in
1529 argument list
1530|:sall| :sal[l] open a window for each file in argument list
1531|:saveas| :sav[eas] save file under another name.
1532|:sbuffer| :sb[uffer] split window and go to specific file in the
1533 buffer list
1534|:sbNext| :sbN[ext] split window and go to previous file in the
1535 buffer list
1536|:sball| :sba[ll] open a window for each file in the buffer list
1537|:sbfirst| :sbf[irst] split window and go to first file in the
1538 buffer list
1539|:sblast| :sbl[ast] split window and go to last file in buffer
1540 list
1541|:sbmodified| :sbm[odified] split window and go to modified file in the
1542 buffer list
1543|:sbnext| :sbn[ext] split window and go to next file in the buffer
1544 list
1545|:sbprevious| :sbp[revious] split window and go to previous file in the
1546 buffer list
1547|:sbrewind| :sbr[ewind] split window and go to first file in the
1548 buffer list
Bram Moolenaar8feef4f2015-01-07 16:57:10 +01001549|:scriptnames| :scr[iptnames] list names of all sourced Vim scripts
Bram Moolenaar62e1bb42019-04-08 16:25:07 +02001550|:scriptencoding| :scripte[ncoding] encoding used in sourced Vim script
1551|:scriptversion| :scriptv[ersion] version of Vim script used
Bram Moolenaar64969662005-12-14 21:59:55 +00001552|:scscope| :scs[cope] split window and execute cscope command
Bram Moolenaar071d4272004-06-13 20:20:40 +00001553|:set| :se[t] show or set options
1554|:setfiletype| :setf[iletype] set 'filetype', unless it was set already
1555|:setglobal| :setg[lobal] show global values of options
1556|:setlocal| :setl[ocal] show or set options locally
1557|:sfind| :sf[ind] split current window and edit file in 'path'
1558|:sfirst| :sfir[st] split window and go to first file in the
1559 argument list
1560|:shell| :sh[ell] escape to a shell
1561|:simalt| :sim[alt] Win32 GUI: simulate Windows ALT key
1562|:sign| :sig[n] manipulate signs
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01001563|:silent| :sil[ent] run a command silently
Bram Moolenaar071d4272004-06-13 20:20:40 +00001564|:sleep| :sl[eep] do nothing for a few seconds
1565|:slast| :sla[st] split window and go to last file in the
1566 argument list
1567|:smagic| :sm[agic] :substitute with 'magic'
Bram Moolenaar34700a62013-03-07 13:20:54 +01001568|:smap| :smap like ":map" but for Select mode
Bram Moolenaar371d5402006-03-20 21:47:49 +00001569|:smapclear| :smapc[lear] remove all mappings for Select mode
1570|:smenu| :sme[nu] add menu for Select mode
Bram Moolenaaracb4f222016-01-10 15:59:26 +01001571|:smile| :smi[le] make the user happy
Bram Moolenaar071d4272004-06-13 20:20:40 +00001572|:snext| :sn[ext] split window and go to next file in the
1573 argument list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001574|:snomagic| :sno[magic] :substitute with 'nomagic'
Bram Moolenaar371d5402006-03-20 21:47:49 +00001575|:snoremap| :snor[emap] like ":noremap" but for Select mode
1576|:snoremenu| :snoreme[nu] like ":noremenu" but for Select mode
Bram Moolenaarf95dc3b2005-05-22 22:02:25 +00001577|:sort| :sor[t] sort lines
Bram Moolenaar071d4272004-06-13 20:20:40 +00001578|:source| :so[urce] read Vim or Ex commands from a file
Bram Moolenaarf81b0fe2005-06-23 22:27:26 +00001579|:spelldump| :spelld[ump] split window and fill with all correct words
Bram Moolenaar78599ad2005-06-16 21:47:53 +00001580|:spellgood| :spe[llgood] add good word for spelling
Bram Moolenaar362e1a32006-03-06 23:29:24 +00001581|:spellinfo| :spelli[nfo] show info about loaded spell files
Bram Moolenaar43abc522005-12-10 20:15:02 +00001582|:spellrepall| :spellr[epall] replace all bad words like last |z=|
Bram Moolenaard0131a82006-03-04 21:46:13 +00001583|:spellundo| :spellu[ndo] remove good or bad word
Bram Moolenaar78599ad2005-06-16 21:47:53 +00001584|:spellwrong| :spellw[rong] add spelling mistake
Bram Moolenaar071d4272004-06-13 20:20:40 +00001585|:split| :sp[lit] split current window
1586|:sprevious| :spr[evious] split window and go to previous file in the
1587 argument list
1588|:srewind| :sre[wind] split window and go to first file in the
1589 argument list
1590|:stop| :st[op] suspend the editor or escape to a shell
1591|:stag| :sta[g] split window and jump to a tag
1592|:startinsert| :star[tinsert] start Insert mode
Bram Moolenaaracb4f222016-01-10 15:59:26 +01001593|:startgreplace| :startg[replace] start Virtual Replace mode
Bram Moolenaar325b7a22004-07-05 15:58:32 +00001594|:startreplace| :startr[eplace] start Replace mode
Bram Moolenaarf2330482008-06-24 20:19:36 +00001595|:stopinsert| :stopi[nsert] stop Insert mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001596|:stjump| :stj[ump] do ":tjump" and split window
1597|:stselect| :sts[elect] do ":tselect" and split window
1598|:sunhide| :sun[hide] same as ":unhide"
Bram Moolenaar371d5402006-03-20 21:47:49 +00001599|:sunmap| :sunm[ap] like ":unmap" but for Select mode
1600|:sunmenu| :sunme[nu] remove menu for Select mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001601|:suspend| :sus[pend] same as ":stop"
1602|:sview| :sv[iew] split window and edit file read-only
1603|:swapname| :sw[apname] show the name of the current swap file
1604|:syntax| :sy[ntax] syntax highlighting
Bram Moolenaar203d04d2013-06-06 21:36:40 +02001605|:syntime| :synti[me] measure syntax highlighting speed
Bram Moolenaar071d4272004-06-13 20:20:40 +00001606|:syncbind| :sync[bind] sync scroll binding
1607|:t| :t same as ":copy"
1608|:tNext| :tN[ext] jump to previous matching tag
Bram Moolenaar80a94a52006-02-23 21:26:58 +00001609|:tabNext| :tabN[ext] go to previous tab page
Bram Moolenaar7e8fd632006-02-18 22:14:51 +00001610|:tabclose| :tabc[lose] close current tab page
Bram Moolenaard0131a82006-03-04 21:46:13 +00001611|:tabdo| :tabdo execute command in each tab page
Bram Moolenaar7e8fd632006-02-18 22:14:51 +00001612|:tabedit| :tabe[dit] edit a file in a new tab page
1613|:tabfind| :tabf[ind] find file in 'path', edit it in a new tab page
Bram Moolenaar13d5aee2016-01-21 23:36:05 +01001614|:tabfirst| :tabfir[st] go to first tab page
1615|:tablast| :tabl[ast] go to last tab page
Bram Moolenaar80a94a52006-02-23 21:26:58 +00001616|:tabmove| :tabm[ove] move tab page to other position
1617|:tabnew| :tabnew edit a file in a new tab page
1618|:tabnext| :tabn[ext] go to next tab page
Bram Moolenaar7e8fd632006-02-18 22:14:51 +00001619|:tabonly| :tabo[nly] close all tab pages except the current one
Bram Moolenaar80a94a52006-02-23 21:26:58 +00001620|:tabprevious| :tabp[revious] go to previous tab page
Bram Moolenaar13d5aee2016-01-21 23:36:05 +01001621|:tabrewind| :tabr[ewind] go to first tab page
Bram Moolenaar7e8fd632006-02-18 22:14:51 +00001622|:tabs| :tabs list the tab pages and what they contain
Bram Moolenaar80a94a52006-02-23 21:26:58 +00001623|:tab| :tab create new tab when opening new window
Bram Moolenaar071d4272004-06-13 20:20:40 +00001624|:tag| :ta[g] jump to tag
1625|:tags| :tags show the contents of the tag stack
1626|:tcl| :tc[l] execute Tcl command
1627|:tcldo| :tcld[o] execute Tcl command for each line
1628|:tclfile| :tclf[ile] execute Tcl script file
1629|:tearoff| :te[aroff] tear-off a menu
Bram Moolenaar74675a62017-07-15 13:53:23 +02001630|:terminal| :ter[minal] open a terminal window
Bram Moolenaar071d4272004-06-13 20:20:40 +00001631|:tfirst| :tf[irst] jump to first matching tag
1632|:throw| :th[row] throw an exception
1633|:tjump| :tj[ump] like ":tselect", but jump directly when there
1634 is only one match
1635|:tlast| :tl[ast] jump to last matching tag
Bram Moolenaar4c5d8152018-10-19 22:36:53 +02001636|:tlmenu| :tlm[enu] add menu for Terminal-Job mode
1637|:tlnoremenu| :tln[oremenu] like ":noremenu" but for Terminal-Job mode
1638|:tlunmenu| :tlu[nmenu] remove menu for Terminal-Job mode
Bram Moolenaar37c64c72017-09-19 22:06:03 +02001639|:tmapclear| :tmapc[lear] remove all mappings for Terminal-Job mode
1640|:tmap| :tma[p] like ":map" but for Terminal-Job mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001641|:tmenu| :tm[enu] define menu tooltip
1642|:tnext| :tn[ext] jump to next matching tag
Bram Moolenaar37c64c72017-09-19 22:06:03 +02001643|:tnoremap| :tno[remap] like ":noremap" but for Terminal-Job mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001644|:topleft| :to[pleft] make split window appear at top or far left
1645|:tprevious| :tp[revious] jump to previous matching tag
1646|:trewind| :tr[ewind] jump to first matching tag
1647|:try| :try execute commands, abort on error or exception
1648|:tselect| :ts[elect] list matching tags and select one
Bram Moolenaar37c64c72017-09-19 22:06:03 +02001649|:tunmap| :tunma[p] like ":unmap" but for Terminal-Job mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001650|:tunmenu| :tu[nmenu] remove menu tooltip
1651|:undo| :u[ndo] undo last change(s)
Bram Moolenaarb388adb2006-02-28 23:50:17 +00001652|:undojoin| :undoj[oin] join next change with previous undo block
Bram Moolenaard3667a22006-03-16 21:35:52 +00001653|:undolist| :undol[ist] list leafs of the undo tree
Bram Moolenaar071d4272004-06-13 20:20:40 +00001654|:unabbreviate| :una[bbreviate] remove abbreviation
1655|:unhide| :unh[ide] open a window for each loaded file in the
1656 buffer list
1657|:unlet| :unl[et] delete variable
Bram Moolenaar24c088a2005-02-02 22:55:47 +00001658|:unlockvar| :unlo[ckvar] unlock variables
Bram Moolenaar071d4272004-06-13 20:20:40 +00001659|:unmap| :unm[ap] remove mapping
1660|:unmenu| :unme[nu] remove menu
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01001661|:unsilent| :uns[ilent] run a command not silently
Bram Moolenaar071d4272004-06-13 20:20:40 +00001662|:update| :up[date] write buffer if modified
1663|:vglobal| :v[global] execute commands for not matching lines
1664|:version| :ve[rsion] print version number and other info
1665|:verbose| :verb[ose] execute command with 'verbose' set
1666|:vertical| :vert[ical] make following command split vertically
Bram Moolenaar17568792005-07-06 22:28:03 +00001667|:vimgrep| :vim[grep] search for pattern in files
1668|:vimgrepadd| :vimgrepa[dd] like :vimgrep, but append to current list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001669|:visual| :vi[sual] same as ":edit", but turns off "Ex" mode
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001670|:viusage| :viu[sage] overview of Normal mode commands
Bram Moolenaar071d4272004-06-13 20:20:40 +00001671|:view| :vie[w] edit a file read-only
Bram Moolenaar371d5402006-03-20 21:47:49 +00001672|:vmap| :vm[ap] like ":map" but for Visual+Select mode
1673|:vmapclear| :vmapc[lear] remove all mappings for Visual+Select mode
1674|:vmenu| :vme[nu] add menu for Visual+Select mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001675|:vnew| :vne[w] create a new empty window, vertically split
Bram Moolenaar371d5402006-03-20 21:47:49 +00001676|:vnoremap| :vn[oremap] like ":noremap" but for Visual+Select mode
1677|:vnoremenu| :vnoreme[nu] like ":noremenu" but for Visual+Select mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001678|:vsplit| :vs[plit] split current window vertically
Bram Moolenaar371d5402006-03-20 21:47:49 +00001679|:vunmap| :vu[nmap] like ":unmap" but for Visual+Select mode
1680|:vunmenu| :vunme[nu] remove menu for Visual+Select mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001681|:windo| :windo execute command in each window
1682|:write| :w[rite] write to a file
1683|:wNext| :wN[ext] write to a file and go to previous file in
1684 argument list
1685|:wall| :wa[ll] write all (changed) buffers
1686|:while| :wh[ile] execute loop for as long as condition met
1687|:winsize| :wi[nsize] get or set window size (obsolete)
1688|:wincmd| :winc[md] execute a Window (CTRL-W) command
1689|:winpos| :winp[os] get or set window position
1690|:wnext| :wn[ext] write to a file and go to next file in
1691 argument list
1692|:wprevious| :wp[revious] write to a file and go to previous file in
1693 argument list
1694|:wq| :wq write to a file and quit window or Vim
1695|:wqall| :wqa[ll] write all changed buffers and quit Vim
Bram Moolenaar1d689522010-05-28 20:54:39 +02001696|:wundo| :wu[ndo] write undo information to a file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001697|:wviminfo| :wv[iminfo] write to viminfo file
1698|:xit| :x[it] write if buffer changed and quit window or Vim
1699|:xall| :xa[ll] same as ":wqall"
Bram Moolenaar371d5402006-03-20 21:47:49 +00001700|:xmapclear| :xmapc[lear] remove all mappings for Visual mode
1701|:xmap| :xm[ap] like ":map" but for Visual mode
1702|:xmenu| :xme[nu] add menu for Visual mode
1703|:xnoremap| :xn[oremap] like ":noremap" but for Visual mode
1704|:xnoremenu| :xnoreme[nu] like ":noremenu" but for Visual mode
1705|:xunmap| :xu[nmap] like ":unmap" but for Visual mode
1706|:xunmenu| :xunme[nu] remove menu for Visual mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001707|:yank| :y[ank] yank lines into a register
1708|:z| :z print some lines
1709|:~| :~ repeat last ":substitute"
1710
Bram Moolenaar371d5402006-03-20 21:47:49 +00001711
Bram Moolenaar91f84f62018-07-29 15:07:52 +02001712 vim:tw=78:ts=8:noet:ft=help:norl: