blob: 06a24e0465cdb275ff6917e1998f24303599519d [file] [log] [blame]
Christian Brabandt762a79e2025-03-16 21:39:58 +01001*index.txt* For Vim version 9.1. Last change: 2025 Jan 03
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
Bram Moolenaar30e9b3c2019-09-07 16:24:12 +020026For an overview of options see |option-list|.
Bram Moolenaar071d4272004-06-13 20:20:40 +000027For 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
Bram Moolenaar8024f932020-01-14 19:29:13 +010076|i_CTRL-SHIFT-Q| CTRL-SHIFT-Q {char}
77 like CTRL-Q unless |modifyOtherKeys| is active
Bram Moolenaar5be4cee2019-09-27 19:34:08 +020078|i_CTRL-R| CTRL-R {register}
Bram Moolenaar071d4272004-06-13 20:20:40 +000079 insert the contents of a register
Bram Moolenaar5be4cee2019-09-27 19:34:08 +020080|i_CTRL-R_CTRL-R| CTRL-R CTRL-R {register}
Bram Moolenaar071d4272004-06-13 20:20:40 +000081 insert the contents of a register literally
Bram Moolenaar5be4cee2019-09-27 19:34:08 +020082|i_CTRL-R_CTRL-O| CTRL-R CTRL-O {register}
Bram Moolenaar071d4272004-06-13 20:20:40 +000083 insert the contents of a register literally
84 and don't auto-indent
Bram Moolenaar5be4cee2019-09-27 19:34:08 +020085|i_CTRL-R_CTRL-P| CTRL-R CTRL-P {register}
Bram Moolenaar071d4272004-06-13 20:20:40 +000086 insert the contents of a register literally
87 and fix indent.
Bram Moolenaaracc22402020-06-07 21:07:18 +020088 CTRL-S not used or used for terminal control flow
Bram Moolenaar071d4272004-06-13 20:20:40 +000089|i_CTRL-T| CTRL-T insert one shiftwidth of indent in current
90 line
91|i_CTRL-U| CTRL-U delete all entered characters in the current
92 line
93|i_CTRL-V| CTRL-V {char} insert next non-digit literally
Bram Moolenaar8024f932020-01-14 19:29:13 +010094|i_CTRL-SHIFT-V| CTRL-SHIFT-V {char}
95 like CTRL-V unless |modifyOtherKeys| is active
Bram Moolenaar071d4272004-06-13 20:20:40 +000096|i_CTRL-V_digit| CTRL-V {number} insert three digit decimal number as a single
97 byte.
98|i_CTRL-W| CTRL-W delete word before the cursor
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +000099|i_CTRL-X| CTRL-X {mode} enter CTRL-X sub mode, see |i_CTRL-X_index|
Bram Moolenaar071d4272004-06-13 20:20:40 +0000100|i_CTRL-Y| CTRL-Y insert the character which is above the cursor
101|i_CTRL-Z| CTRL-Z when 'insertmode' set: suspend Vim
102|i_<Esc>| <Esc> end insert mode (unless 'insertmode' set)
103|i_CTRL-[| CTRL-[ same as <Esc>
Bram Moolenaarfa13eef2013-02-06 17:34:04 +0100104|i_CTRL-\_CTRL-N| CTRL-\ CTRL-N go to Normal mode
105|i_CTRL-\_CTRL-G| CTRL-\ CTRL-G go to mode specified with 'insertmode'
Bram Moolenaar071d4272004-06-13 20:20:40 +0000106 CTRL-\ a - z reserved for extensions
107 CTRL-\ others not used
108|i_CTRL-]| CTRL-] trigger abbreviation
109|i_CTRL-^| CTRL-^ toggle use of |:lmap| mappings
110|i_CTRL-_| CTRL-_ When 'allowrevins' set: change language
111 (Hebrew, Farsi) {only when compiled with
Bram Moolenaardb84e452010-08-15 13:50:43 +0200112 the |+rightleft| feature}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000113
114 <Space> to '~' not used, except '0' and '^' followed by
115 CTRL-D
116
117|i_0_CTRL-D| 0 CTRL-D delete all indent in the current line
118|i_^_CTRL-D| ^ CTRL-D delete all indent in the current line, restore
119 it in the next line
120
121|i_<Del>| <Del> delete character under the cursor
122
123 Meta characters (0x80 to 0xff, 128 to 255)
124 not used
125
126|i_<Left>| <Left> cursor one character left
127|i_<S-Left>| <S-Left> cursor one word left
128|i_<C-Left>| <C-Left> cursor one word left
129|i_<Right>| <Right> cursor one character right
130|i_<S-Right>| <S-Right> cursor one word right
131|i_<C-Right>| <C-Right> cursor one word right
132|i_<Up>| <Up> cursor one line up
133|i_<S-Up>| <S-Up> same as <PageUp>
134|i_<Down>| <Down> cursor one line down
135|i_<S-Down>| <S-Down> same as <PageDown>
136|i_<Home>| <Home> cursor to start of line
137|i_<C-Home>| <C-Home> cursor to start of file
138|i_<End>| <End> cursor past end of line
139|i_<C-End>| <C-End> cursor past end of file
Bram Moolenaar69a7cb42004-06-20 12:51:53 +0000140|i_<PageUp>| <PageUp> one screenful backward
141|i_<PageDown>| <PageDown> one screenful forward
Bram Moolenaar071d4272004-06-13 20:20:40 +0000142|i_<F1>| <F1> same as <Help>
143|i_<Help>| <Help> stop insert mode and display help window
144|i_<Insert>| <Insert> toggle Insert/Replace mode
145|i_<LeftMouse>| <LeftMouse> cursor at mouse click
Bram Moolenaar8d9b40e2010-07-25 15:49:07 +0200146|i_<ScrollWheelDown>| <ScrollWheelDown> move window three lines down
147|i_<S-ScrollWheelDown>| <S-ScrollWheelDown> move window one page down
148|i_<ScrollWheelUp>| <ScrollWheelUp> move window three lines up
149|i_<S-ScrollWheelUp>| <S-ScrollWheelUp> move window one page up
150|i_<ScrollWheelLeft>| <ScrollWheelLeft> move window six columns left
Bram Moolenaarfa13eef2013-02-06 17:34:04 +0100151|i_<S-ScrollWheelLeft>| <S-ScrollWheelLeft> move window one page left
Bram Moolenaar8d9b40e2010-07-25 15:49:07 +0200152|i_<ScrollWheelRight>| <ScrollWheelRight> move window six columns right
153|i_<S-ScrollWheelRight>| <S-ScrollWheelRight> move window one page right
Bram Moolenaar071d4272004-06-13 20:20:40 +0000154
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000155commands in CTRL-X submode *i_CTRL-X_index*
Bram Moolenaar071d4272004-06-13 20:20:40 +0000156
157|i_CTRL-X_CTRL-D| CTRL-X CTRL-D complete defined identifiers
158|i_CTRL-X_CTRL-E| CTRL-X CTRL-E scroll up
159|i_CTRL-X_CTRL-F| CTRL-X CTRL-F complete file names
160|i_CTRL-X_CTRL-I| CTRL-X CTRL-I complete identifiers
161|i_CTRL-X_CTRL-K| CTRL-X CTRL-K complete identifiers from dictionary
162|i_CTRL-X_CTRL-L| CTRL-X CTRL-L complete whole lines
163|i_CTRL-X_CTRL-N| CTRL-X CTRL-N next completion
Bram Moolenaar5e0d6672005-09-13 21:09:24 +0000164|i_CTRL-X_CTRL-O| CTRL-X CTRL-O omni completion
Bram Moolenaar071d4272004-06-13 20:20:40 +0000165|i_CTRL-X_CTRL-P| CTRL-X CTRL-P previous completion
Bram Moolenaar8b59de92005-08-11 19:59:29 +0000166|i_CTRL-X_CTRL-S| CTRL-X CTRL-S spelling suggestions
Bram Moolenaar071d4272004-06-13 20:20:40 +0000167|i_CTRL-X_CTRL-T| CTRL-X CTRL-T complete identifiers from thesaurus
168|i_CTRL-X_CTRL-Y| CTRL-X CTRL-Y scroll down
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000169|i_CTRL-X_CTRL-U| CTRL-X CTRL-U complete with 'completefunc'
170|i_CTRL-X_CTRL-V| CTRL-X CTRL-V complete like in : command line
zeertzjqdca29d92021-08-31 19:12:51 +0200171|i_CTRL-X_CTRL-Z| CTRL-X CTRL-Z stop completion, keeping the text as-is
Bram Moolenaar071d4272004-06-13 20:20:40 +0000172|i_CTRL-X_CTRL-]| CTRL-X CTRL-] complete tags
Bram Moolenaar8b59de92005-08-11 19:59:29 +0000173|i_CTRL-X_s| CTRL-X s spelling suggestions
Bram Moolenaar071d4272004-06-13 20:20:40 +0000174
Bram Moolenaarf6b40102019-02-22 15:24:03 +0100175commands in completion mode (see |popupmenu-keys|)
176
177|complete_CTRL-E| CTRL-E stop completion and go back to original text
178|complete_CTRL-Y| CTRL-Y accept selected match and stop completion
179 CTRL-L insert one character from the current match
180 <CR> insert currently selected match
181 <BS> delete one character and redo search
182 CTRL-H same as <BS>
183 <Up> select the previous match
184 <Down> select the next match
185 <PageUp> select a match several entries back
186 <PageDown> select a match several entries forward
187 other stop completion and insert the typed character
188
Bram Moolenaar071d4272004-06-13 20:20:40 +0000189==============================================================================
1902. Normal mode *normal-index*
191
192CHAR any non-blank character
193WORD a sequence of non-blank characters
194N a number entered before the command
195{motion} a cursor movement command
196Nmove the text that is moved over with a {motion}
197SECTION a section that possibly starts with '}' instead of '{'
198
199note: 1 = cursor movement command; 2 = can be undone/redone
200
201tag char note action in Normal mode ~
202------------------------------------------------------------------------------
203 CTRL-@ not used
204|CTRL-A| CTRL-A 2 add N to number at/after cursor
205|CTRL-B| CTRL-B 1 scroll N screens Backwards
206|CTRL-C| CTRL-C interrupt current (search) command
207|CTRL-D| CTRL-D scroll Down N lines (default: half a screen)
208|CTRL-E| CTRL-E scroll N lines upwards (N lines Extra)
209|CTRL-F| CTRL-F 1 scroll N screens Forward
210|CTRL-G| CTRL-G display current file name and position
211|<BS>| <BS> 1 same as "h"
212|CTRL-H| CTRL-H 1 same as "h"
213|<Tab>| <Tab> 1 go to N newer entry in jump list
214|CTRL-I| CTRL-I 1 same as <Tab>
215|<NL>| <NL> 1 same as "j"
Christian Brabandtfbbabbc2024-07-07 20:30:59 +0200216|<S-NL>| <S-NL> 1 same as CTRL-F
Bram Moolenaar071d4272004-06-13 20:20:40 +0000217|CTRL-J| CTRL-J 1 same as "j"
218 CTRL-K not used
219|CTRL-L| CTRL-L redraw screen
220|<CR>| <CR> 1 cursor to the first CHAR N lines lower
Christian Brabandtfbbabbc2024-07-07 20:30:59 +0200221|<S-CR>| <S-CR> 1 same as CTRL-F
Bram Moolenaar071d4272004-06-13 20:20:40 +0000222|CTRL-M| CTRL-M 1 same as <CR>
223|CTRL-N| CTRL-N 1 same as "j"
224|CTRL-O| CTRL-O 1 go to N older entry in jump list
225|CTRL-P| CTRL-P 1 same as "k"
Bram Moolenaaracc22402020-06-07 21:07:18 +0200226 CTRL-Q not used, or used for terminal control flow
Bram Moolenaar071d4272004-06-13 20:20:40 +0000227|CTRL-R| CTRL-R 2 redo changes which were undone with 'u'
Bram Moolenaaracc22402020-06-07 21:07:18 +0200228 CTRL-S not used, or used for terminal control flow
Bram Moolenaar071d4272004-06-13 20:20:40 +0000229|CTRL-T| CTRL-T jump to N older Tag in tag list
230|CTRL-U| CTRL-U scroll N lines Upwards (default: half a
231 screen)
232|CTRL-V| CTRL-V start blockwise Visual mode
233|CTRL-W| CTRL-W {char} window commands, see |CTRL-W|
234|CTRL-X| CTRL-X 2 subtract N from number at/after cursor
235|CTRL-Y| CTRL-Y scroll N lines downwards
236|CTRL-Z| CTRL-Z suspend program (or start new shell)
237 CTRL-[ <Esc> not used
Bram Moolenaarfa13eef2013-02-06 17:34:04 +0100238|CTRL-\_CTRL-N| CTRL-\ CTRL-N go to Normal mode (no-op)
239|CTRL-\_CTRL-G| CTRL-\ CTRL-G go to mode specified with 'insertmode'
Bram Moolenaar071d4272004-06-13 20:20:40 +0000240 CTRL-\ a - z reserved for extensions
Bram Moolenaar938ae282023-02-20 20:44:55 +0000241 CTRL-\ others not used
Bram Moolenaar071d4272004-06-13 20:20:40 +0000242|CTRL-]| CTRL-] :ta to ident under cursor
243|CTRL-^| CTRL-^ edit Nth alternate file (equivalent to
244 ":e #N")
245 CTRL-_ not used
246
247|<Space>| <Space> 1 same as "l"
248|!| !{motion}{filter}
249 2 filter Nmove text through the {filter}
250 command
251|!!| !!{filter} 2 filter N lines through the {filter} command
Bram Moolenaar938ae282023-02-20 20:44:55 +0000252|quote| "{register} use {register} for next delete, yank or put
Bram Moolenaar071d4272004-06-13 20:20:40 +0000253 ({.%#:} only work with put)
254|#| # 1 search backward for the Nth occurrence of
255 the ident under the cursor
256|$| $ 1 cursor to the end of Nth next line
257|%| % 1 find the next (curly/square) bracket on
258 this line and go to its match, or go to
259 matching comment bracket, or go to matching
260 preprocessor directive.
261|N%| {count}% 1 go to N percentage in the file
262|&| & 2 repeat last :s
263|'| '{a-zA-Z0-9} 1 cursor to the first CHAR on the line with
264 mark {a-zA-Z0-9}
265|''| '' 1 cursor to the first CHAR of the line where
266 the cursor was before the latest jump.
267|'(| '( 1 cursor to the first CHAR on the line of the
268 start of the current sentence
269|')| ') 1 cursor to the first CHAR on the line of the
270 end of the current sentence
271|'<| '< 1 cursor to the first CHAR of the line where
272 highlighted area starts/started in the
273 current buffer.
274|'>| '> 1 cursor to the first CHAR of the line where
275 highlighted area ends/ended in the current
276 buffer.
277|'[| '[ 1 cursor to the first CHAR on the line of the
278 start of last operated text or start of put
279 text
280|']| '] 1 cursor to the first CHAR on the line of the
281 end of last operated text or end of put
282 text
283|'{| '{ 1 cursor to the first CHAR on the line of the
284 start of the current paragraph
285|'}| '} 1 cursor to the first CHAR on the line of the
286 end of the current paragraph
287|(| ( 1 cursor N sentences backward
288|)| ) 1 cursor N sentences forward
289|star| * 1 search forward for the Nth occurrence of
290 the ident under the cursor
291|+| + 1 same as <CR>
Christian Brabandtfbbabbc2024-07-07 20:30:59 +0200292|<S-Plus>| <S-+> 1 same as CTRL-F
Bram Moolenaar071d4272004-06-13 20:20:40 +0000293|,| , 1 repeat latest f, t, F or T in opposite
294 direction N times
295|-| - 1 cursor to the first CHAR N lines higher
Christian Brabandtfbbabbc2024-07-07 20:30:59 +0200296|<S-Minus>| <S--> 1 same as CTRL-B
Bram Moolenaar071d4272004-06-13 20:20:40 +0000297|.| . 2 repeat last change with count replaced with
298 N
299|/| /{pattern}<CR> 1 search forward for the Nth occurrence of
300 {pattern}
301|/<CR>| /<CR> 1 search forward for {pattern} of last search
Bram Moolenaar6ba83ba2022-06-12 22:15:57 +0100302|0| 0 1 cursor to the first char of the line
Bram Moolenaar071d4272004-06-13 20:20:40 +0000303|count| 1 prepend to command to give a count
304|count| 2 "
305|count| 3 "
306|count| 4 "
307|count| 5 "
308|count| 6 "
309|count| 7 "
310|count| 8 "
311|count| 9 "
312|:| : 1 start entering an Ex command
313|N:| {count}: start entering an Ex command with range
314 from current line to N-1 lines down
315|;| ; 1 repeat latest f, t, F or T N times
316|<| <{motion} 2 shift Nmove lines one 'shiftwidth'
317 leftwards
318|<<| << 2 shift N lines one 'shiftwidth' leftwards
319|=| ={motion} 2 filter Nmove lines through "indent"
320|==| == 2 filter N lines through "indent"
321|>| >{motion} 2 shift Nmove lines one 'shiftwidth'
322 rightwards
323|>>| >> 2 shift N lines one 'shiftwidth' rightwards
324|?| ?{pattern}<CR> 1 search backward for the Nth previous
325 occurrence of {pattern}
326|?<CR>| ?<CR> 1 search backward for {pattern} of last search
327|@| @{a-z} 2 execute the contents of register {a-z}
328 N times
329|@:| @: repeat the previous ":" command N times
330|@@| @@ 2 repeat the previous @{a-z} N times
331|A| A 2 append text after the end of the line N times
332|B| B 1 cursor N WORDS backward
333|C| ["x]C 2 change from the cursor position to the end
334 of the line, and N-1 more lines [into
Bram Moolenaar94237492017-04-23 18:40:21 +0200335 register x]; synonym for "c$"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000336|D| ["x]D 2 delete the characters under the cursor
337 until the end of the line and N-1 more
Bram Moolenaar94237492017-04-23 18:40:21 +0200338 lines [into register x]; synonym for "d$"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000339|E| E 1 cursor forward to the end of WORD N
340|F| F{char} 1 cursor to the Nth occurrence of {char} to
341 the left
342|G| G 1 cursor to line N, default last line
343|H| H 1 cursor to line N from top of screen
344|I| I 2 insert text before the first CHAR on the
345 line N times
346|J| J 2 Join N lines; default is 2
347|K| K lookup Keyword under the cursor with
348 'keywordprg'
349|L| L 1 cursor to line N from bottom of screen
350|M| M 1 cursor to middle line of screen
351|N| N 1 repeat the latest '/' or '?' N times in
352 opposite direction
353|O| O 2 begin a new line above the cursor and
354 insert text, repeat N times
Bram Moolenaar94237492017-04-23 18:40:21 +0200355|P| ["x]P 2 put the text [from register x] before the
Bram Moolenaar071d4272004-06-13 20:20:40 +0000356 cursor N times
357|Q| Q switch to "Ex" mode
358|R| R 2 enter replace mode: overtype existing
359 characters, repeat the entered text N-1
360 times
Bram Moolenaar94237492017-04-23 18:40:21 +0200361|S| ["x]S 2 delete N lines [into register x] and start
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000362 insert; synonym for "cc".
Bram Moolenaar071d4272004-06-13 20:20:40 +0000363|T| T{char} 1 cursor till after Nth occurrence of {char}
364 to the left
365|U| U 2 undo all latest changes on one line
366|V| V start linewise Visual mode
367|W| W 1 cursor N WORDS forward
368|X| ["x]X 2 delete N characters before the cursor [into
Bram Moolenaar94237492017-04-23 18:40:21 +0200369 register x]
370|Y| ["x]Y yank N lines [into register x]; synonym for
Bram Moolenaar071d4272004-06-13 20:20:40 +0000371 "yy"
Bram Moolenaar47e13952020-05-12 22:49:12 +0200372|ZZ| ZZ write if buffer changed and close window
373|ZQ| ZQ close window without writing
Bram Moolenaarc6039d82005-12-02 00:44:04 +0000374|[| [{char} square bracket command (see |[| below)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000375 \ not used
Bram Moolenaarc6039d82005-12-02 00:44:04 +0000376|]| ]{char} square bracket command (see |]| below)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000377|^| ^ 1 cursor to the first CHAR of the line
378|_| _ 1 cursor to the first CHAR N - 1 lines lower
379|`| `{a-zA-Z0-9} 1 cursor to the mark {a-zA-Z0-9}
380|`(| `( 1 cursor to the start of the current sentence
381|`)| `) 1 cursor to the end of the current sentence
382|`<| `< 1 cursor to the start of the highlighted area
383|`>| `> 1 cursor to the end of the highlighted area
384|`[| `[ 1 cursor to the start of last operated text
385 or start of putted text
386|`]| `] 1 cursor to the end of last operated text or
387 end of putted text
388|``| `` 1 cursor to the position before latest jump
389|`{| `{ 1 cursor to the start of the current paragraph
390|`}| `} 1 cursor to the end of the current paragraph
391|a| a 2 append text after the cursor N times
392|b| b 1 cursor N words backward
Bram Moolenaar94237492017-04-23 18:40:21 +0200393|c| ["x]c{motion} 2 delete Nmove text [into register x] and
394 start insert
395|cc| ["x]cc 2 delete N lines [into register x] and start
Bram Moolenaar071d4272004-06-13 20:20:40 +0000396 insert
Bram Moolenaar94237492017-04-23 18:40:21 +0200397|d| ["x]d{motion} 2 delete Nmove text [into register x]
398|dd| ["x]dd 2 delete N lines [into register x]
Bram Moolenaar071d4272004-06-13 20:20:40 +0000399|do| do 2 same as ":diffget"
400|dp| dp 2 same as ":diffput"
401|e| e 1 cursor forward to the end of word N
402|f| f{char} 1 cursor to Nth occurrence of {char} to the
403 right
Bram Moolenaarc6039d82005-12-02 00:44:04 +0000404|g| g{char} extended commands, see |g| below
Bram Moolenaar071d4272004-06-13 20:20:40 +0000405|h| h 1 cursor N chars to the left
406|i| i 2 insert text before the cursor N times
407|j| j 1 cursor N lines downward
408|k| k 1 cursor N lines upward
409|l| l 1 cursor N chars to the right
410|m| m{A-Za-z} set mark {A-Za-z} at cursor position
411|n| n 1 repeat the latest '/' or '?' N times
412|o| o 2 begin a new line below the cursor and
413 insert text, repeat N times
414|p| ["x]p 2 put the text [from register x] after the
415 cursor N times
416|q| q{0-9a-zA-Z"} record typed characters into named register
417 {0-9a-zA-Z"} (uppercase to append)
418|q| q (while recording) stops recording
419|q:| q: edit : command-line in command-line window
420|q/| q/ edit / command-line in command-line window
421|q?| q? edit ? command-line in command-line window
422|r| r{char} 2 replace N chars with {char}
423|s| ["x]s 2 (substitute) delete N characters [into
Bram Moolenaar94237492017-04-23 18:40:21 +0200424 register x] and start insert
Bram Moolenaar071d4272004-06-13 20:20:40 +0000425|t| t{char} 1 cursor till before Nth occurrence of {char}
426 to the right
427|u| u 2 undo changes
428|v| v start characterwise Visual mode
429|w| w 1 cursor N words forward
430|x| ["x]x 2 delete N characters under and after the
Bram Moolenaar94237492017-04-23 18:40:21 +0200431 cursor [into register x]
432|y| ["x]y{motion} yank Nmove text [into register x]
433|yy| ["x]yy yank N lines [into register x]
Bram Moolenaarc6039d82005-12-02 00:44:04 +0000434|z| z{char} commands starting with 'z', see |z| below
Bram Moolenaar071d4272004-06-13 20:20:40 +0000435|{| { 1 cursor N paragraphs backward
436|bar| | 1 cursor to column N
437|}| } 1 cursor N paragraphs forward
438|~| ~ 2 'tildeop' off: switch case of N characters
439 under cursor and move the cursor N
440 characters to the right
441|~| ~{motion} 'tildeop' on: switch case of Nmove text
442|<C-End>| <C-End> 1 same as "G"
443|<C-Home>| <C-Home> 1 same as "gg"
444|<C-Left>| <C-Left> 1 same as "b"
445|<C-LeftMouse>| <C-LeftMouse> ":ta" to the keyword at the mouse click
446|<C-Right>| <C-Right> 1 same as "w"
447|<C-RightMouse>| <C-RightMouse> same as "CTRL-T"
Bram Moolenaar62a23252020-08-09 14:04:42 +0200448|<C-Tab>| <C-Tab> same as "g<Tab>"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000449|<Del>| ["x]<Del> 2 same as "x"
450|N<Del>| {count}<Del> remove the last digit from {count}
451|<Down>| <Down> 1 same as "j"
452|<End>| <End> 1 same as "$"
453|<F1>| <F1> same as <Help>
454|<Help>| <Help> open a help window
455|<Home>| <Home> 1 same as "0"
456|<Insert>| <Insert> 2 same as "i"
457|<Left>| <Left> 1 same as "h"
458|<LeftMouse>| <LeftMouse> 1 move cursor to the mouse click position
Bram Moolenaarfa13eef2013-02-06 17:34:04 +0100459|<MiddleMouse>| <MiddleMouse> 2 same as "gP" at the mouse click position
Bram Moolenaar071d4272004-06-13 20:20:40 +0000460|<PageDown>| <PageDown> same as CTRL-F
461|<PageUp>| <PageUp> same as CTRL-B
462|<Right>| <Right> 1 same as "l"
463|<RightMouse>| <RightMouse> start Visual mode, move cursor to the mouse
464 click position
465|<S-Down>| <S-Down> 1 same as CTRL-F
466|<S-Left>| <S-Left> 1 same as "b"
467|<S-LeftMouse>| <S-LeftMouse> same as "*" at the mouse click position
468|<S-Right>| <S-Right> 1 same as "w"
469|<S-RightMouse>| <S-RightMouse> same as "#" at the mouse click position
470|<S-Up>| <S-Up> 1 same as CTRL-B
471|<Undo>| <Undo> 2 same as "u"
472|<Up>| <Up> 1 same as "k"
Bram Moolenaar8d9b40e2010-07-25 15:49:07 +0200473|<ScrollWheelDown>| <ScrollWheelDown> move window three lines down
474|<S-ScrollWheelDown>| <S-ScrollWheelDown> move window one page down
475|<ScrollWheelUp>| <ScrollWheelUp> move window three lines up
476|<S-ScrollWheelUp>| <S-ScrollWheelUp> move window one page up
477|<ScrollWheelLeft>| <ScrollWheelLeft> move window six columns left
478|<S-ScrollWheelLeft>| <S-ScrollWheelLeft> move window one page left
479|<ScrollWheelRight>| <ScrollWheelRight> move window six columns right
480|<S-ScrollWheelRight>| <S-ScrollWheelRight> move window one page right
Bram Moolenaar071d4272004-06-13 20:20:40 +0000481
482==============================================================================
4832.1 Text objects *objects*
484
485These can be used after an operator or in Visual mode to select an object.
486
Bram Moolenaar2a8a3ec2011-01-08 16:06:37 +0100487tag command action in op-pending and Visual mode ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000488------------------------------------------------------------------------------
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000489|v_aquote| a" double quoted string
490|v_a'| a' single quoted string
Bram Moolenaar071d4272004-06-13 20:20:40 +0000491|v_a(| a( same as ab
492|v_a)| a) same as ab
493|v_a<| a< "a <>" from '<' to the matching '>'
494|v_a>| a> same as a<
495|v_aB| aB "a Block" from "[{" to "]}" (with brackets)
496|v_aW| aW "a WORD" (with white space)
497|v_a[| a[ "a []" from '[' to the matching ']'
498|v_a]| a] same as a[
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000499|v_a`| a` string in backticks
Bram Moolenaar071d4272004-06-13 20:20:40 +0000500|v_ab| ab "a block" from "[(" to "])" (with braces)
501|v_ap| ap "a paragraph" (with white space)
502|v_as| as "a sentence" (with white space)
Bram Moolenaarf2330482008-06-24 20:19:36 +0000503|v_at| at "a tag block" (with white space)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000504|v_aw| aw "a word" (with white space)
505|v_a{| a{ same as aB
506|v_a}| a} same as aB
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000507|v_iquote| i" double quoted string without the quotes
508|v_i'| i' single quoted string without the quotes
Bram Moolenaar071d4272004-06-13 20:20:40 +0000509|v_i(| i( same as ib
510|v_i)| i) same as ib
511|v_i<| i< "inner <>" from '<' to the matching '>'
512|v_i>| i> same as i<
513|v_iB| iB "inner Block" from "[{" and "]}"
514|v_iW| iW "inner WORD"
515|v_i[| i[ "inner []" from '[' to the matching ']'
516|v_i]| i] same as i[
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000517|v_i`| i` string in backticks without the backticks
Bram Moolenaar071d4272004-06-13 20:20:40 +0000518|v_ib| ib "inner block" from "[(" to "])"
519|v_ip| ip "inner paragraph"
520|v_is| is "inner sentence"
Bram Moolenaarf2330482008-06-24 20:19:36 +0000521|v_it| it "inner tag block"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000522|v_iw| iw "inner word"
523|v_i{| i{ same as iB
524|v_i}| i} same as iB
525
526==============================================================================
5272.2 Window commands *CTRL-W*
528
529tag command action in Normal mode ~
530------------------------------------------------------------------------------
531|CTRL-W_CTRL-B| CTRL-W CTRL-B same as "CTRL-W b"
532|CTRL-W_CTRL-C| CTRL-W CTRL-C same as "CTRL-W c"
533|CTRL-W_CTRL-D| CTRL-W CTRL-D same as "CTRL-W d"
534|CTRL-W_CTRL-F| CTRL-W CTRL-F same as "CTRL-W f"
535 CTRL-W CTRL-G same as "CTRL-W g .."
536|CTRL-W_CTRL-H| CTRL-W CTRL-H same as "CTRL-W h"
537|CTRL-W_CTRL-I| CTRL-W CTRL-I same as "CTRL-W i"
538|CTRL-W_CTRL-J| CTRL-W CTRL-J same as "CTRL-W j"
539|CTRL-W_CTRL-K| CTRL-W CTRL-K same as "CTRL-W k"
540|CTRL-W_CTRL-L| CTRL-W CTRL-L same as "CTRL-W l"
541|CTRL-W_CTRL-N| CTRL-W CTRL-N same as "CTRL-W n"
542|CTRL-W_CTRL-O| CTRL-W CTRL-O same as "CTRL-W o"
543|CTRL-W_CTRL-P| CTRL-W CTRL-P same as "CTRL-W p"
544|CTRL-W_CTRL-Q| CTRL-W CTRL-Q same as "CTRL-W q"
545|CTRL-W_CTRL-R| CTRL-W CTRL-R same as "CTRL-W r"
546|CTRL-W_CTRL-S| CTRL-W CTRL-S same as "CTRL-W s"
547|CTRL-W_CTRL-T| CTRL-W CTRL-T same as "CTRL-W t"
548|CTRL-W_CTRL-V| CTRL-W CTRL-V same as "CTRL-W v"
549|CTRL-W_CTRL-W| CTRL-W CTRL-W same as "CTRL-W w"
550|CTRL-W_CTRL-X| CTRL-W CTRL-X same as "CTRL-W x"
551|CTRL-W_CTRL-Z| CTRL-W CTRL-Z same as "CTRL-W z"
552|CTRL-W_CTRL-]| CTRL-W CTRL-] same as "CTRL-W ]"
553|CTRL-W_CTRL-^| CTRL-W CTRL-^ same as "CTRL-W ^"
554|CTRL-W_CTRL-_| CTRL-W CTRL-_ same as "CTRL-W _"
555|CTRL-W_+| CTRL-W + increase current window height N lines
556|CTRL-W_-| CTRL-W - decrease current window height N lines
Bram Moolenaarb6e0ec62017-07-23 22:12:20 +0200557|CTRL-W_:| CTRL-W : same as |:|, edit a command line
Bram Moolenaar071d4272004-06-13 20:20:40 +0000558|CTRL-W_<| CTRL-W < decrease current window width N columns
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100559|CTRL-W_=| CTRL-W = make all windows the same height & width
Bram Moolenaar071d4272004-06-13 20:20:40 +0000560|CTRL-W_>| CTRL-W > increase current window width N columns
561|CTRL-W_H| CTRL-W H move current window to the far left
562|CTRL-W_J| CTRL-W J move current window to the very bottom
563|CTRL-W_K| CTRL-W K move current window to the very top
564|CTRL-W_L| CTRL-W L move current window to the far right
565|CTRL-W_P| CTRL-W P go to preview window
566|CTRL-W_R| CTRL-W R rotate windows upwards N times
567|CTRL-W_S| CTRL-W S same as "CTRL-W s"
Bram Moolenaar4c3f5362006-04-11 21:38:50 +0000568|CTRL-W_T| CTRL-W T move current window to a new tab page
Bram Moolenaar071d4272004-06-13 20:20:40 +0000569|CTRL-W_W| CTRL-W W go to N previous window (wrap around)
570|CTRL-W_]| CTRL-W ] split window and jump to tag under cursor
571|CTRL-W_^| CTRL-W ^ split current window and edit alternate
572 file N
573|CTRL-W__| CTRL-W _ set current window height to N (default:
574 very high)
575|CTRL-W_b| CTRL-W b go to bottom window
576|CTRL-W_c| CTRL-W c close current window (like |:close|)
577|CTRL-W_d| CTRL-W d split window and jump to definition under
578 the cursor
579|CTRL-W_f| CTRL-W f split window and edit file name under the
580 cursor
Bram Moolenaard1f56e62006-02-22 21:25:37 +0000581|CTRL-W_F| CTRL-W F split window and edit file name under the
582 cursor and jump to the line number
583 following the file name.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000584|CTRL-W_g_CTRL-]| CTRL-W g CTRL-] split window and do |:tjump| to tag under
585 cursor
586|CTRL-W_g]| CTRL-W g ] split window and do |:tselect| for tag
587 under cursor
588|CTRL-W_g}| CTRL-W g } do a |:ptjump| to the tag under the cursor
Bram Moolenaar8dff8182006-04-06 20:18:50 +0000589|CTRL-W_gf| CTRL-W g f edit file name under the cursor in a new
590 tab page
Bram Moolenaar57657d82006-04-21 22:12:41 +0000591|CTRL-W_gF| CTRL-W g F edit file name under the cursor in a new
592 tab page and jump to the line number
593 following the file name.
Bram Moolenaar26967612019-03-17 17:13:16 +0100594|CTRL-W_gt| CTRL-W g t same as `gt`: go to next tab page
595|CTRL-W_gT| CTRL-W g T same as `gT`: go to previous tab page
Bram Moolenaar62a23252020-08-09 14:04:42 +0200596|CTRL-W_g<Tab>| CTRL-W g <Tab> same as |g<Tab>|: go to last accessed tab
597 page.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000598|CTRL-W_h| CTRL-W h go to Nth left window (stop at first window)
599|CTRL-W_i| CTRL-W i split window and jump to declaration of
600 identifier under the cursor
601|CTRL-W_j| CTRL-W j go N windows down (stop at last window)
602|CTRL-W_k| CTRL-W k go N windows up (stop at first window)
603|CTRL-W_l| CTRL-W l go to Nth right window (stop at last window)
604|CTRL-W_n| CTRL-W n open new window, N lines high
605|CTRL-W_o| CTRL-W o close all but current window (like |:only|)
606|CTRL-W_p| CTRL-W p go to previous (last accessed) window
607|CTRL-W_q| CTRL-W q quit current window (like |:quit|)
608|CTRL-W_r| CTRL-W r rotate windows downwards N times
609|CTRL-W_s| CTRL-W s split current window in two parts, new
610 window N lines high
611|CTRL-W_t| CTRL-W t go to top window
612|CTRL-W_v| CTRL-W v split current window vertically, new window
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100613 N columns wide
Bram Moolenaar071d4272004-06-13 20:20:40 +0000614|CTRL-W_w| CTRL-W w go to N next window (wrap around)
615|CTRL-W_x| CTRL-W x exchange current window with window N
616 (default: next window)
617|CTRL-W_z| CTRL-W z close preview window
618|CTRL-W_bar| CTRL-W | set window width to N columns
619|CTRL-W_}| CTRL-W } show tag under cursor in preview window
620|CTRL-W_<Down>| CTRL-W <Down> same as "CTRL-W j"
621|CTRL-W_<Up>| CTRL-W <Up> same as "CTRL-W k"
622|CTRL-W_<Left>| CTRL-W <Left> same as "CTRL-W h"
623|CTRL-W_<Right>| CTRL-W <Right> same as "CTRL-W l"
624
625==============================================================================
6262.3 Square bracket commands *[* *]*
627
628tag char note action in Normal mode ~
629------------------------------------------------------------------------------
630|[_CTRL-D| [ CTRL-D jump to first #define found in current and
631 included files matching the word under the
632 cursor, start searching at beginning of
633 current file
634|[_CTRL-I| [ CTRL-I jump to first line in current and included
635 files that contains the word under the
636 cursor, start searching at beginning of
637 current file
638|[#| [# 1 cursor to N previous unmatched #if, #else
639 or #ifdef
640|['| [' 1 cursor to previous lowercase mark, on first
641 non-blank
642|[(| [( 1 cursor N times back to unmatched '('
643|[star| [* 1 same as "[/"
644|[`| [` 1 cursor to previous lowercase mark
645|[/| [/ 1 cursor to N previous start of a C comment
646|[D| [D list all defines found in current and
647 included files matching the word under the
648 cursor, start searching at beginning of
649 current file
650|[I| [I list all lines found in current and
651 included files that contain the word under
652 the cursor, start searching at beginning of
653 current file
654|[P| [P 2 same as "[p"
655|[[| [[ 1 cursor N sections backward
656|[]| [] 1 cursor N SECTIONS backward
657|[c| [c 1 cursor N times backwards to start of change
658|[d| [d show first #define found in current and
659 included files matching the word under the
660 cursor, start searching at beginning of
661 current file
662|[f| [f same as "gf"
663|[i| [i show first line found in current and
664 included files that contains the word under
665 the cursor, start searching at beginning of
666 current file
Bram Moolenaar071d4272004-06-13 20:20:40 +0000667|[m| [m 1 cursor N times back to start of member
668 function
Bram Moolenaardd2a3cd2007-05-05 17:10:09 +0000669|[p| [p 2 like "P", but adjust indent to current line
670|[s| [s 1 move to the previous misspelled word
Bram Moolenaar071d4272004-06-13 20:20:40 +0000671|[z| [z 1 move to start of open fold
672|[{| [{ 1 cursor N times back to unmatched '{'
Bram Moolenaarfa13eef2013-02-06 17:34:04 +0100673|[<MiddleMouse>| [<MiddleMouse> 2 same as "[p"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000674
675|]_CTRL-D| ] CTRL-D jump to first #define found in current and
676 included files matching the word under the
677 cursor, start searching at cursor position
678|]_CTRL-I| ] CTRL-I jump to first line in current and included
679 files that contains the word under the
680 cursor, start searching at cursor position
681|]#| ]# 1 cursor to N next unmatched #endif or #else
682|]'| ]' 1 cursor to next lowercase mark, on first
683 non-blank
684|])| ]) 1 cursor N times forward to unmatched ')'
685|]star| ]* 1 same as "]/"
686|]`| ]` 1 cursor to next lowercase mark
687|]/| ]/ 1 cursor to N next end of a C comment
688|]D| ]D list all #defines found in current and
689 included files matching the word under the
690 cursor, start searching at cursor position
691|]I| ]I list all lines found in current and
692 included files that contain the word under
693 the cursor, start searching at cursor
694 position
695|]P| ]P 2 same as "[p"
696|][| ][ 1 cursor N SECTIONS forward
697|]]| ]] 1 cursor N sections forward
698|]c| ]c 1 cursor N times forward to start of change
699|]d| ]d show first #define found in current and
700 included files matching the word under the
701 cursor, start searching at cursor position
702|]f| ]f same as "gf"
703|]i| ]i show first line found in current and
704 included files that contains the word under
705 the cursor, start searching at cursor
706 position
Bram Moolenaar071d4272004-06-13 20:20:40 +0000707|]m| ]m 1 cursor N times forward to end of member
708 function
Bram Moolenaardd2a3cd2007-05-05 17:10:09 +0000709|]p| ]p 2 like "p", but adjust indent to current line
710|]s| ]s 1 move to next misspelled word
Bram Moolenaar071d4272004-06-13 20:20:40 +0000711|]z| ]z 1 move to end of open fold
712|]}| ]} 1 cursor N times forward to unmatched '}'
Bram Moolenaarfa13eef2013-02-06 17:34:04 +0100713|]<MiddleMouse>| ]<MiddleMouse> 2 same as "]p"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000714
715==============================================================================
7162.4 Commands starting with 'g' *g*
717
718tag char note action in Normal mode ~
719------------------------------------------------------------------------------
720|g_CTRL-A| g CTRL-A only when compiled with MEM_PROFILE
721 defined: dump a memory profile
722|g_CTRL-G| g CTRL-G show information about current cursor
723 position
724|g_CTRL-H| g CTRL-H start Select block mode
725|g_CTRL-]| g CTRL-] |:tjump| to the tag under the cursor
726|g#| g# 1 like "#", but without using "\<" and "\>"
727|g$| g$ 1 when 'wrap' off go to rightmost character of
728 the current line that is on the screen;
729 when 'wrap' on go to the rightmost character
730 of the current screen line
731|g&| g& 2 repeat last ":s" on all lines
732|g'| g'{mark} 1 like |'| but without changing the jumplist
733|g`| g`{mark} 1 like |`| but without changing the jumplist
734|gstar| g* 1 like "*", but without using "\<" and "\>"
Bram Moolenaar2b8388b2015-02-28 13:11:45 +0100735|g+| g+ go to newer text state N times
736|g,| g, 1 go to N newer position in change list
737|g-| g- go to older text state N times
Bram Moolenaar071d4272004-06-13 20:20:40 +0000738|g0| g0 1 when 'wrap' off go to leftmost character of
739 the current line that is on the screen;
740 when 'wrap' on go to the leftmost character
741 of the current screen line
742|g8| g8 print hex value of bytes used in UTF-8
743 character under the cursor
Bram Moolenaar2b8388b2015-02-28 13:11:45 +0100744|g;| g; 1 go to N older position in change list
Bram Moolenaarcfc7d632005-07-28 22:28:16 +0000745|g<| g< display previous command output
Bram Moolenaar071d4272004-06-13 20:20:40 +0000746|g?| g? 2 Rot13 encoding operator
747|g?g?| g?? 2 Rot13 encode current line
748|g?g?| g?g? 2 Rot13 encode current line
749|gD| gD 1 go to definition of word under the cursor
750 in current file
751|gE| gE 1 go backwards to the end of the previous
752 WORD
753|gH| gH start Select line mode
754|gI| gI 2 like "I", but always start in column 1
755|gJ| gJ 2 join lines without inserting space
Bram Moolenaar6c35bea2012-07-25 17:49:10 +0200756|gN| gN 1,2 find the previous match with the last used
757 search pattern and Visually select it
Bram Moolenaar071d4272004-06-13 20:20:40 +0000758|gP| ["x]gP 2 put the text [from register x] before the
759 cursor N times, leave the cursor after it
zeertzjqd9be94c2024-07-14 10:20:20 +0200760|gQ| gQ switch to "Ex" mode with Vim editing
Bram Moolenaar071d4272004-06-13 20:20:40 +0000761|gR| gR 2 enter Virtual Replace mode
Bram Moolenaar531da592013-05-06 05:58:55 +0200762|gT| gT go to the previous tab page
Bram Moolenaar071d4272004-06-13 20:20:40 +0000763|gU| gU{motion} 2 make Nmove text uppercase
764|gV| gV don't reselect the previous Visual area
765 when executing a mapping or menu in Select
766 mode
767|g]| g] :tselect on the tag under the cursor
768|g^| g^ 1 when 'wrap' off go to leftmost non-white
769 character of the current line that is on
770 the screen; when 'wrap' on go to the
771 leftmost non-white character of the current
772 screen line
Bram Moolenaar2b8388b2015-02-28 13:11:45 +0100773|g_| g_ 1 cursor to the last CHAR N - 1 lines lower
Bram Moolenaar071d4272004-06-13 20:20:40 +0000774|ga| ga print ascii value of character under the
775 cursor
776|gd| gd 1 go to definition of word under the cursor
777 in current function
778|ge| ge 1 go backwards to the end of the previous
779 word
780|gf| gf start editing the file whose name is under
781 the cursor
Bram Moolenaard1f56e62006-02-22 21:25:37 +0000782|gF| gF start editing the file whose name is under
783 the cursor and jump to the line number
784 following the filename.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000785|gg| gg 1 cursor to line N, default first line
786|gh| gh start Select mode
787|gi| gi 2 like "i", but first move to the |'^| mark
788|gj| gj 1 like "j", but when 'wrap' on go N screen
789 lines down
790|gk| gk 1 like "k", but when 'wrap' on go N screen
791 lines up
792|gm| gm 1 go to character at middle of the screenline
Bram Moolenaar8b530c12019-10-28 02:13:05 +0100793|gM| gM 1 go to character at middle of the text line
Bram Moolenaar4f4d51a2020-10-11 13:57:40 +0200794|gn| gn 1,2 find the next match with the last used
795 search pattern and Visually select it
Bram Moolenaar071d4272004-06-13 20:20:40 +0000796|go| go 1 cursor to byte N in the buffer
797|gp| ["x]gp 2 put the text [from register x] after the
798 cursor N times, leave the cursor after it
799|gq| gq{motion} 2 format Nmove text
800|gr| gr{char} 2 virtual replace N chars with {char}
801|gs| gs go to sleep for N seconds (default 1)
Bram Moolenaar531da592013-05-06 05:58:55 +0200802|gt| gt go to the next tab page
Bram Moolenaar071d4272004-06-13 20:20:40 +0000803|gu| gu{motion} 2 make Nmove text lowercase
804|gv| gv reselect the previous Visual area
805|gw| gw{motion} 2 format Nmove text and keep cursor
Bram Moolenaarc9b4b052006-04-30 18:54:39 +0000806|g@| g@{motion} call 'operatorfunc'
Bram Moolenaar071d4272004-06-13 20:20:40 +0000807|g~| g~{motion} 2 swap case for Nmove text
808|g<Down>| g<Down> 1 same as "gj"
809|g<End>| g<End> 1 same as "g$"
810|g<Home>| g<Home> 1 same as "g0"
811|g<LeftMouse>| g<LeftMouse> same as <C-LeftMouse>
812 g<MiddleMouse> same as <C-MiddleMouse>
813|g<RightMouse>| g<RightMouse> same as <C-RightMouse>
Bram Moolenaar62a23252020-08-09 14:04:42 +0200814|g<Tab>| g<Tab> go to the last accessed tab page.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000815|g<Up>| g<Up> 1 same as "gk"
816
817==============================================================================
8182.5 Commands starting with 'z' *z*
819
820tag char note action in Normal mode ~
821------------------------------------------------------------------------------
822|z<CR>| z<CR> redraw, cursor line to top of window,
823 cursor on first non-blank
824|zN<CR>| z{height}<CR> redraw, make window {height} lines high
825|z+| z+ cursor on line N (default line below
826 window), otherwise like "z<CR>"
827|z-| z- redraw, cursor line at bottom of window,
828 cursor on first non-blank
829|z.| z. redraw, cursor line to center of window,
830 cursor on first non-blank
Bram Moolenaar5c2f0502005-12-23 22:11:04 +0000831|z=| z= give spelling suggestions
Bram Moolenaar071d4272004-06-13 20:20:40 +0000832|zA| zA open a closed fold or close an open fold
833 recursively
834|zC| zC close folds recursively
835|zD| zD delete folds recursively
836|zE| zE eliminate all folds
837|zF| zF create a fold for N lines
Bram Moolenaaracc22402020-06-07 21:07:18 +0200838|zG| zG temporarily mark word as correctly spelled
Bram Moolenaar56b45b92013-06-24 22:22:18 +0200839|zH| zH when 'wrap' off scroll half a screenwidth
840 to the right
841|zL| zL when 'wrap' off scroll half a screenwidth
842 to the left
Bram Moolenaar071d4272004-06-13 20:20:40 +0000843|zM| zM set 'foldlevel' to zero
844|zN| zN set 'foldenable'
845|zO| zO open folds recursively
846|zR| zR set 'foldlevel' to the deepest fold
Bram Moolenaaracc22402020-06-07 21:07:18 +0200847|zW| zW temporarily mark word as incorrectly spelled
Bram Moolenaar071d4272004-06-13 20:20:40 +0000848|zX| zX re-apply 'foldlevel'
849|z^| z^ cursor on line N (default line above
850 window), otherwise like "z-"
851|za| za open a closed fold, close an open fold
852|zb| zb redraw, cursor line at bottom of window
853|zc| zc close a fold
854|zd| zd delete a fold
855|ze| ze when 'wrap' off scroll horizontally to
856 position the cursor at the end (right side)
857 of the screen
858|zf| zf{motion} create a fold for Nmove text
Bram Moolenaaracc22402020-06-07 21:07:18 +0200859|zg| zg permanently mark word as correctly spelled
Bram Moolenaar071d4272004-06-13 20:20:40 +0000860|zh| zh when 'wrap' off scroll screen N characters
861 to the right
862|zi| zi toggle 'foldenable'
863|zj| zj 1 move to the start of the next fold
864|zk| zk 1 move to the end of the previous fold
865|zl| zl when 'wrap' off scroll screen N characters
866 to the left
867|zm| zm subtract one from 'foldlevel'
868|zn| zn reset 'foldenable'
869|zo| zo open fold
Christian Brabandt2fa93842021-05-30 22:17:25 +0200870|zp| zp paste in block-mode without trailing spaces
871|zP| zP paste in block-mode without trailing spaces
Bram Moolenaar071d4272004-06-13 20:20:40 +0000872|zr| zr add one to 'foldlevel'
873|zs| zs when 'wrap' off scroll horizontally to
874 position the cursor at the start (left
875 side) of the screen
876|zt| zt redraw, cursor line at top of window
Bram Moolenaar25c9c682019-05-05 18:13:34 +0200877|zuw| zuw undo |zw|
878|zug| zug undo |zg|
879|zuW| zuW undo |zW|
880|zuG| zuG undo |zG|
Bram Moolenaar071d4272004-06-13 20:20:40 +0000881|zv| zv open enough folds to view the cursor line
Bram Moolenaaracc22402020-06-07 21:07:18 +0200882|zw| zw permanently mark word as incorrectly spelled
Bram Moolenaar071d4272004-06-13 20:20:40 +0000883|zx| zx re-apply 'foldlevel' and do "zv"
Christian Brabandt544a38e2021-06-10 19:39:11 +0200884|zy| zy yank without trailing spaces
Bram Moolenaar071d4272004-06-13 20:20:40 +0000885|zz| zz redraw, cursor line at center of window
886|z<Left>| z<Left> same as "zh"
887|z<Right>| z<Right> same as "zl"
888
889==============================================================================
Bram Moolenaarf6b40102019-02-22 15:24:03 +01008902.6 Operator-pending mode *operator-pending-index*
891
892These can be used after an operator, but before a {motion} has been entered.
893
Bram Moolenaar26967612019-03-17 17:13:16 +0100894tag char action in Operator-pending mode ~
Bram Moolenaarf6b40102019-02-22 15:24:03 +0100895-----------------------------------------------------------------------
896|o_v| v force operator to work characterwise
897|o_V| V force operator to work linewise
898|o_CTRL-V| CTRL-V force operator to work blockwise
899
900==============================================================================
Bram Moolenaar071d4272004-06-13 20:20:40 +00009013. Visual mode *visual-index*
902
Bram Moolenaar402d2fe2005-04-15 21:00:38 +0000903Most commands in Visual mode are the same as in Normal mode. The ones listed
Bram Moolenaar071d4272004-06-13 20:20:40 +0000904here are those that are different.
905
906tag command note action in Visual mode ~
907------------------------------------------------------------------------------
908|v_CTRL-\_CTRL-N| CTRL-\ CTRL-N stop Visual mode
909|v_CTRL-\_CTRL-G| CTRL-\ CTRL-G go to mode specified with 'insertmode'
Bram Moolenaaraa3b15d2016-04-21 08:53:19 +0200910|v_CTRL-A| CTRL-A 2 add N to number in highlighted text
Bram Moolenaar81695252004-12-29 20:58:21 +0000911|v_CTRL-C| CTRL-C stop Visual mode
Bram Moolenaar071d4272004-06-13 20:20:40 +0000912|v_CTRL-G| CTRL-G toggle between Visual mode and Select mode
913|v_<BS>| <BS> 2 Select mode: delete highlighted area
914|v_CTRL-H| CTRL-H 2 same as <BS>
915|v_CTRL-O| CTRL-O switch from Select to Visual mode for one
916 command
917|v_CTRL-V| CTRL-V make Visual mode blockwise or stop Visual
918 mode
Bram Moolenaaraa3b15d2016-04-21 08:53:19 +0200919|v_CTRL-X| CTRL-X 2 subtract N from number in highlighted text
Bram Moolenaar81695252004-12-29 20:58:21 +0000920|v_<Esc>| <Esc> stop Visual mode
Bram Moolenaar071d4272004-06-13 20:20:40 +0000921|v_CTRL-]| CTRL-] jump to highlighted tag
922|v_!| !{filter} 2 filter the highlighted lines through the
923 external command {filter}
924|v_:| : start a command-line with the highlighted
925 lines as a range
926|v_<| < 2 shift the highlighted lines one
927 'shiftwidth' left
928|v_=| = 2 filter the highlighted lines through the
929 external program given with the 'equalprg'
930 option
931|v_>| > 2 shift the highlighted lines one
932 'shiftwidth' right
933|v_b_A| A 2 block mode: append same text in all lines,
934 after the highlighted area
935|v_C| C 2 delete the highlighted lines and start
936 insert
937|v_D| D 2 delete the highlighted lines
938|v_b_I| I 2 block mode: insert same text in all lines,
939 before the highlighted area
940|v_J| J 2 join the highlighted lines
941|v_K| K run 'keywordprg' on the highlighted area
Bram Moolenaarf10911e2022-01-29 22:20:48 +0000942|v_O| O move horizontally to other corner of area
943|v_P| P replace highlighted area with register
Shougo Matsushita509142a2022-05-06 11:45:09 +0100944 contents; registers are unchanged
Bram Moolenaar071d4272004-06-13 20:20:40 +0000945 Q does not start Ex mode
946|v_R| R 2 delete the highlighted lines and start
947 insert
948|v_S| S 2 delete the highlighted lines and start
949 insert
950|v_U| U 2 make highlighted area uppercase
951|v_V| V make Visual mode linewise or stop Visual
952 mode
953|v_X| X 2 delete the highlighted lines
954|v_Y| Y yank the highlighted lines
Bram Moolenaarf2330482008-06-24 20:19:36 +0000955|v_aquote| a" extend highlighted area with a double
956 quoted string
957|v_a'| a' extend highlighted area with a single
958 quoted string
Bram Moolenaar071d4272004-06-13 20:20:40 +0000959|v_a(| a( same as ab
960|v_a)| a) same as ab
961|v_a<| a< extend highlighted area with a <> block
962|v_a>| a> same as a<
963|v_aB| aB extend highlighted area with a {} block
964|v_aW| aW extend highlighted area with "a WORD"
965|v_a[| a[ extend highlighted area with a [] block
966|v_a]| a] same as a[
Bram Moolenaarf2330482008-06-24 20:19:36 +0000967|v_a`| a` extend highlighted area with a backtick
968 quoted string
Bram Moolenaar071d4272004-06-13 20:20:40 +0000969|v_ab| ab extend highlighted area with a () block
970|v_ap| ap extend highlighted area with a paragraph
971|v_as| as extend highlighted area with a sentence
Bram Moolenaarf2330482008-06-24 20:19:36 +0000972|v_at| at extend highlighted area with a tag block
Bram Moolenaar071d4272004-06-13 20:20:40 +0000973|v_aw| aw extend highlighted area with "a word"
974|v_a{| a{ same as aB
975|v_a}| a} same as aB
976|v_c| c 2 delete highlighted area and start insert
977|v_d| d 2 delete highlighted area
Bram Moolenaaraa3b15d2016-04-21 08:53:19 +0200978|v_g_CTRL-A| g CTRL-A 2 add N to number in highlighted text
979|v_g_CTRL-X| g CTRL-X 2 subtract N from number in highlighted text
Bram Moolenaar071d4272004-06-13 20:20:40 +0000980|v_gJ| gJ 2 join the highlighted lines without
981 inserting spaces
982|v_gq| gq 2 format the highlighted lines
983|v_gv| gv exchange current and previous highlighted
984 area
Bram Moolenaarf2330482008-06-24 20:19:36 +0000985|v_iquote| i" extend highlighted area with a double
986 quoted string (without quotes)
987|v_i'| i' extend highlighted area with a single
988 quoted string (without quotes)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000989|v_i(| i( same as ib
990|v_i)| i) same as ib
991|v_i<| i< extend highlighted area with inner <> block
992|v_i>| i> same as i<
993|v_iB| iB extend highlighted area with inner {} block
994|v_iW| iW extend highlighted area with "inner WORD"
995|v_i[| i[ extend highlighted area with inner [] block
996|v_i]| i] same as i[
Bram Moolenaarf2330482008-06-24 20:19:36 +0000997|v_i`| i` extend highlighted area with a backtick
998 quoted string (without the backticks)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000999|v_ib| ib extend highlighted area with inner () block
1000|v_ip| ip extend highlighted area with inner paragraph
1001|v_is| is extend highlighted area with inner sentence
Bram Moolenaarf2330482008-06-24 20:19:36 +00001002|v_it| it extend highlighted area with inner tag block
Bram Moolenaar071d4272004-06-13 20:20:40 +00001003|v_iw| iw extend highlighted area with "inner word"
1004|v_i{| i{ same as iB
1005|v_i}| i} same as iB
1006|v_o| o move cursor to other corner of area
Bram Moolenaarf10911e2022-01-29 22:20:48 +00001007|v_p| p replace highlighted area with register
1008 contents; deleted text in unnamed register
Bram Moolenaar7dda86f2018-04-20 22:36:41 +02001009|v_r| r 2 replace highlighted area with a character
Bram Moolenaar071d4272004-06-13 20:20:40 +00001010|v_s| s 2 delete highlighted area and start insert
1011|v_u| u 2 make highlighted area lowercase
1012|v_v| v make Visual mode characterwise or stop
1013 Visual mode
1014|v_x| x 2 delete the highlighted area
1015|v_y| y yank the highlighted area
1016|v_~| ~ 2 swap case for the highlighted area
1017
1018==============================================================================
10194. Command-line editing *ex-edit-index*
1020
1021Get to the command-line with the ':', '!', '/' or '?' commands.
1022Normal characters are inserted at the current cursor position.
1023"Completion" below refers to context-sensitive completion. It will complete
1024file names, tags, commands etc. as appropriate.
1025
Bram Moolenaar26967612019-03-17 17:13:16 +01001026tag command action in Command-line editing mode ~
Bram Moolenaar2a8a3ec2011-01-08 16:06:37 +01001027------------------------------------------------------------------------------
Bram Moolenaar071d4272004-06-13 20:20:40 +00001028 CTRL-@ not used
1029|c_CTRL-A| CTRL-A do completion on the pattern in front of the
1030 cursor and insert all matches
1031|c_CTRL-B| CTRL-B cursor to begin of command-line
Bram Moolenaar2a8a3ec2011-01-08 16:06:37 +01001032|c_CTRL-C| CTRL-C same as <Esc>
Bram Moolenaar071d4272004-06-13 20:20:40 +00001033|c_CTRL-D| CTRL-D list completions that match the pattern in
1034 front of the cursor
1035|c_CTRL-E| CTRL-E cursor to end of command-line
1036|'cedit'| CTRL-F default value for 'cedit': opens the
1037 command-line window; otherwise not used
Bram Moolenaar818078d2016-08-27 21:58:42 +02001038|c_CTRL-G| CTRL-G next match when 'incsearch' is active
Bram Moolenaar071d4272004-06-13 20:20:40 +00001039|c_<BS>| <BS> delete the character in front of the cursor
1040|c_digraph| {char1} <BS> {char2}
1041 enter digraph when 'digraph' is on
1042|c_CTRL-H| CTRL-H same as <BS>
1043|c_<Tab>| <Tab> if 'wildchar' is <Tab>: Do completion on
1044 the pattern in front of the cursor
1045|c_<S-Tab>| <S-Tab> same as CTRL-P
1046|c_wildchar| 'wildchar' Do completion on the pattern in front of the
1047 cursor (default: <Tab>)
1048|c_CTRL-I| CTRL-I same as <Tab>
1049|c_<NL>| <NL> same as <CR>
1050|c_CTRL-J| CTRL-J same as <CR>
1051|c_CTRL-K| CTRL-K {char1} {char2}
1052 enter digraph
1053|c_CTRL-L| CTRL-L do completion on the pattern in front of the
1054 cursor and insert the longest common part
1055|c_<CR>| <CR> execute entered command
Bram Moolenaar2ec618c2016-10-01 14:47:05 +02001056|c_CTRL-M| CTRL-M same as <CR>
Bram Moolenaar071d4272004-06-13 20:20:40 +00001057|c_CTRL-N| CTRL-N after using 'wildchar' with multiple matches:
Bram Moolenaar214641f2017-03-05 17:04:09 +01001058 go to next match, otherwise: recall older
1059 command-line from history.
Bram Moolenaar071d4272004-06-13 20:20:40 +00001060 CTRL-O not used
1061|c_CTRL-P| CTRL-P after using 'wildchar' with multiple matches:
Bram Moolenaar214641f2017-03-05 17:04:09 +01001062 go to previous match, otherwise: recall older
1063 command-line from history.
Bram Moolenaar071d4272004-06-13 20:20:40 +00001064|c_CTRL-Q| CTRL-Q same as CTRL-V, unless it's used for terminal
1065 control flow
Bram Moolenaar63b74a82019-03-24 15:09:13 +01001066|c_CTRL-R| CTRL-R {regname}
Bram Moolenaar071d4272004-06-13 20:20:40 +00001067 insert the contents of a register or object
1068 under the cursor as if typed
Bram Moolenaar63b74a82019-03-24 15:09:13 +01001069|c_CTRL-R_CTRL-R| CTRL-R CTRL-R {regname}
1070|c_CTRL-R_CTRL-O| CTRL-R CTRL-O {regname}
Bram Moolenaar071d4272004-06-13 20:20:40 +00001071 insert the contents of a register or object
1072 under the cursor literally
Bram Moolenaaracc22402020-06-07 21:07:18 +02001073 CTRL-S not used, or used for terminal control flow
Bram Moolenaar818078d2016-08-27 21:58:42 +02001074|c_CTRL-T| CTRL-T previous match when 'incsearch' is active
Bram Moolenaar071d4272004-06-13 20:20:40 +00001075|c_CTRL-U| CTRL-U remove all characters
1076|c_CTRL-V| CTRL-V insert next non-digit literally, insert three
1077 digit decimal number as a single byte.
1078|c_CTRL-W| CTRL-W delete the word in front of the cursor
1079 CTRL-X not used (reserved for completion)
1080 CTRL-Y copy (yank) modeless selection
1081 CTRL-Z not used (reserved for suspend)
1082|c_<Esc>| <Esc> abandon command-line without executing it
Bram Moolenaar2ec618c2016-10-01 14:47:05 +02001083|c_CTRL-[| CTRL-[ same as <Esc>
Bram Moolenaarfa13eef2013-02-06 17:34:04 +01001084|c_CTRL-\_CTRL-N| CTRL-\ CTRL-N go to Normal mode, abandon command-line
1085|c_CTRL-\_CTRL-G| CTRL-\ CTRL-G go to mode specified with 'insertmode',
Bram Moolenaar071d4272004-06-13 20:20:40 +00001086 abandon command-line
1087 CTRL-\ a - d reserved for extensions
1088|c_CTRL-\_e| CTRL-\ e {expr} replace the command line with the result of
1089 {expr}
1090 CTRL-\ f - z reserved for extensions
1091 CTRL-\ others not used
Bram Moolenaardd2a3cd2007-05-05 17:10:09 +00001092|c_CTRL-]| CTRL-] trigger abbreviation
Bram Moolenaar071d4272004-06-13 20:20:40 +00001093|c_CTRL-^| CTRL-^ toggle use of |:lmap| mappings
1094|c_CTRL-_| CTRL-_ when 'allowrevins' set: change language
1095 (Hebrew, Farsi)
1096|c_<Del>| <Del> delete the character under the cursor
1097
1098|c_<Left>| <Left> cursor left
1099|c_<S-Left>| <S-Left> cursor one word left
1100|c_<C-Left>| <C-Left> cursor one word left
1101|c_<Right>| <Right> cursor right
1102|c_<S-Right>| <S-Right> cursor one word right
1103|c_<C-Right>| <C-Right> cursor one word right
1104|c_<Up>| <Up> recall previous command-line from history that
1105 matches pattern in front of the cursor
1106|c_<S-Up>| <S-Up> recall previous command-line from history
1107|c_<Down>| <Down> recall next command-line from history that
1108 matches pattern in front of the cursor
1109|c_<S-Down>| <S-Down> recall next command-line from history
1110|c_<Home>| <Home> cursor to start of command-line
1111|c_<End>| <End> cursor to end of command-line
1112|c_<PageDown>| <PageDown> same as <S-Down>
1113|c_<PageUp>| <PageUp> same as <S-Up>
1114|c_<Insert>| <Insert> toggle insert/overstrike mode
1115|c_<LeftMouse>| <LeftMouse> cursor at mouse click
1116
Yee Cheng Chin2bbd0d32023-10-14 02:23:45 -07001117commands in wildmenu mode (see 'wildmenu')
1118
1119 <Up> move up to parent / select the previous match
1120 <Down> move down to submenu / select the next match
1121 <Left> select the previous match / move up to parent
zeertzjq3c81f472023-10-15 16:02:08 +08001122 <Right> select the next match / move down to submenu
Yee Cheng Chin2bbd0d32023-10-14 02:23:45 -07001123 <CR> move into submenu when doing menu completion
Yee Cheng Chin209ec902023-10-17 10:56:25 +02001124 CTRL-E stop completion and go back to original text
1125 CTRL-Y accept selected match and stop completion
Yee Cheng Chin2bbd0d32023-10-14 02:23:45 -07001126 other stop completion and insert the typed character
1127
1128commands in wildmenu mode with 'wildoptions' set to "pum"
1129
Yee Cheng Chin2bbd0d32023-10-14 02:23:45 -07001130 <PageUp> select a match several entries back
1131 <PageDown> select a match several entries forward
1132
Bram Moolenaarf6b40102019-02-22 15:24:03 +01001133==============================================================================
11345. Terminal-Job mode *terminal-job-index*
1135
1136Most Normal mode commands except for window commands (|CTRL-W|) do not work in
1137a terminal window. Switch to Terminal-Normal mode to use them.
1138This assumes 'termwinkey' is not set.
1139
Bram Moolenaar26967612019-03-17 17:13:16 +01001140tag char action in Terminal-Job mode ~
Bram Moolenaarf6b40102019-02-22 15:24:03 +01001141-----------------------------------------------------------------------
1142|t_CTRL-\_CTRL-N| CTRL-\ CTRL-N switch to Terminal-Normal mode
Bram Moolenaar26967612019-03-17 17:13:16 +01001143|t_CTRL-W_N| CTRL-W N switch to Terminal-Normal mode
1144|t_CTRL-W_:| CTRL-W : enter an Ex command
1145|t_CTRL-W_.| CTRL-W . type CTRL-W in the terminal
Bram Moolenaarf6b40102019-02-22 15:24:03 +01001146 CTRL-W CTRL-\ send a CTRL-\ to the job in the terminal
Bram Moolenaar7ceefb32020-05-01 16:07:38 +02001147|t_CTRL-W_quote| CTRL-W " {register}
Bram Moolenaarf6b40102019-02-22 15:24:03 +01001148 paste register in the terminal
1149|t_CTRL-W_CTRL-C| CTRL-W CTRL-C forcefully ends the job
Bram Moolenaar911ead12019-04-21 00:03:35 +02001150|t_CTRL-W_CTRL-W| CTRL-W CTRL-W move focus to the next window
Bram Moolenaar26967612019-03-17 17:13:16 +01001151|t_CTRL-W_gt| CTRL-W gt go to next tabpage, same as `gt`
1152|t_CTRL-W_gT| CTRL-W gT go to previous tabpage, same as `gT`
Bram Moolenaarf6b40102019-02-22 15:24:03 +01001153
Bram Moolenaaracb4f222016-01-10 15:59:26 +01001154You found it, Arthur! *holy-grail* *:smile*
Bram Moolenaar071d4272004-06-13 20:20:40 +00001155
1156==============================================================================
Bram Moolenaarf6b40102019-02-22 15:24:03 +010011576. EX commands *ex-cmd-index* *:index*
Bram Moolenaar071d4272004-06-13 20:20:40 +00001158
1159This is a brief but complete listing of all the ":" commands, without
1160mentioning any arguments. The optional part of the command name is inside [].
1161The commands are sorted on the non-optional part of their name.
1162
Bram Moolenaar26967612019-03-17 17:13:16 +01001163tag command action ~
Bram Moolenaar2a8a3ec2011-01-08 16:06:37 +01001164------------------------------------------------------------------------------
Bram Moolenaar30e9b3c2019-09-07 16:24:12 +02001165|:| : nothing
1166|:range| :{range} go to last line in {range}
Bram Moolenaar071d4272004-06-13 20:20:40 +00001167|:!| :! filter lines or execute an external command
1168|:!!| :!! repeat last ":!" command
1169|:#| :# same as ":number"
1170|:&| :& repeat last ":substitute"
Yee Cheng Chinb77bdce2022-10-15 10:22:19 +01001171|:star| :* use the last Visual area, like :'<,'>
Bram Moolenaar071d4272004-06-13 20:20:40 +00001172|:<| :< shift lines one 'shiftwidth' left
Bram Moolenaar9da17d72022-02-09 21:50:44 +00001173|:=| := print the last line number
Bram Moolenaar071d4272004-06-13 20:20:40 +00001174|:>| :> shift lines one 'shiftwidth' right
1175|:@| :@ execute contents of a register
1176|:@@| :@@ repeat the previous ":@"
dkearns9c5b90d2024-01-24 06:34:28 +11001177|:2match| :2mat[ch] define a second match to highlight
1178|:3match| :3mat[ch] define a third match to highlight
Bram Moolenaar071d4272004-06-13 20:20:40 +00001179|:Next| :N[ext] go to previous file in the argument list
1180|:Print| :P[rint] print lines
1181|:X| :X ask for encryption key
1182|:append| :a[ppend] append text
1183|:abbreviate| :ab[breviate] enter abbreviation
1184|:abclear| :abc[lear] remove all abbreviations
1185|:aboveleft| :abo[veleft] make split window appear left or above
h-east0c3e57b2025-01-02 11:00:49 +01001186|:abstract| :abstract declare a Vim9 abstract class
Bram Moolenaar071d4272004-06-13 20:20:40 +00001187|:all| :al[l] open a window for each file in the argument
1188 list
1189|:amenu| :am[enu] enter new menu item for all modes
1190|:anoremenu| :an[oremenu] enter a new menu for all modes that will not
1191 be remapped
1192|:args| :ar[gs] print the argument list
1193|:argadd| :arga[dd] add items to the argument list
Bram Moolenaar1588bc82022-03-08 21:35:07 +00001194|:argdedupe| :argded[upe] remove duplicates from the argument list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001195|:argdelete| :argd[elete] delete items from the argument list
1196|:argedit| :arge[dit] add item to the argument list and edit it
1197|:argdo| :argdo do a command on all items in the argument list
1198|:argglobal| :argg[lobal] define the global argument list
1199|:arglocal| :argl[ocal] define a local argument list
1200|:argument| :argu[ment] go to specific file in the argument list
1201|:ascii| :as[cii] print ascii value of character under the cursor
1202|:autocmd| :au[tocmd] enter or show autocommands
1203|:augroup| :aug[roup] select the autocommand group to use
1204|:aunmenu| :aun[menu] remove menu for all modes
1205|:buffer| :b[uffer] go to specific buffer in the buffer list
1206|:bNext| :bN[ext] go to previous buffer in the buffer list
1207|:ball| :ba[ll] open a window for each buffer in the buffer list
1208|:badd| :bad[d] add buffer to the buffer list
Bram Moolenaar942db232021-02-13 18:14:48 +01001209|:balt| :balt like ":badd" but also set the alternate file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001210|:bdelete| :bd[elete] remove a buffer from the buffer list
1211|:behave| :be[have] set mouse and selection behavior
1212|:belowright| :bel[owright] make split window appear right or below
1213|:bfirst| :bf[irst] go to first buffer in the buffer list
1214|:blast| :bl[ast] go to last buffer in the buffer list
1215|:bmodified| :bm[odified] go to next buffer in the buffer list that has
1216 been modified
1217|:bnext| :bn[ext] go to next buffer in the buffer list
1218|:botright| :bo[tright] make split window appear at bottom or far right
1219|:bprevious| :bp[revious] go to previous buffer in the buffer list
1220|:brewind| :br[ewind] go to first buffer in the buffer list
1221|:break| :brea[k] break out of while loop
1222|:breakadd| :breaka[dd] add a debugger breakpoint
1223|:breakdel| :breakd[el] delete a debugger breakpoint
1224|:breaklist| :breakl[ist] list debugger breakpoints
1225|:browse| :bro[wse] use file selection dialog
h-east0c3e57b2025-01-02 11:00:49 +01001226|:bufdo| :bufd[o] execute command in each listed buffer
Bram Moolenaar071d4272004-06-13 20:20:40 +00001227|:buffers| :buffers list all files in the buffer list
1228|:bunload| :bun[load] unload a specific buffer
1229|:bwipeout| :bw[ipeout] really delete a buffer
1230|:change| :c[hange] replace a line or series of lines
1231|:cNext| :cN[ext] go to previous error
1232|:cNfile| :cNf[ile] go to last error in previous file
1233|:cabbrev| :ca[bbrev] like ":abbreviate" but for Command-line mode
1234|:cabclear| :cabc[lear] clear all abbreviations for Command-line mode
Bram Moolenaar3ff33112019-05-03 21:56:35 +02001235|:cabove| :cabo[ve] go to error above current line
Bram Moolenaara6878372014-03-22 21:02:50 +01001236|:caddbuffer| :cad[dbuffer] add errors from buffer
1237|:caddexpr| :cadde[xpr] add errors from expr
Bram Moolenaar4770d092006-01-12 23:22:24 +00001238|:caddfile| :caddf[ile] add error message to current quickfix list
Bram Moolenaarcf6a55c2019-05-05 15:02:30 +02001239|:cafter| :caf[ter] go to error after current cursor
Bram Moolenaar071d4272004-06-13 20:20:40 +00001240|:call| :cal[l] call a function
1241|:catch| :cat[ch] part of a :try command
h-east0c3e57b2025-01-02 11:00:49 +01001242|:cbefore| :cbe[fore] go to error before current cursor
Bram Moolenaarcf6a55c2019-05-05 15:02:30 +02001243|:cbelow| :cbel[ow] go to error below current line
Bram Moolenaar537ef082016-07-09 17:56:19 +02001244|:cbottom| :cbo[ttom] scroll to the bottom of the quickfix window
Bram Moolenaar86b68352004-12-27 21:59:20 +00001245|:cbuffer| :cb[uffer] parse error messages and jump to first error
Bram Moolenaar071d4272004-06-13 20:20:40 +00001246|:cc| :cc go to specific error
1247|:cclose| :ccl[ose] close quickfix window
1248|:cd| :cd change directory
Bram Moolenaaraa23b372015-09-08 18:46:31 +02001249|:cdo| :cdo execute command in each valid error list entry
1250|:cfdo| :cfd[o] execute command in each file in error list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001251|:center| :ce[nter] format lines at the center
Bram Moolenaar87e25fd2005-07-27 21:13:01 +00001252|:cexpr| :cex[pr] read errors from expr and jump to first
Bram Moolenaar071d4272004-06-13 20:20:40 +00001253|:cfile| :cf[ile] read file with error messages and jump to first
1254|:cfirst| :cfir[st] go to the specified error, default first one
Bram Moolenaarc01140a2006-03-24 22:21:52 +00001255|:cgetbuffer| :cgetb[uffer] get errors from buffer
Bram Moolenaar8ab561d2006-03-23 22:44:10 +00001256|:cgetexpr| :cgete[xpr] get errors from expr
Bram Moolenaar071d4272004-06-13 20:20:40 +00001257|:cgetfile| :cg[etfile] read file with error messages
Bram Moolenaar34700a62013-03-07 13:20:54 +01001258|:changes| :changes print the change list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001259|:chdir| :chd[ir] change directory
1260|:checkpath| :che[ckpath] list included files
1261|:checktime| :checkt[ime] check timestamp of loaded buffers
Bram Moolenaar42ebd062016-07-17 13:35:14 +02001262|:chistory| :chi[story] list the error lists
h-east27f2e472025-01-03 10:45:15 +01001263|:class| :class start of a class declaration
Bram Moolenaar071d4272004-06-13 20:20:40 +00001264|:clast| :cla[st] go to the specified error, default last one
Bram Moolenaarc95a3022016-06-12 23:01:46 +02001265|:clearjumps| :cle[arjumps] clear the jump list
1266|:clist| :cl[ist] list all errors
Bram Moolenaar071d4272004-06-13 20:20:40 +00001267|:close| :clo[se] close current window
1268|:cmap| :cm[ap] like ":map" but for Command-line mode
1269|:cmapclear| :cmapc[lear] clear all mappings for Command-line mode
1270|:cmenu| :cme[nu] add menu for Command-line mode
1271|:cnext| :cn[ext] go to next error
1272|:cnewer| :cnew[er] go to newer error list
1273|:cnfile| :cnf[ile] go to first error in next file
1274|:cnoremap| :cno[remap] like ":noremap" but for Command-line mode
1275|:cnoreabbrev| :cnorea[bbrev] like ":noreabbrev" but for Command-line mode
1276|:cnoremenu| :cnoreme[nu] like ":noremenu" but for Command-line mode
1277|:copy| :co[py] copy lines
1278|:colder| :col[der] go to older error list
1279|:colorscheme| :colo[rscheme] load a specific color scheme
1280|:command| :com[mand] create user-defined command
1281|:comclear| :comc[lear] clear all user-defined commands
1282|:compiler| :comp[iler] do settings for a specific compiler
1283|:continue| :con[tinue] go back to :while
1284|:confirm| :conf[irm] prompt user when confirmation required
Bram Moolenaar6c1e1572019-06-22 02:13:00 +02001285|:const| :cons[t] create a variable as a constant
Bram Moolenaar071d4272004-06-13 20:20:40 +00001286|:copen| :cope[n] open quickfix window
1287|:cprevious| :cp[revious] go to previous error
1288|:cpfile| :cpf[ile] go to last error in previous file
1289|:cquit| :cq[uit] quit Vim with an error code
1290|:crewind| :cr[ewind] go to the specified error, default first one
Bram Moolenaaracb4f222016-01-10 15:59:26 +01001291|:cscope| :cs[cope] execute cscope command
Bram Moolenaar071d4272004-06-13 20:20:40 +00001292|:cstag| :cst[ag] use cscope to jump to a tag
1293|:cunmap| :cu[nmap] like ":unmap" but for Command-line mode
1294|:cunabbrev| :cuna[bbrev] like ":unabbrev" but for Command-line mode
1295|:cunmenu| :cunme[nu] remove menu for Command-line mode
1296|:cwindow| :cw[indow] open or close quickfix window
1297|:delete| :d[elete] delete lines
1298|:debug| :deb[ug] run a command in debugging mode
1299|:debuggreedy| :debugg[reedy] read debug mode commands from normal input
Bram Moolenaar191acfd2020-03-27 20:42:43 +01001300|:def| :def define a Vim9 user function
Bram Moolenaar388a5d42020-05-26 21:20:45 +02001301|:defcompile| :defc[ompile] compile Vim9 user functions in current script
h-east0c3e57b2025-01-02 11:00:49 +01001302|:defer| :defe[r] call function when current function is done
Bram Moolenaar071d4272004-06-13 20:20:40 +00001303|:delcommand| :delc[ommand] delete user-defined command
1304|:delfunction| :delf[unction] delete a user function
Bram Moolenaar191acfd2020-03-27 20:42:43 +01001305|:delmarks| :delm[arks] delete marks
Bram Moolenaar071d4272004-06-13 20:20:40 +00001306|:diffupdate| :dif[fupdate] update 'diff' buffers
1307|:diffget| :diffg[et] remove differences in current buffer
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00001308|:diffoff| :diffo[ff] switch off diff mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001309|:diffpatch| :diffp[atch] apply a patch and show differences
1310|:diffput| :diffpu[t] remove differences in other buffer
1311|:diffsplit| :diffs[plit] show differences with another file
h-east0c3e57b2025-01-02 11:00:49 +01001312|:diffthis| :difft[his] make current window a diff window
Bram Moolenaar071d4272004-06-13 20:20:40 +00001313|:digraphs| :dig[raphs] show or enter digraphs
1314|:display| :di[splay] display registers
Bram Moolenaar191acfd2020-03-27 20:42:43 +01001315|:disassemble| :disa[ssemble] disassemble Vim9 user function
Bram Moolenaar071d4272004-06-13 20:20:40 +00001316|:djump| :dj[ump] jump to #define
Bram Moolenaarb1332082013-10-06 14:22:40 +02001317|:dl| :dl short for |:delete| with the 'l' flag
Bram Moolenaar9ba7e172013-07-17 22:37:26 +02001318|:dlist| :dli[st] list #defines
Bram Moolenaar071d4272004-06-13 20:20:40 +00001319|:doautocmd| :do[autocmd] apply autocommands to current buffer
1320|:doautoall| :doautoa[ll] apply autocommands for all loaded buffers
Bram Moolenaarb1332082013-10-06 14:22:40 +02001321|:dp| :d[elete]p short for |:delete| with the 'p' flag
Bram Moolenaar071d4272004-06-13 20:20:40 +00001322|:drop| :dr[op] jump to window editing file or edit file in
1323 current window
1324|:dsearch| :ds[earch] list one #define
1325|:dsplit| :dsp[lit] split window and jump to #define
1326|:edit| :e[dit] edit a file
Bram Moolenaard3667a22006-03-16 21:35:52 +00001327|:earlier| :ea[rlier] go to older change, undo
Bram Moolenaar071d4272004-06-13 20:20:40 +00001328|:echo| :ec[ho] echoes the result of expressions
Bram Moolenaardad44732021-03-31 20:07:33 +02001329|:echoconsole| :echoc[onsole] like :echomsg but write to stdout
Bram Moolenaar071d4272004-06-13 20:20:40 +00001330|:echoerr| :echoe[rr] like :echo, show like an error and use history
1331|:echohl| :echoh[l] set highlighting for echo commands
1332|:echomsg| :echom[sg] same as :echo, put message in history
1333|:echon| :echon same as :echo, but without <EOL>
Yee Cheng Chinb77bdce2022-10-15 10:22:19 +01001334|:echowindow| :echow[indow] same as :echomsg, but use a popup window
Bram Moolenaar071d4272004-06-13 20:20:40 +00001335|:else| :el[se] part of an :if command
1336|:elseif| :elsei[f] part of an :if command
1337|:emenu| :em[enu] execute a menu by name
h-east27f2e472025-01-03 10:45:15 +01001338|:endclass| :endclass end of a class declaration
Bram Moolenaar191acfd2020-03-27 20:42:43 +01001339|:enddef| :enddef end of a user function started with :def
h-east27f2e472025-01-03 10:45:15 +01001340|:endenum| :endenum end of an enum declaration
Bram Moolenaar071d4272004-06-13 20:20:40 +00001341|:endif| :en[dif] end previous :if
h-east27f2e472025-01-03 10:45:15 +01001342|:endinterface| :endinterface end of an interface declaration
Bram Moolenaar17568792005-07-06 22:28:03 +00001343|:endfor| :endfo[r] end previous :for
Bram Moolenaar191acfd2020-03-27 20:42:43 +01001344|:endfunction| :endf[unction] end of a user function started with :function
Bram Moolenaar071d4272004-06-13 20:20:40 +00001345|:endtry| :endt[ry] end previous :try
1346|:endwhile| :endw[hile] end previous :while
1347|:enew| :ene[w] edit a new, unnamed buffer
h-east0c3e57b2025-01-02 11:00:49 +01001348|:enum| :enum start of an enum declaration
Bram Moolenaar4d8f4762021-06-27 15:18:56 +02001349|:eval| :ev[al] evaluate an expression and discard the result
Bram Moolenaar071d4272004-06-13 20:20:40 +00001350|:ex| :ex same as ":edit"
1351|:execute| :exe[cute] execute result of expressions
1352|:exit| :exi[t] same as ":xit"
Bram Moolenaar191acfd2020-03-27 20:42:43 +01001353|:export| :exp[ort] Vim9: export an item from a script
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001354|:exusage| :exu[sage] overview of Ex commands
Bram Moolenaar071d4272004-06-13 20:20:40 +00001355|:file| :f[ile] show or set the current file name
1356|:files| :files list all files in the buffer list
1357|:filetype| :filet[ype] switch file type detection on/off
Bram Moolenaare4a3bcf2016-08-26 19:52:37 +02001358|:filter| :filt[er] filter output of following command
Bram Moolenaar071d4272004-06-13 20:20:40 +00001359|:find| :fin[d] find file in 'path' and edit it
Bram Moolenaar4f4d51a2020-10-11 13:57:40 +02001360|:final| :final declare an immutable variable in Vim9
Bram Moolenaar071d4272004-06-13 20:20:40 +00001361|:finally| :fina[lly] part of a :try command
1362|:finish| :fini[sh] quit sourcing a Vim script
1363|:first| :fir[st] go to the first file in the argument list
1364|:fixdel| :fix[del] set key code of <Del>
1365|:fold| :fo[ld] create a fold
1366|:foldclose| :foldc[lose] close folds
1367|:folddoopen| :foldd[oopen] execute command on lines not in a closed fold
1368|:folddoclosed| :folddoc[losed] execute command on lines in a closed fold
1369|:foldopen| :foldo[pen] open folds
Bram Moolenaar17568792005-07-06 22:28:03 +00001370|:for| :for for loop
Bram Moolenaar071d4272004-06-13 20:20:40 +00001371|:function| :fu[nction] define a user function
1372|:global| :g[lobal] execute commands for matching lines
1373|:goto| :go[to] go to byte in the buffer
1374|:grep| :gr[ep] run 'grepprg' and jump to first match
Bram Moolenaar17568792005-07-06 22:28:03 +00001375|:grepadd| :grepa[dd] like :grep, but append to current list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001376|:gui| :gu[i] start the GUI
1377|:gvim| :gv[im] start the GUI
1378|:hardcopy| :ha[rdcopy] send text to the printer
1379|:help| :h[elp] open a help window
Bram Moolenaar5bfa2ed2014-09-19 19:39:34 +02001380|:helpclose| :helpc[lose] close one help window
Bram Moolenaar071d4272004-06-13 20:20:40 +00001381|:helpfind| :helpf[ind] dialog to open a help window
1382|:helpgrep| :helpg[rep] like ":grep" but searches help files
1383|:helptags| :helpt[ags] generate help tags for a directory
1384|:highlight| :hi[ghlight] specify highlighting methods
1385|:hide| :hid[e] hide current buffer for a command
1386|:history| :his[tory] print a history list
h-eastfd771612025-01-02 17:34:55 +01001387|:horizontal| :hor[izontal] following window command work horizontally
Bram Moolenaar071d4272004-06-13 20:20:40 +00001388|:insert| :i[nsert] insert text
1389|:iabbrev| :ia[bbrev] like ":abbrev" but for Insert mode
1390|:iabclear| :iabc[lear] like ":abclear" but for Insert mode
1391|:if| :if execute commands when condition met
1392|:ijump| :ij[ump] jump to definition of identifier
1393|:ilist| :il[ist] list lines where identifier matches
1394|:imap| :im[ap] like ":map" but for Insert mode
1395|:imapclear| :imapc[lear] like ":mapclear" but for Insert mode
1396|:imenu| :ime[nu] add menu for Insert mode
Bram Moolenaar191acfd2020-03-27 20:42:43 +01001397|:import| :imp[ort] Vim9: import an item from another script
Bram Moolenaar071d4272004-06-13 20:20:40 +00001398|:inoremap| :ino[remap] like ":noremap" but for Insert mode
1399|:inoreabbrev| :inorea[bbrev] like ":noreabbrev" but for Insert mode
1400|:inoremenu| :inoreme[nu] like ":noremenu" but for Insert mode
1401|:intro| :int[ro] print the introductory message
h-east0c3e57b2025-01-02 11:00:49 +01001402|:interface| :interface start of an interface declaration
Bram Moolenaar071d4272004-06-13 20:20:40 +00001403|:isearch| :is[earch] list one line where identifier matches
1404|:isplit| :isp[lit] split window and jump to definition of
1405 identifier
1406|:iunmap| :iu[nmap] like ":unmap" but for Insert mode
1407|:iunabbrev| :iuna[bbrev] like ":unabbrev" but for Insert mode
1408|:iunmenu| :iunme[nu] remove menu for Insert mode
1409|:join| :j[oin] join lines
1410|:jumps| :ju[mps] print the jump list
1411|:k| :k set a mark
Bram Moolenaar17568792005-07-06 22:28:03 +00001412|:keepalt| :keepa[lt] following command keeps the alternate file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001413|:keepmarks| :kee[pmarks] following command keeps marks where they are
Bram Moolenaar5302d9e2011-09-14 17:55:08 +02001414|:keepjumps| :keepj[umps] following command keeps jumplist and marks
Bram Moolenaar4b60a6c2013-11-14 05:48:46 +01001415|:keeppatterns| :keepp[atterns] following command keeps search pattern history
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001416|:lNext| :lN[ext] go to previous entry in location list
1417|:lNfile| :lNf[ile] go to last entry in previous file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001418|:list| :l[ist] print lines
Bram Moolenaar3ff33112019-05-03 21:56:35 +02001419|:labove| :lab[ove] go to location above current line
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001420|:laddexpr| :lad[dexpr] add locations from expr
Bram Moolenaara37420f2006-02-04 22:37:47 +00001421|:laddbuffer| :laddb[uffer] add locations from buffer
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001422|:laddfile| :laddf[ile] add locations to current location list
Bram Moolenaarcf6a55c2019-05-05 15:02:30 +02001423|:lafter| :laf[ter] go to location after current cursor
Bram Moolenaar071d4272004-06-13 20:20:40 +00001424|:last| :la[st] go to the last file in the argument list
1425|:language| :lan[guage] set the language (locale)
Bram Moolenaard3667a22006-03-16 21:35:52 +00001426|:later| :lat[er] go to newer change, redo
h-east0c3e57b2025-01-02 11:00:49 +01001427|:lbefore| :lbe[fore] go to location before current cursor
Bram Moolenaarcf6a55c2019-05-05 15:02:30 +02001428|:lbelow| :lbel[ow] go to location below current line
Bram Moolenaar537ef082016-07-09 17:56:19 +02001429|:lbottom| :lbo[ttom] scroll to the bottom of the location window
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001430|:lbuffer| :lb[uffer] parse locations and jump to first location
Bram Moolenaar071d4272004-06-13 20:20:40 +00001431|:lcd| :lc[d] change directory locally
1432|:lchdir| :lch[dir] change directory locally
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001433|:lclose| :lcl[ose] close location window
Bram Moolenaaracb4f222016-01-10 15:59:26 +01001434|:lcscope| :lcs[cope] like ":cscope" but uses location list
Bram Moolenaaraa23b372015-09-08 18:46:31 +02001435|:ldo| :ld[o] execute command in valid location list entries
1436|:lfdo| :lfd[o] execute command in each file in location list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001437|:left| :le[ft] left align lines
1438|:leftabove| :lefta[bove] make split window appear left or above
Bram Moolenaar96cf4ba2021-04-24 14:15:41 +02001439|:legacy| :leg[acy] make following command use legacy script syntax
Bram Moolenaar071d4272004-06-13 20:20:40 +00001440|:let| :let assign a value to a variable or option
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001441|:lexpr| :lex[pr] read locations from expr and jump to first
1442|:lfile| :lf[ile] read file with locations and jump to first
1443|:lfirst| :lfir[st] go to the specified location, default first one
Bram Moolenaarc01140a2006-03-24 22:21:52 +00001444|:lgetbuffer| :lgetb[uffer] get locations from buffer
Bram Moolenaar8ab561d2006-03-23 22:44:10 +00001445|:lgetexpr| :lgete[xpr] get locations from expr
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001446|:lgetfile| :lg[etfile] read file with locations
Bram Moolenaara37420f2006-02-04 22:37:47 +00001447|:lgrep| :lgr[ep] run 'grepprg' and jump to first match
1448|:lgrepadd| :lgrepa[dd] like :grep, but append to current list
Bram Moolenaar8b6144b2006-02-08 09:20:24 +00001449|:lhelpgrep| :lh[elpgrep] like ":helpgrep" but uses location list
Bram Moolenaar42ebd062016-07-17 13:35:14 +02001450|:lhistory| :lhi[story] list the location lists
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001451|:ll| :ll go to specific location
1452|:llast| :lla[st] go to the specified location, default last one
1453|:llist| :lli[st] list all locations
Bram Moolenaara37420f2006-02-04 22:37:47 +00001454|:lmake| :lmak[e] execute external command 'makeprg' and parse
1455 error messages
Bram Moolenaar071d4272004-06-13 20:20:40 +00001456|:lmap| :lm[ap] like ":map!" but includes Lang-Arg mode
1457|:lmapclear| :lmapc[lear] like ":mapclear!" but includes Lang-Arg mode
Bram Moolenaar6ab5b842006-01-26 22:16:34 +00001458|:lnext| :lne[xt] go to next location
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001459|:lnewer| :lnew[er] go to newer location list
1460|:lnfile| :lnf[ile] go to first location in next file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001461|:lnoremap| :ln[oremap] like ":noremap!" but includes Lang-Arg mode
1462|:loadkeymap| :loadk[eymap] load the following keymaps until EOF
1463|:loadview| :lo[adview] load view for current window from a file
1464|:lockmarks| :loc[kmarks] following command keeps marks where they are
Bram Moolenaar24c088a2005-02-02 22:55:47 +00001465|:lockvar| :lockv[ar] lock variables
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001466|:lolder| :lol[der] go to older location list
h-east0c3e57b2025-01-02 11:00:49 +01001467|:lopen| :lop[en] open location window
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001468|:lprevious| :lp[revious] go to previous location
1469|:lpfile| :lpf[ile] go to last location in previous file
1470|:lrewind| :lr[ewind] go to the specified location, default first one
Bram Moolenaar071d4272004-06-13 20:20:40 +00001471|:ls| :ls list all buffers
Bram Moolenaarb8a7b562006-02-01 21:47:16 +00001472|:ltag| :lt[ag] jump to tag and add matching tags to the
1473 location list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001474|:lunmap| :lu[nmap] like ":unmap!" but includes Lang-Arg mode
Bram Moolenaar0ba04292010-07-14 23:23:17 +02001475|:lua| :lua execute |Lua| command
1476|:luado| :luad[o] execute Lua command for each line
1477|:luafile| :luaf[ile] execute |Lua| script file
Bram Moolenaara37420f2006-02-04 22:37:47 +00001478|:lvimgrep| :lv[imgrep] search for pattern in files
1479|:lvimgrepadd| :lvimgrepa[dd] like :vimgrep, but append to current list
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001480|:lwindow| :lw[indow] open or close location window
Bram Moolenaar071d4272004-06-13 20:20:40 +00001481|:move| :m[ove] move lines
1482|:mark| :ma[rk] set a mark
1483|:make| :mak[e] execute external command 'makeprg' and parse
1484 error messages
1485|:map| :map show or enter a mapping
1486|:mapclear| :mapc[lear] clear all mappings for Normal and Visual mode
1487|:marks| :marks list all marks
1488|:match| :mat[ch] define a match to highlight
1489|:menu| :me[nu] enter a new menu item
Bram Moolenaaracb4f222016-01-10 15:59:26 +01001490|:menutranslate| :menut[ranslate] add a menu translation item
Bram Moolenaar071d4272004-06-13 20:20:40 +00001491|:messages| :mes[sages] view previously displayed messages
1492|:mkexrc| :mk[exrc] write current mappings and settings to a file
1493|:mksession| :mks[ession] write session info to a file
Bram Moolenaar78599ad2005-06-16 21:47:53 +00001494|:mkspell| :mksp[ell] produce .spl spell file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001495|:mkvimrc| :mkv[imrc] write current mappings and settings to a file
1496|:mkview| :mkvie[w] write view of current window to a file
1497|:mode| :mod[e] show or change the screen mode
Bram Moolenaar8299df92004-07-10 09:47:34 +00001498|:mzscheme| :mz[scheme] execute MzScheme command
1499|:mzfile| :mzf[ile] execute MzScheme script file
Bram Moolenaarb26e6322010-05-22 21:34:09 +02001500|:nbclose| :nbc[lose] close the current Netbeans session
Bram Moolenaar17568792005-07-06 22:28:03 +00001501|:nbkey| :nb[key] pass a key to Netbeans
h-east0c3e57b2025-01-02 11:00:49 +01001502|:nbstart| :nbs[tart] start a new Netbeans session
Bram Moolenaar071d4272004-06-13 20:20:40 +00001503|:next| :n[ext] go to next file in the argument list
1504|:new| :new create a new empty window
1505|:nmap| :nm[ap] like ":map" but for Normal mode
1506|:nmapclear| :nmapc[lear] clear all mappings for Normal mode
1507|:nmenu| :nme[nu] add menu for Normal mode
1508|:nnoremap| :nn[oremap] like ":noremap" but for Normal mode
1509|:nnoremenu| :nnoreme[nu] like ":noremenu" but for Normal mode
Bram Moolenaar76f3b1a2014-03-27 22:30:07 +01001510|:noautocmd| :noa[utocmd] following commands don't trigger autocommands
Bram Moolenaar071d4272004-06-13 20:20:40 +00001511|:noremap| :no[remap] enter a mapping that will not be remapped
1512|:nohlsearch| :noh[lsearch] suspend 'hlsearch' highlighting
1513|:noreabbrev| :norea[bbrev] enter an abbreviation that will not be
1514 remapped
1515|:noremenu| :noreme[nu] enter a menu that will not be remapped
1516|:normal| :norm[al] execute Normal mode commands
Bram Moolenaar76f3b1a2014-03-27 22:30:07 +01001517|:noswapfile| :nos[wapfile] following commands don't create a swap file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001518|:number| :nu[mber] print lines with line number
1519|:nunmap| :nun[map] like ":unmap" but for Normal mode
1520|:nunmenu| :nunme[nu] remove menu for Normal mode
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01001521|:oldfiles| :ol[dfiles] list files that have marks in the viminfo file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001522|:open| :o[pen] start open mode (not implemented)
1523|:omap| :om[ap] like ":map" but for Operator-pending mode
1524|:omapclear| :omapc[lear] remove all mappings for Operator-pending mode
1525|:omenu| :ome[nu] add menu for Operator-pending mode
Bram Moolenaar7e8fd632006-02-18 22:14:51 +00001526|:only| :on[ly] close all windows except the current one
Bram Moolenaar071d4272004-06-13 20:20:40 +00001527|:onoremap| :ono[remap] like ":noremap" but for Operator-pending mode
1528|:onoremenu| :onoreme[nu] like ":noremenu" but for Operator-pending mode
1529|:options| :opt[ions] open the options-window
1530|:ounmap| :ou[nmap] like ":unmap" but for Operator-pending mode
1531|:ounmenu| :ounme[nu] remove menu for Operator-pending mode
Bram Moolenaarb2c03502010-07-02 20:20:09 +02001532|:ownsyntax| :ow[nsyntax] set new local syntax highlight for this window
Bram Moolenaar328da0d2016-03-04 22:22:32 +01001533|:packadd| :pa[ckadd] add a plugin from 'packpath'
Bram Moolenaare18c0b32016-03-20 21:08:34 +01001534|:packloadall| :packl[oadall] load all packages under 'packpath'
Yinzuo Jianga2a2fe82024-12-16 21:22:09 +01001535|:pbuffer| :pb[uffer] edit buffer in the preview window
Bram Moolenaar071d4272004-06-13 20:20:40 +00001536|:pclose| :pc[lose] close preview window
1537|:pedit| :ped[it] edit file in the preview window
1538|:perl| :pe[rl] execute Perl command
Bram Moolenaar05159a02005-02-26 23:04:13 +00001539|:print| :p[rint] print lines
Bram Moolenaar17568792005-07-06 22:28:03 +00001540|:profdel| :profd[el] stop profiling a function or script
Bram Moolenaar05159a02005-02-26 23:04:13 +00001541|:profile| :prof[ile] profiling functions and scripts
Bram Moolenaarf2330482008-06-24 20:19:36 +00001542|:promptfind| :pro[mptfind] open GUI dialog for searching
1543|:promptrepl| :promptr[epl] open GUI dialog for search/replace
Bram Moolenaar071d4272004-06-13 20:20:40 +00001544|:perldo| :perld[o] execute Perl command for each line
1545|:pop| :po[p] jump to older entry in tag stack
Bram Moolenaar34700a62013-03-07 13:20:54 +01001546|:popup| :popu[p] popup a menu by name
Bram Moolenaar071d4272004-06-13 20:20:40 +00001547|:ppop| :pp[op] ":pop" in preview window
1548|:preserve| :pre[serve] write all text to swap file
1549|:previous| :prev[ious] go to previous file in argument list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001550|:psearch| :ps[earch] like ":ijump" but shows match in preview window
1551|:ptag| :pt[ag] show tag in preview window
1552|:ptNext| :ptN[ext] |:tNext| in preview window
1553|:ptfirst| :ptf[irst] |:trewind| in preview window
1554|:ptjump| :ptj[ump] |:tjump| and show tag in preview window
1555|:ptlast| :ptl[ast] |:tlast| in preview window
1556|:ptnext| :ptn[ext] |:tnext| in preview window
1557|:ptprevious| :ptp[revious] |:tprevious| in preview window
1558|:ptrewind| :ptr[ewind] |:trewind| in preview window
1559|:ptselect| :pts[elect] |:tselect| and show tag in preview window
Bram Moolenaar1b5f03e2023-01-09 20:12:45 +00001560|:public| :public prefix for a class or object member
Bram Moolenaar071d4272004-06-13 20:20:40 +00001561|:put| :pu[t] insert contents of register in the text
1562|:pwd| :pw[d] print current directory
Bram Moolenaar368373e2010-07-19 20:46:22 +02001563|:py3| :py3 execute Python 3 command
Bram Moolenaarb6590522010-07-21 16:00:43 +02001564|:python3| :python3 same as :py3
Bram Moolenaarad3b3662013-05-17 18:14:19 +02001565|:py3do| :py3d[o] execute Python 3 command for each line
Bram Moolenaar60aad972010-07-21 20:36:22 +02001566|:py3file| :py3f[ile] execute Python 3 script file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001567|:python| :py[thon] execute Python command
Bram Moolenaarad3b3662013-05-17 18:14:19 +02001568|:pydo| :pyd[o] execute Python command for each line
Bram Moolenaar071d4272004-06-13 20:20:40 +00001569|:pyfile| :pyf[ile] execute Python script file
Bram Moolenaarf42dd3c2017-01-28 16:06:38 +01001570|:pyx| :pyx execute |python_x| command
1571|:pythonx| :pythonx same as :pyx
1572|:pyxdo| :pyxd[o] execute |python_x| command for each line
1573|:pyxfile| :pyxf[ile] execute |python_x| script file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001574|:quit| :q[uit] quit current window (when one window quit Vim)
1575|:quitall| :quita[ll] quit Vim
1576|:qall| :qa[ll] quit Vim
1577|:read| :r[ead] read file into the text
1578|:recover| :rec[over] recover a file from a swap file
1579|:redo| :red[o] redo one undone change
1580|:redir| :redi[r] redirect messages to a file or register
Bram Moolenaard09091d2019-01-17 16:07:22 +01001581|:redraw| :redr[aw] force a redraw of the display
1582|:redrawstatus| :redraws[tatus] force a redraw of the status line(s)
1583|:redrawtabline| :redrawt[abline] force a redraw of the tabline
Bram Moolenaar071d4272004-06-13 20:20:40 +00001584|:registers| :reg[isters] display the contents of registers
1585|:resize| :res[ize] change current window height
1586|:retab| :ret[ab] change tab size
1587|:return| :retu[rn] return from a user function
1588|:rewind| :rew[ind] go to the first file in the argument list
1589|:right| :ri[ght] right align text
1590|:rightbelow| :rightb[elow] make split window appear right or below
1591|:ruby| :rub[y] execute Ruby command
1592|:rubydo| :rubyd[o] execute Ruby command for each line
1593|:rubyfile| :rubyf[ile] execute Ruby script file
Bram Moolenaar1d689522010-05-28 20:54:39 +02001594|:rundo| :rund[o] read undo information from a file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001595|:runtime| :ru[ntime] source vim scripts in 'runtimepath'
1596|:rviminfo| :rv[iminfo] read from viminfo file
1597|:substitute| :s[ubstitute] find and replace text
1598|:sNext| :sN[ext] split window and go to previous file in
1599 argument list
Bram Moolenaar17568792005-07-06 22:28:03 +00001600|:sandbox| :san[dbox] execute a command in the sandbox
Bram Moolenaar071d4272004-06-13 20:20:40 +00001601|:sargument| :sa[rgument] split window and go to specific file in
1602 argument list
1603|:sall| :sal[l] open a window for each file in argument list
1604|:saveas| :sav[eas] save file under another name.
1605|:sbuffer| :sb[uffer] split window and go to specific file in the
1606 buffer list
1607|:sbNext| :sbN[ext] split window and go to previous file in the
1608 buffer list
1609|:sball| :sba[ll] open a window for each file in the buffer list
1610|:sbfirst| :sbf[irst] split window and go to first file in the
1611 buffer list
1612|:sblast| :sbl[ast] split window and go to last file in buffer
1613 list
1614|:sbmodified| :sbm[odified] split window and go to modified file in the
1615 buffer list
1616|:sbnext| :sbn[ext] split window and go to next file in the buffer
1617 list
1618|:sbprevious| :sbp[revious] split window and go to previous file in the
1619 buffer list
1620|:sbrewind| :sbr[ewind] split window and go to first file in the
1621 buffer list
Bram Moolenaar8feef4f2015-01-07 16:57:10 +01001622|:scriptnames| :scr[iptnames] list names of all sourced Vim scripts
Bram Moolenaar62e1bb42019-04-08 16:25:07 +02001623|:scriptencoding| :scripte[ncoding] encoding used in sourced Vim script
1624|:scriptversion| :scriptv[ersion] version of Vim script used
Bram Moolenaar64969662005-12-14 21:59:55 +00001625|:scscope| :scs[cope] split window and execute cscope command
Bram Moolenaar071d4272004-06-13 20:20:40 +00001626|:set| :se[t] show or set options
1627|:setfiletype| :setf[iletype] set 'filetype', unless it was set already
1628|:setglobal| :setg[lobal] show global values of options
1629|:setlocal| :setl[ocal] show or set options locally
1630|:sfind| :sf[ind] split current window and edit file in 'path'
1631|:sfirst| :sfir[st] split window and go to first file in the
1632 argument list
1633|:shell| :sh[ell] escape to a shell
1634|:simalt| :sim[alt] Win32 GUI: simulate Windows ALT key
1635|:sign| :sig[n] manipulate signs
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01001636|:silent| :sil[ent] run a command silently
Bram Moolenaar071d4272004-06-13 20:20:40 +00001637|:sleep| :sl[eep] do nothing for a few seconds
Bram Moolenaare2edc2e2021-01-16 20:21:23 +01001638|:sleep!| :sl[eep]! do nothing for a few seconds, without the
1639 cursor visible
Bram Moolenaar071d4272004-06-13 20:20:40 +00001640|:slast| :sla[st] split window and go to last file in the
1641 argument list
1642|:smagic| :sm[agic] :substitute with 'magic'
Bram Moolenaar34700a62013-03-07 13:20:54 +01001643|:smap| :smap like ":map" but for Select mode
Bram Moolenaar371d5402006-03-20 21:47:49 +00001644|:smapclear| :smapc[lear] remove all mappings for Select mode
1645|:smenu| :sme[nu] add menu for Select mode
Bram Moolenaaracb4f222016-01-10 15:59:26 +01001646|:smile| :smi[le] make the user happy
Bram Moolenaar071d4272004-06-13 20:20:40 +00001647|:snext| :sn[ext] split window and go to next file in the
1648 argument list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001649|:snomagic| :sno[magic] :substitute with 'nomagic'
Bram Moolenaar371d5402006-03-20 21:47:49 +00001650|:snoremap| :snor[emap] like ":noremap" but for Select mode
1651|:snoremenu| :snoreme[nu] like ":noremenu" but for Select mode
Bram Moolenaarf95dc3b2005-05-22 22:02:25 +00001652|:sort| :sor[t] sort lines
Bram Moolenaar071d4272004-06-13 20:20:40 +00001653|:source| :so[urce] read Vim or Ex commands from a file
Bram Moolenaarf81b0fe2005-06-23 22:27:26 +00001654|:spelldump| :spelld[ump] split window and fill with all correct words
Bram Moolenaar78599ad2005-06-16 21:47:53 +00001655|:spellgood| :spe[llgood] add good word for spelling
Bram Moolenaar362e1a32006-03-06 23:29:24 +00001656|:spellinfo| :spelli[nfo] show info about loaded spell files
Bram Moolenaar56c860c2019-08-17 20:09:31 +02001657|:spellrare| :spellra[re] add rare word for spelling
Bram Moolenaar43abc522005-12-10 20:15:02 +00001658|:spellrepall| :spellr[epall] replace all bad words like last |z=|
Bram Moolenaard0131a82006-03-04 21:46:13 +00001659|:spellundo| :spellu[ndo] remove good or bad word
Bram Moolenaar78599ad2005-06-16 21:47:53 +00001660|:spellwrong| :spellw[rong] add spelling mistake
Bram Moolenaar071d4272004-06-13 20:20:40 +00001661|:split| :sp[lit] split current window
1662|:sprevious| :spr[evious] split window and go to previous file in the
1663 argument list
1664|:srewind| :sre[wind] split window and go to first file in the
1665 argument list
1666|:stop| :st[op] suspend the editor or escape to a shell
1667|:stag| :sta[g] split window and jump to a tag
1668|:startinsert| :star[tinsert] start Insert mode
Bram Moolenaaracb4f222016-01-10 15:59:26 +01001669|:startgreplace| :startg[replace] start Virtual Replace mode
Bram Moolenaar325b7a22004-07-05 15:58:32 +00001670|:startreplace| :startr[eplace] start Replace mode
Bram Moolenaar1b5f03e2023-01-09 20:12:45 +00001671|:static| :static prefix for a class member or function
Bram Moolenaarf2330482008-06-24 20:19:36 +00001672|:stopinsert| :stopi[nsert] stop Insert mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001673|:stjump| :stj[ump] do ":tjump" and split window
1674|:stselect| :sts[elect] do ":tselect" and split window
1675|:sunhide| :sun[hide] same as ":unhide"
Bram Moolenaar371d5402006-03-20 21:47:49 +00001676|:sunmap| :sunm[ap] like ":unmap" but for Select mode
1677|:sunmenu| :sunme[nu] remove menu for Select mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001678|:suspend| :sus[pend] same as ":stop"
1679|:sview| :sv[iew] split window and edit file read-only
1680|:swapname| :sw[apname] show the name of the current swap file
1681|:syntax| :sy[ntax] syntax highlighting
Bram Moolenaar203d04d2013-06-06 21:36:40 +02001682|:syntime| :synti[me] measure syntax highlighting speed
Bram Moolenaar071d4272004-06-13 20:20:40 +00001683|:syncbind| :sync[bind] sync scroll binding
1684|:t| :t same as ":copy"
1685|:tNext| :tN[ext] jump to previous matching tag
Bram Moolenaar80a94a52006-02-23 21:26:58 +00001686|:tabNext| :tabN[ext] go to previous tab page
Bram Moolenaar7e8fd632006-02-18 22:14:51 +00001687|:tabclose| :tabc[lose] close current tab page
h-east0c3e57b2025-01-02 11:00:49 +01001688|:tabdo| :tabd[o] execute command in each tab page
Bram Moolenaar7e8fd632006-02-18 22:14:51 +00001689|:tabedit| :tabe[dit] edit a file in a new tab page
1690|:tabfind| :tabf[ind] find file in 'path', edit it in a new tab page
Bram Moolenaar13d5aee2016-01-21 23:36:05 +01001691|:tabfirst| :tabfir[st] go to first tab page
1692|:tablast| :tabl[ast] go to last tab page
Bram Moolenaar80a94a52006-02-23 21:26:58 +00001693|:tabmove| :tabm[ove] move tab page to other position
1694|:tabnew| :tabnew edit a file in a new tab page
1695|:tabnext| :tabn[ext] go to next tab page
Bram Moolenaar7e8fd632006-02-18 22:14:51 +00001696|:tabonly| :tabo[nly] close all tab pages except the current one
Bram Moolenaar80a94a52006-02-23 21:26:58 +00001697|:tabprevious| :tabp[revious] go to previous tab page
Bram Moolenaar13d5aee2016-01-21 23:36:05 +01001698|:tabrewind| :tabr[ewind] go to first tab page
Bram Moolenaar7e8fd632006-02-18 22:14:51 +00001699|:tabs| :tabs list the tab pages and what they contain
Bram Moolenaar80a94a52006-02-23 21:26:58 +00001700|:tab| :tab create new tab when opening new window
Bram Moolenaar071d4272004-06-13 20:20:40 +00001701|:tag| :ta[g] jump to tag
1702|:tags| :tags show the contents of the tag stack
Bram Moolenaard2ea7cf2021-05-30 20:54:13 +02001703|:tcd| :tc[d] change directory for tab page
Bram Moolenaar00aa0692019-04-27 20:37:57 +02001704|:tchdir| :tch[dir] change directory for tab page
Bram Moolenaard2ea7cf2021-05-30 20:54:13 +02001705|:tcl| :tcl execute Tcl command
Bram Moolenaar071d4272004-06-13 20:20:40 +00001706|:tcldo| :tcld[o] execute Tcl command for each line
1707|:tclfile| :tclf[ile] execute Tcl script file
1708|:tearoff| :te[aroff] tear-off a menu
Bram Moolenaar74675a62017-07-15 13:53:23 +02001709|:terminal| :ter[minal] open a terminal window
Bram Moolenaar071d4272004-06-13 20:20:40 +00001710|:tfirst| :tf[irst] jump to first matching tag
1711|:throw| :th[row] throw an exception
h-east0c3e57b2025-01-02 11:00:49 +01001712|:this| :this prefix for an object member during
1713 initialization (e.g. on |new()|)
Bram Moolenaar071d4272004-06-13 20:20:40 +00001714|:tjump| :tj[ump] like ":tselect", but jump directly when there
1715 is only one match
1716|:tlast| :tl[ast] jump to last matching tag
Bram Moolenaar4c5d8152018-10-19 22:36:53 +02001717|:tlmenu| :tlm[enu] add menu for Terminal-Job mode
1718|:tlnoremenu| :tln[oremenu] like ":noremenu" but for Terminal-Job mode
1719|:tlunmenu| :tlu[nmenu] remove menu for Terminal-Job mode
Bram Moolenaar37c64c72017-09-19 22:06:03 +02001720|:tmapclear| :tmapc[lear] remove all mappings for Terminal-Job mode
1721|:tmap| :tma[p] like ":map" but for Terminal-Job mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001722|:tmenu| :tm[enu] define menu tooltip
1723|:tnext| :tn[ext] jump to next matching tag
Bram Moolenaar37c64c72017-09-19 22:06:03 +02001724|:tnoremap| :tno[remap] like ":noremap" but for Terminal-Job mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001725|:topleft| :to[pleft] make split window appear at top or far left
1726|:tprevious| :tp[revious] jump to previous matching tag
1727|:trewind| :tr[ewind] jump to first matching tag
1728|:try| :try execute commands, abort on error or exception
1729|:tselect| :ts[elect] list matching tags and select one
Bram Moolenaar37c64c72017-09-19 22:06:03 +02001730|:tunmap| :tunma[p] like ":unmap" but for Terminal-Job mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001731|:tunmenu| :tu[nmenu] remove menu tooltip
h-east0c3e57b2025-01-02 11:00:49 +01001732|:type| :type create a type alias
Bram Moolenaar071d4272004-06-13 20:20:40 +00001733|:undo| :u[ndo] undo last change(s)
Bram Moolenaarb388adb2006-02-28 23:50:17 +00001734|:undojoin| :undoj[oin] join next change with previous undo block
Bram Moolenaard3667a22006-03-16 21:35:52 +00001735|:undolist| :undol[ist] list leafs of the undo tree
Bram Moolenaar071d4272004-06-13 20:20:40 +00001736|:unabbreviate| :una[bbreviate] remove abbreviation
1737|:unhide| :unh[ide] open a window for each loaded file in the
1738 buffer list
1739|:unlet| :unl[et] delete variable
Bram Moolenaar24c088a2005-02-02 22:55:47 +00001740|:unlockvar| :unlo[ckvar] unlock variables
Bram Moolenaar071d4272004-06-13 20:20:40 +00001741|:unmap| :unm[ap] remove mapping
1742|:unmenu| :unme[nu] remove menu
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01001743|:unsilent| :uns[ilent] run a command not silently
Bram Moolenaar071d4272004-06-13 20:20:40 +00001744|:update| :up[date] write buffer if modified
1745|:vglobal| :v[global] execute commands for not matching lines
Bram Moolenaar4f4d51a2020-10-11 13:57:40 +02001746|:var| :var variable declaration in Vim9
Bram Moolenaar071d4272004-06-13 20:20:40 +00001747|:version| :ve[rsion] print version number and other info
1748|:verbose| :verb[ose] execute command with 'verbose' set
1749|:vertical| :vert[ical] make following command split vertically
Bram Moolenaar9faec4e2021-02-27 16:38:07 +01001750|:vim9cmd| :vim9[cmd] make following command use Vim9 script syntax
1751|:vim9script| :vim9s[cript] indicates Vim9 script file
Bram Moolenaar17568792005-07-06 22:28:03 +00001752|:vimgrep| :vim[grep] search for pattern in files
1753|:vimgrepadd| :vimgrepa[dd] like :vimgrep, but append to current list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001754|:visual| :vi[sual] same as ":edit", but turns off "Ex" mode
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001755|:viusage| :viu[sage] overview of Normal mode commands
Bram Moolenaar071d4272004-06-13 20:20:40 +00001756|:view| :vie[w] edit a file read-only
Bram Moolenaar371d5402006-03-20 21:47:49 +00001757|:vmap| :vm[ap] like ":map" but for Visual+Select mode
1758|:vmapclear| :vmapc[lear] remove all mappings for Visual+Select mode
1759|:vmenu| :vme[nu] add menu for Visual+Select mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001760|:vnew| :vne[w] create a new empty window, vertically split
Bram Moolenaar371d5402006-03-20 21:47:49 +00001761|:vnoremap| :vn[oremap] like ":noremap" but for Visual+Select mode
1762|:vnoremenu| :vnoreme[nu] like ":noremenu" but for Visual+Select mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001763|:vsplit| :vs[plit] split current window vertically
Bram Moolenaar371d5402006-03-20 21:47:49 +00001764|:vunmap| :vu[nmap] like ":unmap" but for Visual+Select mode
1765|:vunmenu| :vunme[nu] remove menu for Visual+Select mode
h-east0c3e57b2025-01-02 11:00:49 +01001766|:windo| :wind[o] execute command in each window
Bram Moolenaar071d4272004-06-13 20:20:40 +00001767|:write| :w[rite] write to a file
1768|:wNext| :wN[ext] write to a file and go to previous file in
1769 argument list
1770|:wall| :wa[ll] write all (changed) buffers
1771|:while| :wh[ile] execute loop for as long as condition met
1772|:winsize| :wi[nsize] get or set window size (obsolete)
1773|:wincmd| :winc[md] execute a Window (CTRL-W) command
1774|:winpos| :winp[os] get or set window position
1775|:wnext| :wn[ext] write to a file and go to next file in
1776 argument list
1777|:wprevious| :wp[revious] write to a file and go to previous file in
1778 argument list
1779|:wq| :wq write to a file and quit window or Vim
1780|:wqall| :wqa[ll] write all changed buffers and quit Vim
Bram Moolenaar1d689522010-05-28 20:54:39 +02001781|:wundo| :wu[ndo] write undo information to a file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001782|:wviminfo| :wv[iminfo] write to viminfo file
Bram Moolenaar47e13952020-05-12 22:49:12 +02001783|:xit| :x[it] write if buffer changed and close window
Bram Moolenaar071d4272004-06-13 20:20:40 +00001784|:xall| :xa[ll] same as ":wqall"
Bram Moolenaar371d5402006-03-20 21:47:49 +00001785|:xmapclear| :xmapc[lear] remove all mappings for Visual mode
1786|:xmap| :xm[ap] like ":map" but for Visual mode
1787|:xmenu| :xme[nu] add menu for Visual mode
Bram Moolenaard4aa83a2019-05-09 18:59:31 +02001788|:xrestore| :xr[estore] restores the X server connection
Bram Moolenaar371d5402006-03-20 21:47:49 +00001789|:xnoremap| :xn[oremap] like ":noremap" but for Visual mode
1790|:xnoremenu| :xnoreme[nu] like ":noremenu" but for Visual mode
1791|:xunmap| :xu[nmap] like ":unmap" but for Visual mode
1792|:xunmenu| :xunme[nu] remove menu for Visual mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001793|:yank| :y[ank] yank lines into a register
1794|:z| :z print some lines
1795|:~| :~ repeat last ":substitute"
1796
Bram Moolenaar371d5402006-03-20 21:47:49 +00001797
Bram Moolenaar91f84f62018-07-29 15:07:52 +02001798 vim:tw=78:ts=8:noet:ft=help:norl: