blob: c9e80da9b441591159b475f75041de160e6fb504 [file] [log] [blame]
Hirohito Higashi73b96502025-06-28 18:18:21 +02001*index.txt* For Vim version 9.1. Last change: 2025 Jun 28
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
glepnird5fdfa52025-06-02 19:45:41 +0200166|i_CTRL-X_CTRL-R| CTRL-X CTRL-R complete contents from registers
Bram Moolenaar8b59de92005-08-11 19:59:29 +0000167|i_CTRL-X_CTRL-S| CTRL-X CTRL-S spelling suggestions
Bram Moolenaar071d4272004-06-13 20:20:40 +0000168|i_CTRL-X_CTRL-T| CTRL-X CTRL-T complete identifiers from thesaurus
169|i_CTRL-X_CTRL-Y| CTRL-X CTRL-Y scroll down
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000170|i_CTRL-X_CTRL-U| CTRL-X CTRL-U complete with 'completefunc'
171|i_CTRL-X_CTRL-V| CTRL-X CTRL-V complete like in : command line
zeertzjqdca29d92021-08-31 19:12:51 +0200172|i_CTRL-X_CTRL-Z| CTRL-X CTRL-Z stop completion, keeping the text as-is
Bram Moolenaar071d4272004-06-13 20:20:40 +0000173|i_CTRL-X_CTRL-]| CTRL-X CTRL-] complete tags
Bram Moolenaar8b59de92005-08-11 19:59:29 +0000174|i_CTRL-X_s| CTRL-X s spelling suggestions
Bram Moolenaar071d4272004-06-13 20:20:40 +0000175
Bram Moolenaarf6b40102019-02-22 15:24:03 +0100176commands in completion mode (see |popupmenu-keys|)
177
178|complete_CTRL-E| CTRL-E stop completion and go back to original text
179|complete_CTRL-Y| CTRL-Y accept selected match and stop completion
180 CTRL-L insert one character from the current match
181 <CR> insert currently selected match
182 <BS> delete one character and redo search
183 CTRL-H same as <BS>
184 <Up> select the previous match
185 <Down> select the next match
186 <PageUp> select a match several entries back
187 <PageDown> select a match several entries forward
188 other stop completion and insert the typed character
189
Bram Moolenaar071d4272004-06-13 20:20:40 +0000190==============================================================================
1912. Normal mode *normal-index*
192
193CHAR any non-blank character
194WORD a sequence of non-blank characters
195N a number entered before the command
196{motion} a cursor movement command
197Nmove the text that is moved over with a {motion}
198SECTION a section that possibly starts with '}' instead of '{'
199
200note: 1 = cursor movement command; 2 = can be undone/redone
201
202tag char note action in Normal mode ~
203------------------------------------------------------------------------------
204 CTRL-@ not used
205|CTRL-A| CTRL-A 2 add N to number at/after cursor
206|CTRL-B| CTRL-B 1 scroll N screens Backwards
207|CTRL-C| CTRL-C interrupt current (search) command
208|CTRL-D| CTRL-D scroll Down N lines (default: half a screen)
209|CTRL-E| CTRL-E scroll N lines upwards (N lines Extra)
210|CTRL-F| CTRL-F 1 scroll N screens Forward
211|CTRL-G| CTRL-G display current file name and position
212|<BS>| <BS> 1 same as "h"
213|CTRL-H| CTRL-H 1 same as "h"
214|<Tab>| <Tab> 1 go to N newer entry in jump list
215|CTRL-I| CTRL-I 1 same as <Tab>
216|<NL>| <NL> 1 same as "j"
Christian Brabandtfbbabbc2024-07-07 20:30:59 +0200217|<S-NL>| <S-NL> 1 same as CTRL-F
Bram Moolenaar071d4272004-06-13 20:20:40 +0000218|CTRL-J| CTRL-J 1 same as "j"
219 CTRL-K not used
220|CTRL-L| CTRL-L redraw screen
221|<CR>| <CR> 1 cursor to the first CHAR N lines lower
Christian Brabandtfbbabbc2024-07-07 20:30:59 +0200222|<S-CR>| <S-CR> 1 same as CTRL-F
Bram Moolenaar071d4272004-06-13 20:20:40 +0000223|CTRL-M| CTRL-M 1 same as <CR>
224|CTRL-N| CTRL-N 1 same as "j"
225|CTRL-O| CTRL-O 1 go to N older entry in jump list
226|CTRL-P| CTRL-P 1 same as "k"
Bram Moolenaaracc22402020-06-07 21:07:18 +0200227 CTRL-Q not used, or used for terminal control flow
Bram Moolenaar071d4272004-06-13 20:20:40 +0000228|CTRL-R| CTRL-R 2 redo changes which were undone with 'u'
Bram Moolenaaracc22402020-06-07 21:07:18 +0200229 CTRL-S not used, or used for terminal control flow
Bram Moolenaar071d4272004-06-13 20:20:40 +0000230|CTRL-T| CTRL-T jump to N older Tag in tag list
231|CTRL-U| CTRL-U scroll N lines Upwards (default: half a
232 screen)
233|CTRL-V| CTRL-V start blockwise Visual mode
234|CTRL-W| CTRL-W {char} window commands, see |CTRL-W|
235|CTRL-X| CTRL-X 2 subtract N from number at/after cursor
236|CTRL-Y| CTRL-Y scroll N lines downwards
237|CTRL-Z| CTRL-Z suspend program (or start new shell)
238 CTRL-[ <Esc> not used
Bram Moolenaarfa13eef2013-02-06 17:34:04 +0100239|CTRL-\_CTRL-N| CTRL-\ CTRL-N go to Normal mode (no-op)
240|CTRL-\_CTRL-G| CTRL-\ CTRL-G go to mode specified with 'insertmode'
Bram Moolenaar071d4272004-06-13 20:20:40 +0000241 CTRL-\ a - z reserved for extensions
Bram Moolenaar938ae282023-02-20 20:44:55 +0000242 CTRL-\ others not used
Bram Moolenaar071d4272004-06-13 20:20:40 +0000243|CTRL-]| CTRL-] :ta to ident under cursor
244|CTRL-^| CTRL-^ edit Nth alternate file (equivalent to
245 ":e #N")
246 CTRL-_ not used
247
248|<Space>| <Space> 1 same as "l"
249|!| !{motion}{filter}
250 2 filter Nmove text through the {filter}
251 command
252|!!| !!{filter} 2 filter N lines through the {filter} command
Bram Moolenaar938ae282023-02-20 20:44:55 +0000253|quote| "{register} use {register} for next delete, yank or put
Bram Moolenaar071d4272004-06-13 20:20:40 +0000254 ({.%#:} only work with put)
255|#| # 1 search backward for the Nth occurrence of
256 the ident under the cursor
257|$| $ 1 cursor to the end of Nth next line
258|%| % 1 find the next (curly/square) bracket on
259 this line and go to its match, or go to
260 matching comment bracket, or go to matching
261 preprocessor directive.
262|N%| {count}% 1 go to N percentage in the file
263|&| & 2 repeat last :s
264|'| '{a-zA-Z0-9} 1 cursor to the first CHAR on the line with
265 mark {a-zA-Z0-9}
266|''| '' 1 cursor to the first CHAR of the line where
267 the cursor was before the latest jump.
268|'(| '( 1 cursor to the first CHAR on the line of the
269 start of the current sentence
270|')| ') 1 cursor to the first CHAR on the line of the
271 end of the current sentence
272|'<| '< 1 cursor to the first CHAR of the line where
273 highlighted area starts/started in the
274 current buffer.
275|'>| '> 1 cursor to the first CHAR of the line where
276 highlighted area ends/ended in the current
277 buffer.
278|'[| '[ 1 cursor to the first CHAR on the line of the
279 start of last operated text or start of put
280 text
281|']| '] 1 cursor to the first CHAR on the line of the
282 end of last operated text or end of put
283 text
284|'{| '{ 1 cursor to the first CHAR on the line of the
285 start of the current paragraph
286|'}| '} 1 cursor to the first CHAR on the line of the
287 end of the current paragraph
288|(| ( 1 cursor N sentences backward
289|)| ) 1 cursor N sentences forward
290|star| * 1 search forward for the Nth occurrence of
291 the ident under the cursor
292|+| + 1 same as <CR>
Christian Brabandtfbbabbc2024-07-07 20:30:59 +0200293|<S-Plus>| <S-+> 1 same as CTRL-F
Bram Moolenaar071d4272004-06-13 20:20:40 +0000294|,| , 1 repeat latest f, t, F or T in opposite
295 direction N times
296|-| - 1 cursor to the first CHAR N lines higher
Christian Brabandtfbbabbc2024-07-07 20:30:59 +0200297|<S-Minus>| <S--> 1 same as CTRL-B
Bram Moolenaar071d4272004-06-13 20:20:40 +0000298|.| . 2 repeat last change with count replaced with
299 N
300|/| /{pattern}<CR> 1 search forward for the Nth occurrence of
301 {pattern}
302|/<CR>| /<CR> 1 search forward for {pattern} of last search
Bram Moolenaar6ba83ba2022-06-12 22:15:57 +0100303|0| 0 1 cursor to the first char of the line
Bram Moolenaar071d4272004-06-13 20:20:40 +0000304|count| 1 prepend to command to give a count
305|count| 2 "
306|count| 3 "
307|count| 4 "
308|count| 5 "
309|count| 6 "
310|count| 7 "
311|count| 8 "
312|count| 9 "
313|:| : 1 start entering an Ex command
314|N:| {count}: start entering an Ex command with range
315 from current line to N-1 lines down
316|;| ; 1 repeat latest f, t, F or T N times
317|<| <{motion} 2 shift Nmove lines one 'shiftwidth'
318 leftwards
319|<<| << 2 shift N lines one 'shiftwidth' leftwards
320|=| ={motion} 2 filter Nmove lines through "indent"
321|==| == 2 filter N lines through "indent"
322|>| >{motion} 2 shift Nmove lines one 'shiftwidth'
323 rightwards
324|>>| >> 2 shift N lines one 'shiftwidth' rightwards
325|?| ?{pattern}<CR> 1 search backward for the Nth previous
326 occurrence of {pattern}
327|?<CR>| ?<CR> 1 search backward for {pattern} of last search
328|@| @{a-z} 2 execute the contents of register {a-z}
329 N times
330|@:| @: repeat the previous ":" command N times
331|@@| @@ 2 repeat the previous @{a-z} N times
332|A| A 2 append text after the end of the line N times
333|B| B 1 cursor N WORDS backward
334|C| ["x]C 2 change from the cursor position to the end
335 of the line, and N-1 more lines [into
Bram Moolenaar94237492017-04-23 18:40:21 +0200336 register x]; synonym for "c$"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000337|D| ["x]D 2 delete the characters under the cursor
338 until the end of the line and N-1 more
Bram Moolenaar94237492017-04-23 18:40:21 +0200339 lines [into register x]; synonym for "d$"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000340|E| E 1 cursor forward to the end of WORD N
341|F| F{char} 1 cursor to the Nth occurrence of {char} to
342 the left
343|G| G 1 cursor to line N, default last line
344|H| H 1 cursor to line N from top of screen
345|I| I 2 insert text before the first CHAR on the
346 line N times
347|J| J 2 Join N lines; default is 2
348|K| K lookup Keyword under the cursor with
349 'keywordprg'
350|L| L 1 cursor to line N from bottom of screen
351|M| M 1 cursor to middle line of screen
352|N| N 1 repeat the latest '/' or '?' N times in
353 opposite direction
354|O| O 2 begin a new line above the cursor and
355 insert text, repeat N times
Bram Moolenaar94237492017-04-23 18:40:21 +0200356|P| ["x]P 2 put the text [from register x] before the
Bram Moolenaar071d4272004-06-13 20:20:40 +0000357 cursor N times
358|Q| Q switch to "Ex" mode
359|R| R 2 enter replace mode: overtype existing
360 characters, repeat the entered text N-1
361 times
Bram Moolenaar94237492017-04-23 18:40:21 +0200362|S| ["x]S 2 delete N lines [into register x] and start
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000363 insert; synonym for "cc".
Bram Moolenaar071d4272004-06-13 20:20:40 +0000364|T| T{char} 1 cursor till after Nth occurrence of {char}
365 to the left
366|U| U 2 undo all latest changes on one line
367|V| V start linewise Visual mode
368|W| W 1 cursor N WORDS forward
369|X| ["x]X 2 delete N characters before the cursor [into
Bram Moolenaar94237492017-04-23 18:40:21 +0200370 register x]
371|Y| ["x]Y yank N lines [into register x]; synonym for
Bram Moolenaar071d4272004-06-13 20:20:40 +0000372 "yy"
Bram Moolenaar47e13952020-05-12 22:49:12 +0200373|ZZ| ZZ write if buffer changed and close window
374|ZQ| ZQ close window without writing
Bram Moolenaarc6039d82005-12-02 00:44:04 +0000375|[| [{char} square bracket command (see |[| below)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000376 \ not used
Bram Moolenaarc6039d82005-12-02 00:44:04 +0000377|]| ]{char} square bracket command (see |]| below)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000378|^| ^ 1 cursor to the first CHAR of the line
379|_| _ 1 cursor to the first CHAR N - 1 lines lower
380|`| `{a-zA-Z0-9} 1 cursor to the mark {a-zA-Z0-9}
381|`(| `( 1 cursor to the start of the current sentence
382|`)| `) 1 cursor to the end of the current sentence
383|`<| `< 1 cursor to the start of the highlighted area
384|`>| `> 1 cursor to the end of the highlighted area
385|`[| `[ 1 cursor to the start of last operated text
386 or start of putted text
387|`]| `] 1 cursor to the end of last operated text or
388 end of putted text
389|``| `` 1 cursor to the position before latest jump
390|`{| `{ 1 cursor to the start of the current paragraph
391|`}| `} 1 cursor to the end of the current paragraph
392|a| a 2 append text after the cursor N times
393|b| b 1 cursor N words backward
Bram Moolenaar94237492017-04-23 18:40:21 +0200394|c| ["x]c{motion} 2 delete Nmove text [into register x] and
395 start insert
396|cc| ["x]cc 2 delete N lines [into register x] and start
Bram Moolenaar071d4272004-06-13 20:20:40 +0000397 insert
Bram Moolenaar94237492017-04-23 18:40:21 +0200398|d| ["x]d{motion} 2 delete Nmove text [into register x]
399|dd| ["x]dd 2 delete N lines [into register x]
Bram Moolenaar071d4272004-06-13 20:20:40 +0000400|do| do 2 same as ":diffget"
401|dp| dp 2 same as ":diffput"
402|e| e 1 cursor forward to the end of word N
403|f| f{char} 1 cursor to Nth occurrence of {char} to the
404 right
Bram Moolenaarc6039d82005-12-02 00:44:04 +0000405|g| g{char} extended commands, see |g| below
Bram Moolenaar071d4272004-06-13 20:20:40 +0000406|h| h 1 cursor N chars to the left
407|i| i 2 insert text before the cursor N times
408|j| j 1 cursor N lines downward
409|k| k 1 cursor N lines upward
410|l| l 1 cursor N chars to the right
411|m| m{A-Za-z} set mark {A-Za-z} at cursor position
412|n| n 1 repeat the latest '/' or '?' N times
413|o| o 2 begin a new line below the cursor and
414 insert text, repeat N times
415|p| ["x]p 2 put the text [from register x] after the
416 cursor N times
417|q| q{0-9a-zA-Z"} record typed characters into named register
418 {0-9a-zA-Z"} (uppercase to append)
419|q| q (while recording) stops recording
420|q:| q: edit : command-line in command-line window
421|q/| q/ edit / command-line in command-line window
422|q?| q? edit ? command-line in command-line window
423|r| r{char} 2 replace N chars with {char}
424|s| ["x]s 2 (substitute) delete N characters [into
Bram Moolenaar94237492017-04-23 18:40:21 +0200425 register x] and start insert
Bram Moolenaar071d4272004-06-13 20:20:40 +0000426|t| t{char} 1 cursor till before Nth occurrence of {char}
427 to the right
428|u| u 2 undo changes
429|v| v start characterwise Visual mode
430|w| w 1 cursor N words forward
431|x| ["x]x 2 delete N characters under and after the
Bram Moolenaar94237492017-04-23 18:40:21 +0200432 cursor [into register x]
433|y| ["x]y{motion} yank Nmove text [into register x]
434|yy| ["x]yy yank N lines [into register x]
Bram Moolenaarc6039d82005-12-02 00:44:04 +0000435|z| z{char} commands starting with 'z', see |z| below
Bram Moolenaar071d4272004-06-13 20:20:40 +0000436|{| { 1 cursor N paragraphs backward
437|bar| | 1 cursor to column N
438|}| } 1 cursor N paragraphs forward
439|~| ~ 2 'tildeop' off: switch case of N characters
440 under cursor and move the cursor N
441 characters to the right
442|~| ~{motion} 'tildeop' on: switch case of Nmove text
443|<C-End>| <C-End> 1 same as "G"
444|<C-Home>| <C-Home> 1 same as "gg"
445|<C-Left>| <C-Left> 1 same as "b"
446|<C-LeftMouse>| <C-LeftMouse> ":ta" to the keyword at the mouse click
447|<C-Right>| <C-Right> 1 same as "w"
448|<C-RightMouse>| <C-RightMouse> same as "CTRL-T"
Bram Moolenaar62a23252020-08-09 14:04:42 +0200449|<C-Tab>| <C-Tab> same as "g<Tab>"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000450|<Del>| ["x]<Del> 2 same as "x"
451|N<Del>| {count}<Del> remove the last digit from {count}
452|<Down>| <Down> 1 same as "j"
453|<End>| <End> 1 same as "$"
454|<F1>| <F1> same as <Help>
455|<Help>| <Help> open a help window
456|<Home>| <Home> 1 same as "0"
457|<Insert>| <Insert> 2 same as "i"
458|<Left>| <Left> 1 same as "h"
459|<LeftMouse>| <LeftMouse> 1 move cursor to the mouse click position
Bram Moolenaarfa13eef2013-02-06 17:34:04 +0100460|<MiddleMouse>| <MiddleMouse> 2 same as "gP" at the mouse click position
Bram Moolenaar071d4272004-06-13 20:20:40 +0000461|<PageDown>| <PageDown> same as CTRL-F
462|<PageUp>| <PageUp> same as CTRL-B
463|<Right>| <Right> 1 same as "l"
464|<RightMouse>| <RightMouse> start Visual mode, move cursor to the mouse
465 click position
466|<S-Down>| <S-Down> 1 same as CTRL-F
467|<S-Left>| <S-Left> 1 same as "b"
468|<S-LeftMouse>| <S-LeftMouse> same as "*" at the mouse click position
469|<S-Right>| <S-Right> 1 same as "w"
470|<S-RightMouse>| <S-RightMouse> same as "#" at the mouse click position
471|<S-Up>| <S-Up> 1 same as CTRL-B
472|<Undo>| <Undo> 2 same as "u"
473|<Up>| <Up> 1 same as "k"
Bram Moolenaar8d9b40e2010-07-25 15:49:07 +0200474|<ScrollWheelDown>| <ScrollWheelDown> move window three lines down
475|<S-ScrollWheelDown>| <S-ScrollWheelDown> move window one page down
476|<ScrollWheelUp>| <ScrollWheelUp> move window three lines up
477|<S-ScrollWheelUp>| <S-ScrollWheelUp> move window one page up
478|<ScrollWheelLeft>| <ScrollWheelLeft> move window six columns left
479|<S-ScrollWheelLeft>| <S-ScrollWheelLeft> move window one page left
480|<ScrollWheelRight>| <ScrollWheelRight> move window six columns right
481|<S-ScrollWheelRight>| <S-ScrollWheelRight> move window one page right
Bram Moolenaar071d4272004-06-13 20:20:40 +0000482
483==============================================================================
4842.1 Text objects *objects*
485
486These can be used after an operator or in Visual mode to select an object.
487
Bram Moolenaar2a8a3ec2011-01-08 16:06:37 +0100488tag command action in op-pending and Visual mode ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000489------------------------------------------------------------------------------
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000490|v_aquote| a" double quoted string
491|v_a'| a' single quoted string
Bram Moolenaar071d4272004-06-13 20:20:40 +0000492|v_a(| a( same as ab
493|v_a)| a) same as ab
494|v_a<| a< "a <>" from '<' to the matching '>'
495|v_a>| a> same as a<
496|v_aB| aB "a Block" from "[{" to "]}" (with brackets)
497|v_aW| aW "a WORD" (with white space)
498|v_a[| a[ "a []" from '[' to the matching ']'
499|v_a]| a] same as a[
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000500|v_a`| a` string in backticks
Bram Moolenaar071d4272004-06-13 20:20:40 +0000501|v_ab| ab "a block" from "[(" to "])" (with braces)
502|v_ap| ap "a paragraph" (with white space)
503|v_as| as "a sentence" (with white space)
Bram Moolenaarf2330482008-06-24 20:19:36 +0000504|v_at| at "a tag block" (with white space)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000505|v_aw| aw "a word" (with white space)
506|v_a{| a{ same as aB
507|v_a}| a} same as aB
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000508|v_iquote| i" double quoted string without the quotes
509|v_i'| i' single quoted string without the quotes
Bram Moolenaar071d4272004-06-13 20:20:40 +0000510|v_i(| i( same as ib
511|v_i)| i) same as ib
512|v_i<| i< "inner <>" from '<' to the matching '>'
513|v_i>| i> same as i<
514|v_iB| iB "inner Block" from "[{" and "]}"
515|v_iW| iW "inner WORD"
516|v_i[| i[ "inner []" from '[' to the matching ']'
517|v_i]| i] same as i[
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000518|v_i`| i` string in backticks without the backticks
Bram Moolenaar071d4272004-06-13 20:20:40 +0000519|v_ib| ib "inner block" from "[(" to "])"
520|v_ip| ip "inner paragraph"
521|v_is| is "inner sentence"
Bram Moolenaarf2330482008-06-24 20:19:36 +0000522|v_it| it "inner tag block"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000523|v_iw| iw "inner word"
524|v_i{| i{ same as iB
525|v_i}| i} same as iB
526
527==============================================================================
5282.2 Window commands *CTRL-W*
529
530tag command action in Normal mode ~
531------------------------------------------------------------------------------
532|CTRL-W_CTRL-B| CTRL-W CTRL-B same as "CTRL-W b"
533|CTRL-W_CTRL-C| CTRL-W CTRL-C same as "CTRL-W c"
534|CTRL-W_CTRL-D| CTRL-W CTRL-D same as "CTRL-W d"
535|CTRL-W_CTRL-F| CTRL-W CTRL-F same as "CTRL-W f"
536 CTRL-W CTRL-G same as "CTRL-W g .."
537|CTRL-W_CTRL-H| CTRL-W CTRL-H same as "CTRL-W h"
538|CTRL-W_CTRL-I| CTRL-W CTRL-I same as "CTRL-W i"
539|CTRL-W_CTRL-J| CTRL-W CTRL-J same as "CTRL-W j"
540|CTRL-W_CTRL-K| CTRL-W CTRL-K same as "CTRL-W k"
541|CTRL-W_CTRL-L| CTRL-W CTRL-L same as "CTRL-W l"
542|CTRL-W_CTRL-N| CTRL-W CTRL-N same as "CTRL-W n"
543|CTRL-W_CTRL-O| CTRL-W CTRL-O same as "CTRL-W o"
544|CTRL-W_CTRL-P| CTRL-W CTRL-P same as "CTRL-W p"
545|CTRL-W_CTRL-Q| CTRL-W CTRL-Q same as "CTRL-W q"
546|CTRL-W_CTRL-R| CTRL-W CTRL-R same as "CTRL-W r"
547|CTRL-W_CTRL-S| CTRL-W CTRL-S same as "CTRL-W s"
548|CTRL-W_CTRL-T| CTRL-W CTRL-T same as "CTRL-W t"
549|CTRL-W_CTRL-V| CTRL-W CTRL-V same as "CTRL-W v"
550|CTRL-W_CTRL-W| CTRL-W CTRL-W same as "CTRL-W w"
551|CTRL-W_CTRL-X| CTRL-W CTRL-X same as "CTRL-W x"
552|CTRL-W_CTRL-Z| CTRL-W CTRL-Z same as "CTRL-W z"
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-_| CTRL-W CTRL-_ same as "CTRL-W _"
556|CTRL-W_+| CTRL-W + increase current window height N lines
557|CTRL-W_-| CTRL-W - decrease current window height N lines
Bram Moolenaarb6e0ec62017-07-23 22:12:20 +0200558|CTRL-W_:| CTRL-W : same as |:|, edit a command line
Bram Moolenaar071d4272004-06-13 20:20:40 +0000559|CTRL-W_<| CTRL-W < decrease current window width N columns
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100560|CTRL-W_=| CTRL-W = make all windows the same height & width
Bram Moolenaar071d4272004-06-13 20:20:40 +0000561|CTRL-W_>| CTRL-W > increase current window width N columns
562|CTRL-W_H| CTRL-W H move current window to the far left
563|CTRL-W_J| CTRL-W J move current window to the very bottom
564|CTRL-W_K| CTRL-W K move current window to the very top
565|CTRL-W_L| CTRL-W L move current window to the far right
566|CTRL-W_P| CTRL-W P go to preview window
567|CTRL-W_R| CTRL-W R rotate windows upwards N times
568|CTRL-W_S| CTRL-W S same as "CTRL-W s"
Bram Moolenaar4c3f5362006-04-11 21:38:50 +0000569|CTRL-W_T| CTRL-W T move current window to a new tab page
Bram Moolenaar071d4272004-06-13 20:20:40 +0000570|CTRL-W_W| CTRL-W W go to N previous window (wrap around)
571|CTRL-W_]| CTRL-W ] split window and jump to tag under cursor
572|CTRL-W_^| CTRL-W ^ split current window and edit alternate
573 file N
574|CTRL-W__| CTRL-W _ set current window height to N (default:
575 very high)
576|CTRL-W_b| CTRL-W b go to bottom window
577|CTRL-W_c| CTRL-W c close current window (like |:close|)
578|CTRL-W_d| CTRL-W d split window and jump to definition under
579 the cursor
580|CTRL-W_f| CTRL-W f split window and edit file name under the
581 cursor
Bram Moolenaard1f56e62006-02-22 21:25:37 +0000582|CTRL-W_F| CTRL-W F split window and edit file name under the
583 cursor and jump to the line number
584 following the file name.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000585|CTRL-W_g_CTRL-]| CTRL-W g CTRL-] split window and do |:tjump| to tag under
586 cursor
587|CTRL-W_g]| CTRL-W g ] split window and do |:tselect| for tag
588 under cursor
589|CTRL-W_g}| CTRL-W g } do a |:ptjump| to the tag under the cursor
Bram Moolenaar8dff8182006-04-06 20:18:50 +0000590|CTRL-W_gf| CTRL-W g f edit file name under the cursor in a new
591 tab page
Bram Moolenaar57657d82006-04-21 22:12:41 +0000592|CTRL-W_gF| CTRL-W g F edit file name under the cursor in a new
593 tab page and jump to the line number
594 following the file name.
Bram Moolenaar26967612019-03-17 17:13:16 +0100595|CTRL-W_gt| CTRL-W g t same as `gt`: go to next tab page
596|CTRL-W_gT| CTRL-W g T same as `gT`: go to previous tab page
Bram Moolenaar62a23252020-08-09 14:04:42 +0200597|CTRL-W_g<Tab>| CTRL-W g <Tab> same as |g<Tab>|: go to last accessed tab
598 page.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000599|CTRL-W_h| CTRL-W h go to Nth left window (stop at first window)
600|CTRL-W_i| CTRL-W i split window and jump to declaration of
601 identifier under the cursor
602|CTRL-W_j| CTRL-W j go N windows down (stop at last window)
603|CTRL-W_k| CTRL-W k go N windows up (stop at first window)
604|CTRL-W_l| CTRL-W l go to Nth right window (stop at last window)
605|CTRL-W_n| CTRL-W n open new window, N lines high
606|CTRL-W_o| CTRL-W o close all but current window (like |:only|)
607|CTRL-W_p| CTRL-W p go to previous (last accessed) window
608|CTRL-W_q| CTRL-W q quit current window (like |:quit|)
609|CTRL-W_r| CTRL-W r rotate windows downwards N times
610|CTRL-W_s| CTRL-W s split current window in two parts, new
611 window N lines high
612|CTRL-W_t| CTRL-W t go to top window
613|CTRL-W_v| CTRL-W v split current window vertically, new window
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100614 N columns wide
Bram Moolenaar071d4272004-06-13 20:20:40 +0000615|CTRL-W_w| CTRL-W w go to N next window (wrap around)
616|CTRL-W_x| CTRL-W x exchange current window with window N
617 (default: next window)
618|CTRL-W_z| CTRL-W z close preview window
619|CTRL-W_bar| CTRL-W | set window width to N columns
620|CTRL-W_}| CTRL-W } show tag under cursor in preview window
621|CTRL-W_<Down>| CTRL-W <Down> same as "CTRL-W j"
622|CTRL-W_<Up>| CTRL-W <Up> same as "CTRL-W k"
623|CTRL-W_<Left>| CTRL-W <Left> same as "CTRL-W h"
624|CTRL-W_<Right>| CTRL-W <Right> same as "CTRL-W l"
625
626==============================================================================
6272.3 Square bracket commands *[* *]*
628
629tag char note action in Normal mode ~
630------------------------------------------------------------------------------
631|[_CTRL-D| [ CTRL-D jump to first #define found in current and
632 included files matching the word under the
633 cursor, start searching at beginning of
634 current file
635|[_CTRL-I| [ CTRL-I jump to first line in current and included
636 files that contains the word under the
637 cursor, start searching at beginning of
638 current file
639|[#| [# 1 cursor to N previous unmatched #if, #else
640 or #ifdef
641|['| [' 1 cursor to previous lowercase mark, on first
642 non-blank
643|[(| [( 1 cursor N times back to unmatched '('
644|[star| [* 1 same as "[/"
645|[`| [` 1 cursor to previous lowercase mark
646|[/| [/ 1 cursor to N previous start of a C comment
647|[D| [D list all defines found in current and
648 included files matching the word under the
649 cursor, start searching at beginning of
650 current file
651|[I| [I list all lines found in current and
652 included files that contain the word under
653 the cursor, start searching at beginning of
654 current file
655|[P| [P 2 same as "[p"
656|[[| [[ 1 cursor N sections backward
657|[]| [] 1 cursor N SECTIONS backward
658|[c| [c 1 cursor N times backwards to start of change
659|[d| [d show first #define found in current and
660 included files matching the word under the
661 cursor, start searching at beginning of
662 current file
663|[f| [f same as "gf"
664|[i| [i show first line found in current and
665 included files that contains the word under
666 the cursor, start searching at beginning of
667 current file
Bram Moolenaar071d4272004-06-13 20:20:40 +0000668|[m| [m 1 cursor N times back to start of member
669 function
Bram Moolenaardd2a3cd2007-05-05 17:10:09 +0000670|[p| [p 2 like "P", but adjust indent to current line
671|[s| [s 1 move to the previous misspelled word
Bram Moolenaar071d4272004-06-13 20:20:40 +0000672|[z| [z 1 move to start of open fold
673|[{| [{ 1 cursor N times back to unmatched '{'
Bram Moolenaarfa13eef2013-02-06 17:34:04 +0100674|[<MiddleMouse>| [<MiddleMouse> 2 same as "[p"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000675
676|]_CTRL-D| ] CTRL-D jump to first #define found in current and
677 included files matching the word under the
678 cursor, start searching at cursor position
679|]_CTRL-I| ] CTRL-I jump to first line in current and included
680 files that contains the word under the
681 cursor, start searching at cursor position
682|]#| ]# 1 cursor to N next unmatched #endif or #else
683|]'| ]' 1 cursor to next lowercase mark, on first
684 non-blank
685|])| ]) 1 cursor N times forward to unmatched ')'
686|]star| ]* 1 same as "]/"
687|]`| ]` 1 cursor to next lowercase mark
688|]/| ]/ 1 cursor to N next end of a C comment
689|]D| ]D list all #defines found in current and
690 included files matching the word under the
691 cursor, start searching at cursor position
692|]I| ]I list all lines found in current and
693 included files that contain the word under
694 the cursor, start searching at cursor
695 position
696|]P| ]P 2 same as "[p"
697|][| ][ 1 cursor N SECTIONS forward
698|]]| ]] 1 cursor N sections forward
699|]c| ]c 1 cursor N times forward to start of change
700|]d| ]d show first #define found in current and
701 included files matching the word under the
702 cursor, start searching at cursor position
703|]f| ]f same as "gf"
704|]i| ]i show first line found in current and
705 included files that contains the word under
706 the cursor, start searching at cursor
707 position
Bram Moolenaar071d4272004-06-13 20:20:40 +0000708|]m| ]m 1 cursor N times forward to end of member
709 function
Bram Moolenaardd2a3cd2007-05-05 17:10:09 +0000710|]p| ]p 2 like "p", but adjust indent to current line
711|]s| ]s 1 move to next misspelled word
Bram Moolenaar071d4272004-06-13 20:20:40 +0000712|]z| ]z 1 move to end of open fold
713|]}| ]} 1 cursor N times forward to unmatched '}'
Bram Moolenaarfa13eef2013-02-06 17:34:04 +0100714|]<MiddleMouse>| ]<MiddleMouse> 2 same as "]p"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000715
716==============================================================================
7172.4 Commands starting with 'g' *g*
718
719tag char note action in Normal mode ~
720------------------------------------------------------------------------------
721|g_CTRL-A| g CTRL-A only when compiled with MEM_PROFILE
722 defined: dump a memory profile
723|g_CTRL-G| g CTRL-G show information about current cursor
724 position
725|g_CTRL-H| g CTRL-H start Select block mode
726|g_CTRL-]| g CTRL-] |:tjump| to the tag under the cursor
727|g#| g# 1 like "#", but without using "\<" and "\>"
728|g$| g$ 1 when 'wrap' off go to rightmost character of
729 the current line that is on the screen;
730 when 'wrap' on go to the rightmost character
731 of the current screen line
732|g&| g& 2 repeat last ":s" on all lines
733|g'| g'{mark} 1 like |'| but without changing the jumplist
734|g`| g`{mark} 1 like |`| but without changing the jumplist
735|gstar| g* 1 like "*", but without using "\<" and "\>"
Bram Moolenaar2b8388b2015-02-28 13:11:45 +0100736|g+| g+ go to newer text state N times
737|g,| g, 1 go to N newer position in change list
738|g-| g- go to older text state N times
Bram Moolenaar071d4272004-06-13 20:20:40 +0000739|g0| g0 1 when 'wrap' off go to leftmost character of
740 the current line that is on the screen;
741 when 'wrap' on go to the leftmost character
742 of the current screen line
743|g8| g8 print hex value of bytes used in UTF-8
744 character under the cursor
Bram Moolenaar2b8388b2015-02-28 13:11:45 +0100745|g;| g; 1 go to N older position in change list
Bram Moolenaarcfc7d632005-07-28 22:28:16 +0000746|g<| g< display previous command output
Bram Moolenaar071d4272004-06-13 20:20:40 +0000747|g?| g? 2 Rot13 encoding operator
748|g?g?| g?? 2 Rot13 encode current line
749|g?g?| g?g? 2 Rot13 encode current line
750|gD| gD 1 go to definition of word under the cursor
751 in current file
752|gE| gE 1 go backwards to the end of the previous
753 WORD
754|gH| gH start Select line mode
755|gI| gI 2 like "I", but always start in column 1
756|gJ| gJ 2 join lines without inserting space
Bram Moolenaar6c35bea2012-07-25 17:49:10 +0200757|gN| gN 1,2 find the previous match with the last used
758 search pattern and Visually select it
Bram Moolenaar071d4272004-06-13 20:20:40 +0000759|gP| ["x]gP 2 put the text [from register x] before the
760 cursor N times, leave the cursor after it
zeertzjqd9be94c2024-07-14 10:20:20 +0200761|gQ| gQ switch to "Ex" mode with Vim editing
Bram Moolenaar071d4272004-06-13 20:20:40 +0000762|gR| gR 2 enter Virtual Replace mode
Bram Moolenaar531da592013-05-06 05:58:55 +0200763|gT| gT go to the previous tab page
Bram Moolenaar071d4272004-06-13 20:20:40 +0000764|gU| gU{motion} 2 make Nmove text uppercase
765|gV| gV don't reselect the previous Visual area
766 when executing a mapping or menu in Select
767 mode
768|g]| g] :tselect on the tag under the cursor
769|g^| g^ 1 when 'wrap' off go to leftmost non-white
770 character of the current line that is on
771 the screen; when 'wrap' on go to the
772 leftmost non-white character of the current
773 screen line
Bram Moolenaar2b8388b2015-02-28 13:11:45 +0100774|g_| g_ 1 cursor to the last CHAR N - 1 lines lower
Bram Moolenaar071d4272004-06-13 20:20:40 +0000775|ga| ga print ascii value of character under the
776 cursor
777|gd| gd 1 go to definition of word under the cursor
778 in current function
779|ge| ge 1 go backwards to the end of the previous
780 word
781|gf| gf start editing the file whose name is under
782 the cursor
Bram Moolenaard1f56e62006-02-22 21:25:37 +0000783|gF| gF start editing the file whose name is under
784 the cursor and jump to the line number
785 following the filename.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000786|gg| gg 1 cursor to line N, default first line
787|gh| gh start Select mode
788|gi| gi 2 like "i", but first move to the |'^| mark
789|gj| gj 1 like "j", but when 'wrap' on go N screen
790 lines down
791|gk| gk 1 like "k", but when 'wrap' on go N screen
792 lines up
793|gm| gm 1 go to character at middle of the screenline
Bram Moolenaar8b530c12019-10-28 02:13:05 +0100794|gM| gM 1 go to character at middle of the text line
Bram Moolenaar4f4d51a2020-10-11 13:57:40 +0200795|gn| gn 1,2 find the next match with the last used
796 search pattern and Visually select it
Bram Moolenaar071d4272004-06-13 20:20:40 +0000797|go| go 1 cursor to byte N in the buffer
798|gp| ["x]gp 2 put the text [from register x] after the
799 cursor N times, leave the cursor after it
800|gq| gq{motion} 2 format Nmove text
801|gr| gr{char} 2 virtual replace N chars with {char}
802|gs| gs go to sleep for N seconds (default 1)
Bram Moolenaar531da592013-05-06 05:58:55 +0200803|gt| gt go to the next tab page
Bram Moolenaar071d4272004-06-13 20:20:40 +0000804|gu| gu{motion} 2 make Nmove text lowercase
805|gv| gv reselect the previous Visual area
806|gw| gw{motion} 2 format Nmove text and keep cursor
Bram Moolenaarc9b4b052006-04-30 18:54:39 +0000807|g@| g@{motion} call 'operatorfunc'
Bram Moolenaar071d4272004-06-13 20:20:40 +0000808|g~| g~{motion} 2 swap case for Nmove text
809|g<Down>| g<Down> 1 same as "gj"
810|g<End>| g<End> 1 same as "g$"
811|g<Home>| g<Home> 1 same as "g0"
812|g<LeftMouse>| g<LeftMouse> same as <C-LeftMouse>
813 g<MiddleMouse> same as <C-MiddleMouse>
814|g<RightMouse>| g<RightMouse> same as <C-RightMouse>
Bram Moolenaar62a23252020-08-09 14:04:42 +0200815|g<Tab>| g<Tab> go to the last accessed tab page.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000816|g<Up>| g<Up> 1 same as "gk"
817
818==============================================================================
8192.5 Commands starting with 'z' *z*
820
821tag char note action in Normal mode ~
822------------------------------------------------------------------------------
823|z<CR>| z<CR> redraw, cursor line to top of window,
824 cursor on first non-blank
825|zN<CR>| z{height}<CR> redraw, make window {height} lines high
826|z+| z+ cursor on line N (default line below
827 window), otherwise like "z<CR>"
828|z-| z- redraw, cursor line at bottom of window,
829 cursor on first non-blank
830|z.| z. redraw, cursor line to center of window,
831 cursor on first non-blank
Bram Moolenaar5c2f0502005-12-23 22:11:04 +0000832|z=| z= give spelling suggestions
Bram Moolenaar071d4272004-06-13 20:20:40 +0000833|zA| zA open a closed fold or close an open fold
834 recursively
835|zC| zC close folds recursively
836|zD| zD delete folds recursively
837|zE| zE eliminate all folds
838|zF| zF create a fold for N lines
Bram Moolenaaracc22402020-06-07 21:07:18 +0200839|zG| zG temporarily mark word as correctly spelled
Bram Moolenaar56b45b92013-06-24 22:22:18 +0200840|zH| zH when 'wrap' off scroll half a screenwidth
841 to the right
842|zL| zL when 'wrap' off scroll half a screenwidth
843 to the left
Bram Moolenaar071d4272004-06-13 20:20:40 +0000844|zM| zM set 'foldlevel' to zero
845|zN| zN set 'foldenable'
846|zO| zO open folds recursively
847|zR| zR set 'foldlevel' to the deepest fold
Bram Moolenaaracc22402020-06-07 21:07:18 +0200848|zW| zW temporarily mark word as incorrectly spelled
Bram Moolenaar071d4272004-06-13 20:20:40 +0000849|zX| zX re-apply 'foldlevel'
850|z^| z^ cursor on line N (default line above
851 window), otherwise like "z-"
852|za| za open a closed fold, close an open fold
853|zb| zb redraw, cursor line at bottom of window
854|zc| zc close a fold
855|zd| zd delete a fold
856|ze| ze when 'wrap' off scroll horizontally to
857 position the cursor at the end (right side)
858 of the screen
859|zf| zf{motion} create a fold for Nmove text
Bram Moolenaaracc22402020-06-07 21:07:18 +0200860|zg| zg permanently mark word as correctly spelled
Bram Moolenaar071d4272004-06-13 20:20:40 +0000861|zh| zh when 'wrap' off scroll screen N characters
862 to the right
863|zi| zi toggle 'foldenable'
864|zj| zj 1 move to the start of the next fold
865|zk| zk 1 move to the end of the previous fold
866|zl| zl when 'wrap' off scroll screen N characters
867 to the left
868|zm| zm subtract one from 'foldlevel'
869|zn| zn reset 'foldenable'
870|zo| zo open fold
Christian Brabandt2fa93842021-05-30 22:17:25 +0200871|zp| zp paste in block-mode without trailing spaces
872|zP| zP paste in block-mode without trailing spaces
Bram Moolenaar071d4272004-06-13 20:20:40 +0000873|zr| zr add one to 'foldlevel'
874|zs| zs when 'wrap' off scroll horizontally to
875 position the cursor at the start (left
876 side) of the screen
877|zt| zt redraw, cursor line at top of window
Bram Moolenaar25c9c682019-05-05 18:13:34 +0200878|zuw| zuw undo |zw|
879|zug| zug undo |zg|
880|zuW| zuW undo |zW|
881|zuG| zuG undo |zG|
Bram Moolenaar071d4272004-06-13 20:20:40 +0000882|zv| zv open enough folds to view the cursor line
Bram Moolenaaracc22402020-06-07 21:07:18 +0200883|zw| zw permanently mark word as incorrectly spelled
Bram Moolenaar071d4272004-06-13 20:20:40 +0000884|zx| zx re-apply 'foldlevel' and do "zv"
Christian Brabandt544a38e2021-06-10 19:39:11 +0200885|zy| zy yank without trailing spaces
Bram Moolenaar071d4272004-06-13 20:20:40 +0000886|zz| zz redraw, cursor line at center of window
887|z<Left>| z<Left> same as "zh"
888|z<Right>| z<Right> same as "zl"
889
890==============================================================================
Bram Moolenaarf6b40102019-02-22 15:24:03 +01008912.6 Operator-pending mode *operator-pending-index*
892
893These can be used after an operator, but before a {motion} has been entered.
894
Bram Moolenaar26967612019-03-17 17:13:16 +0100895tag char action in Operator-pending mode ~
Bram Moolenaarf6b40102019-02-22 15:24:03 +0100896-----------------------------------------------------------------------
897|o_v| v force operator to work characterwise
898|o_V| V force operator to work linewise
899|o_CTRL-V| CTRL-V force operator to work blockwise
900
901==============================================================================
Bram Moolenaar071d4272004-06-13 20:20:40 +00009023. Visual mode *visual-index*
903
Bram Moolenaar402d2fe2005-04-15 21:00:38 +0000904Most commands in Visual mode are the same as in Normal mode. The ones listed
Bram Moolenaar071d4272004-06-13 20:20:40 +0000905here are those that are different.
906
907tag command note action in Visual mode ~
908------------------------------------------------------------------------------
909|v_CTRL-\_CTRL-N| CTRL-\ CTRL-N stop Visual mode
910|v_CTRL-\_CTRL-G| CTRL-\ CTRL-G go to mode specified with 'insertmode'
Bram Moolenaaraa3b15d2016-04-21 08:53:19 +0200911|v_CTRL-A| CTRL-A 2 add N to number in highlighted text
Bram Moolenaar81695252004-12-29 20:58:21 +0000912|v_CTRL-C| CTRL-C stop Visual mode
Bram Moolenaar071d4272004-06-13 20:20:40 +0000913|v_CTRL-G| CTRL-G toggle between Visual mode and Select mode
914|v_<BS>| <BS> 2 Select mode: delete highlighted area
915|v_CTRL-H| CTRL-H 2 same as <BS>
916|v_CTRL-O| CTRL-O switch from Select to Visual mode for one
917 command
918|v_CTRL-V| CTRL-V make Visual mode blockwise or stop Visual
919 mode
Bram Moolenaaraa3b15d2016-04-21 08:53:19 +0200920|v_CTRL-X| CTRL-X 2 subtract N from number in highlighted text
Bram Moolenaar81695252004-12-29 20:58:21 +0000921|v_<Esc>| <Esc> stop Visual mode
Bram Moolenaar071d4272004-06-13 20:20:40 +0000922|v_CTRL-]| CTRL-] jump to highlighted tag
923|v_!| !{filter} 2 filter the highlighted lines through the
924 external command {filter}
925|v_:| : start a command-line with the highlighted
926 lines as a range
927|v_<| < 2 shift the highlighted lines one
928 'shiftwidth' left
929|v_=| = 2 filter the highlighted lines through the
930 external program given with the 'equalprg'
931 option
932|v_>| > 2 shift the highlighted lines one
933 'shiftwidth' right
934|v_b_A| A 2 block mode: append same text in all lines,
935 after the highlighted area
936|v_C| C 2 delete the highlighted lines and start
937 insert
938|v_D| D 2 delete the highlighted lines
939|v_b_I| I 2 block mode: insert same text in all lines,
940 before the highlighted area
941|v_J| J 2 join the highlighted lines
942|v_K| K run 'keywordprg' on the highlighted area
Bram Moolenaarf10911e2022-01-29 22:20:48 +0000943|v_O| O move horizontally to other corner of area
944|v_P| P replace highlighted area with register
Shougo Matsushita509142a2022-05-06 11:45:09 +0100945 contents; registers are unchanged
Bram Moolenaar071d4272004-06-13 20:20:40 +0000946 Q does not start Ex mode
947|v_R| R 2 delete the highlighted lines and start
948 insert
949|v_S| S 2 delete the highlighted lines and start
950 insert
951|v_U| U 2 make highlighted area uppercase
952|v_V| V make Visual mode linewise or stop Visual
953 mode
954|v_X| X 2 delete the highlighted lines
955|v_Y| Y yank the highlighted lines
Bram Moolenaarf2330482008-06-24 20:19:36 +0000956|v_aquote| a" extend highlighted area with a double
957 quoted string
958|v_a'| a' extend highlighted area with a single
959 quoted string
Bram Moolenaar071d4272004-06-13 20:20:40 +0000960|v_a(| a( same as ab
961|v_a)| a) same as ab
962|v_a<| a< extend highlighted area with a <> block
963|v_a>| a> same as a<
964|v_aB| aB extend highlighted area with a {} block
965|v_aW| aW extend highlighted area with "a WORD"
966|v_a[| a[ extend highlighted area with a [] block
967|v_a]| a] same as a[
Bram Moolenaarf2330482008-06-24 20:19:36 +0000968|v_a`| a` extend highlighted area with a backtick
969 quoted string
Bram Moolenaar071d4272004-06-13 20:20:40 +0000970|v_ab| ab extend highlighted area with a () block
971|v_ap| ap extend highlighted area with a paragraph
972|v_as| as extend highlighted area with a sentence
Bram Moolenaarf2330482008-06-24 20:19:36 +0000973|v_at| at extend highlighted area with a tag block
Bram Moolenaar071d4272004-06-13 20:20:40 +0000974|v_aw| aw extend highlighted area with "a word"
975|v_a{| a{ same as aB
976|v_a}| a} same as aB
977|v_c| c 2 delete highlighted area and start insert
978|v_d| d 2 delete highlighted area
Bram Moolenaaraa3b15d2016-04-21 08:53:19 +0200979|v_g_CTRL-A| g CTRL-A 2 add N to number in highlighted text
980|v_g_CTRL-X| g CTRL-X 2 subtract N from number in highlighted text
Bram Moolenaar071d4272004-06-13 20:20:40 +0000981|v_gJ| gJ 2 join the highlighted lines without
982 inserting spaces
983|v_gq| gq 2 format the highlighted lines
984|v_gv| gv exchange current and previous highlighted
985 area
Bram Moolenaarf2330482008-06-24 20:19:36 +0000986|v_iquote| i" extend highlighted area with a double
987 quoted string (without quotes)
988|v_i'| i' extend highlighted area with a single
989 quoted string (without quotes)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000990|v_i(| i( same as ib
991|v_i)| i) same as ib
992|v_i<| i< extend highlighted area with inner <> block
993|v_i>| i> same as i<
994|v_iB| iB extend highlighted area with inner {} block
995|v_iW| iW extend highlighted area with "inner WORD"
996|v_i[| i[ extend highlighted area with inner [] block
997|v_i]| i] same as i[
Bram Moolenaarf2330482008-06-24 20:19:36 +0000998|v_i`| i` extend highlighted area with a backtick
999 quoted string (without the backticks)
Bram Moolenaar071d4272004-06-13 20:20:40 +00001000|v_ib| ib extend highlighted area with inner () block
1001|v_ip| ip extend highlighted area with inner paragraph
1002|v_is| is extend highlighted area with inner sentence
Bram Moolenaarf2330482008-06-24 20:19:36 +00001003|v_it| it extend highlighted area with inner tag block
Bram Moolenaar071d4272004-06-13 20:20:40 +00001004|v_iw| iw extend highlighted area with "inner word"
1005|v_i{| i{ same as iB
1006|v_i}| i} same as iB
1007|v_o| o move cursor to other corner of area
Bram Moolenaarf10911e2022-01-29 22:20:48 +00001008|v_p| p replace highlighted area with register
1009 contents; deleted text in unnamed register
Bram Moolenaar7dda86f2018-04-20 22:36:41 +02001010|v_r| r 2 replace highlighted area with a character
Bram Moolenaar071d4272004-06-13 20:20:40 +00001011|v_s| s 2 delete highlighted area and start insert
1012|v_u| u 2 make highlighted area lowercase
1013|v_v| v make Visual mode characterwise or stop
1014 Visual mode
1015|v_x| x 2 delete the highlighted area
1016|v_y| y yank the highlighted area
1017|v_~| ~ 2 swap case for the highlighted area
1018
1019==============================================================================
10204. Command-line editing *ex-edit-index*
1021
1022Get to the command-line with the ':', '!', '/' or '?' commands.
1023Normal characters are inserted at the current cursor position.
1024"Completion" below refers to context-sensitive completion. It will complete
1025file names, tags, commands etc. as appropriate.
1026
Bram Moolenaar26967612019-03-17 17:13:16 +01001027tag command action in Command-line editing mode ~
Bram Moolenaar2a8a3ec2011-01-08 16:06:37 +01001028------------------------------------------------------------------------------
Bram Moolenaar071d4272004-06-13 20:20:40 +00001029 CTRL-@ not used
1030|c_CTRL-A| CTRL-A do completion on the pattern in front of the
1031 cursor and insert all matches
1032|c_CTRL-B| CTRL-B cursor to begin of command-line
Bram Moolenaar2a8a3ec2011-01-08 16:06:37 +01001033|c_CTRL-C| CTRL-C same as <Esc>
Bram Moolenaar071d4272004-06-13 20:20:40 +00001034|c_CTRL-D| CTRL-D list completions that match the pattern in
1035 front of the cursor
1036|c_CTRL-E| CTRL-E cursor to end of command-line
1037|'cedit'| CTRL-F default value for 'cedit': opens the
1038 command-line window; otherwise not used
Bram Moolenaar818078d2016-08-27 21:58:42 +02001039|c_CTRL-G| CTRL-G next match when 'incsearch' is active
Bram Moolenaar071d4272004-06-13 20:20:40 +00001040|c_<BS>| <BS> delete the character in front of the cursor
1041|c_digraph| {char1} <BS> {char2}
1042 enter digraph when 'digraph' is on
1043|c_CTRL-H| CTRL-H same as <BS>
1044|c_<Tab>| <Tab> if 'wildchar' is <Tab>: Do completion on
1045 the pattern in front of the cursor
1046|c_<S-Tab>| <S-Tab> same as CTRL-P
1047|c_wildchar| 'wildchar' Do completion on the pattern in front of the
1048 cursor (default: <Tab>)
1049|c_CTRL-I| CTRL-I same as <Tab>
1050|c_<NL>| <NL> same as <CR>
1051|c_CTRL-J| CTRL-J same as <CR>
1052|c_CTRL-K| CTRL-K {char1} {char2}
1053 enter digraph
1054|c_CTRL-L| CTRL-L do completion on the pattern in front of the
1055 cursor and insert the longest common part
1056|c_<CR>| <CR> execute entered command
Bram Moolenaar2ec618c2016-10-01 14:47:05 +02001057|c_CTRL-M| CTRL-M same as <CR>
Bram Moolenaar071d4272004-06-13 20:20:40 +00001058|c_CTRL-N| CTRL-N after using 'wildchar' with multiple matches:
Bram Moolenaar214641f2017-03-05 17:04:09 +01001059 go to next match, otherwise: recall older
1060 command-line from history.
Bram Moolenaar071d4272004-06-13 20:20:40 +00001061 CTRL-O not used
1062|c_CTRL-P| CTRL-P after using 'wildchar' with multiple matches:
Bram Moolenaar214641f2017-03-05 17:04:09 +01001063 go to previous match, otherwise: recall older
1064 command-line from history.
Bram Moolenaar071d4272004-06-13 20:20:40 +00001065|c_CTRL-Q| CTRL-Q same as CTRL-V, unless it's used for terminal
1066 control flow
Bram Moolenaar63b74a82019-03-24 15:09:13 +01001067|c_CTRL-R| CTRL-R {regname}
Bram Moolenaar071d4272004-06-13 20:20:40 +00001068 insert the contents of a register or object
1069 under the cursor as if typed
Bram Moolenaar63b74a82019-03-24 15:09:13 +01001070|c_CTRL-R_CTRL-R| CTRL-R CTRL-R {regname}
1071|c_CTRL-R_CTRL-O| CTRL-R CTRL-O {regname}
Bram Moolenaar071d4272004-06-13 20:20:40 +00001072 insert the contents of a register or object
1073 under the cursor literally
Bram Moolenaaracc22402020-06-07 21:07:18 +02001074 CTRL-S not used, or used for terminal control flow
Bram Moolenaar818078d2016-08-27 21:58:42 +02001075|c_CTRL-T| CTRL-T previous match when 'incsearch' is active
Bram Moolenaar071d4272004-06-13 20:20:40 +00001076|c_CTRL-U| CTRL-U remove all characters
1077|c_CTRL-V| CTRL-V insert next non-digit literally, insert three
1078 digit decimal number as a single byte.
1079|c_CTRL-W| CTRL-W delete the word in front of the cursor
1080 CTRL-X not used (reserved for completion)
1081 CTRL-Y copy (yank) modeless selection
1082 CTRL-Z not used (reserved for suspend)
1083|c_<Esc>| <Esc> abandon command-line without executing it
Bram Moolenaar2ec618c2016-10-01 14:47:05 +02001084|c_CTRL-[| CTRL-[ same as <Esc>
Bram Moolenaarfa13eef2013-02-06 17:34:04 +01001085|c_CTRL-\_CTRL-N| CTRL-\ CTRL-N go to Normal mode, abandon command-line
1086|c_CTRL-\_CTRL-G| CTRL-\ CTRL-G go to mode specified with 'insertmode',
Bram Moolenaar071d4272004-06-13 20:20:40 +00001087 abandon command-line
1088 CTRL-\ a - d reserved for extensions
1089|c_CTRL-\_e| CTRL-\ e {expr} replace the command line with the result of
1090 {expr}
1091 CTRL-\ f - z reserved for extensions
1092 CTRL-\ others not used
Bram Moolenaardd2a3cd2007-05-05 17:10:09 +00001093|c_CTRL-]| CTRL-] trigger abbreviation
Bram Moolenaar071d4272004-06-13 20:20:40 +00001094|c_CTRL-^| CTRL-^ toggle use of |:lmap| mappings
1095|c_CTRL-_| CTRL-_ when 'allowrevins' set: change language
1096 (Hebrew, Farsi)
1097|c_<Del>| <Del> delete the character under the cursor
1098
1099|c_<Left>| <Left> cursor left
1100|c_<S-Left>| <S-Left> cursor one word left
1101|c_<C-Left>| <C-Left> cursor one word left
1102|c_<Right>| <Right> cursor right
1103|c_<S-Right>| <S-Right> cursor one word right
1104|c_<C-Right>| <C-Right> cursor one word right
1105|c_<Up>| <Up> recall previous command-line from history that
1106 matches pattern in front of the cursor
1107|c_<S-Up>| <S-Up> recall previous command-line from history
1108|c_<Down>| <Down> recall next command-line from history that
1109 matches pattern in front of the cursor
1110|c_<S-Down>| <S-Down> recall next command-line from history
1111|c_<Home>| <Home> cursor to start of command-line
1112|c_<End>| <End> cursor to end of command-line
1113|c_<PageDown>| <PageDown> same as <S-Down>
1114|c_<PageUp>| <PageUp> same as <S-Up>
1115|c_<Insert>| <Insert> toggle insert/overstrike mode
1116|c_<LeftMouse>| <LeftMouse> cursor at mouse click
1117
Yee Cheng Chin2bbd0d32023-10-14 02:23:45 -07001118commands in wildmenu mode (see 'wildmenu')
1119
1120 <Up> move up to parent / select the previous match
1121 <Down> move down to submenu / select the next match
1122 <Left> select the previous match / move up to parent
zeertzjq3c81f472023-10-15 16:02:08 +08001123 <Right> select the next match / move down to submenu
Yee Cheng Chin2bbd0d32023-10-14 02:23:45 -07001124 <CR> move into submenu when doing menu completion
Yee Cheng Chin209ec902023-10-17 10:56:25 +02001125 CTRL-E stop completion and go back to original text
1126 CTRL-Y accept selected match and stop completion
Yee Cheng Chin2bbd0d32023-10-14 02:23:45 -07001127 other stop completion and insert the typed character
1128
1129commands in wildmenu mode with 'wildoptions' set to "pum"
1130
Yee Cheng Chin2bbd0d32023-10-14 02:23:45 -07001131 <PageUp> select a match several entries back
1132 <PageDown> select a match several entries forward
1133
Bram Moolenaarf6b40102019-02-22 15:24:03 +01001134==============================================================================
11355. Terminal-Job mode *terminal-job-index*
1136
1137Most Normal mode commands except for window commands (|CTRL-W|) do not work in
1138a terminal window. Switch to Terminal-Normal mode to use them.
1139This assumes 'termwinkey' is not set.
1140
Bram Moolenaar26967612019-03-17 17:13:16 +01001141tag char action in Terminal-Job mode ~
Bram Moolenaarf6b40102019-02-22 15:24:03 +01001142-----------------------------------------------------------------------
1143|t_CTRL-\_CTRL-N| CTRL-\ CTRL-N switch to Terminal-Normal mode
Bram Moolenaar26967612019-03-17 17:13:16 +01001144|t_CTRL-W_N| CTRL-W N switch to Terminal-Normal mode
1145|t_CTRL-W_:| CTRL-W : enter an Ex command
1146|t_CTRL-W_.| CTRL-W . type CTRL-W in the terminal
Bram Moolenaarf6b40102019-02-22 15:24:03 +01001147 CTRL-W CTRL-\ send a CTRL-\ to the job in the terminal
Bram Moolenaar7ceefb32020-05-01 16:07:38 +02001148|t_CTRL-W_quote| CTRL-W " {register}
Bram Moolenaarf6b40102019-02-22 15:24:03 +01001149 paste register in the terminal
1150|t_CTRL-W_CTRL-C| CTRL-W CTRL-C forcefully ends the job
Bram Moolenaar911ead12019-04-21 00:03:35 +02001151|t_CTRL-W_CTRL-W| CTRL-W CTRL-W move focus to the next window
Bram Moolenaar26967612019-03-17 17:13:16 +01001152|t_CTRL-W_gt| CTRL-W gt go to next tabpage, same as `gt`
1153|t_CTRL-W_gT| CTRL-W gT go to previous tabpage, same as `gT`
Bram Moolenaarf6b40102019-02-22 15:24:03 +01001154
Bram Moolenaaracb4f222016-01-10 15:59:26 +01001155You found it, Arthur! *holy-grail* *:smile*
Bram Moolenaar071d4272004-06-13 20:20:40 +00001156
1157==============================================================================
Bram Moolenaarf6b40102019-02-22 15:24:03 +010011586. EX commands *ex-cmd-index* *:index*
Bram Moolenaar071d4272004-06-13 20:20:40 +00001159
1160This is a brief but complete listing of all the ":" commands, without
1161mentioning any arguments. The optional part of the command name is inside [].
1162The commands are sorted on the non-optional part of their name.
1163
Bram Moolenaar26967612019-03-17 17:13:16 +01001164tag command action ~
Bram Moolenaar2a8a3ec2011-01-08 16:06:37 +01001165------------------------------------------------------------------------------
Bram Moolenaar30e9b3c2019-09-07 16:24:12 +02001166|:| : nothing
1167|:range| :{range} go to last line in {range}
Bram Moolenaar071d4272004-06-13 20:20:40 +00001168|:!| :! filter lines or execute an external command
1169|:!!| :!! repeat last ":!" command
1170|:#| :# same as ":number"
1171|:&| :& repeat last ":substitute"
Yee Cheng Chinb77bdce2022-10-15 10:22:19 +01001172|:star| :* use the last Visual area, like :'<,'>
Bram Moolenaar071d4272004-06-13 20:20:40 +00001173|:<| :< shift lines one 'shiftwidth' left
Bram Moolenaar9da17d72022-02-09 21:50:44 +00001174|:=| := print the last line number
Bram Moolenaar071d4272004-06-13 20:20:40 +00001175|:>| :> shift lines one 'shiftwidth' right
1176|:@| :@ execute contents of a register
1177|:@@| :@@ repeat the previous ":@"
dkearns9c5b90d2024-01-24 06:34:28 +11001178|:2match| :2mat[ch] define a second match to highlight
1179|:3match| :3mat[ch] define a third match to highlight
Bram Moolenaar071d4272004-06-13 20:20:40 +00001180|:Next| :N[ext] go to previous file in the argument list
1181|:Print| :P[rint] print lines
1182|:X| :X ask for encryption key
1183|:append| :a[ppend] append text
1184|:abbreviate| :ab[breviate] enter abbreviation
1185|:abclear| :abc[lear] remove all abbreviations
1186|:aboveleft| :abo[veleft] make split window appear left or above
h-east0c3e57b2025-01-02 11:00:49 +01001187|:abstract| :abstract declare a Vim9 abstract class
Bram Moolenaar071d4272004-06-13 20:20:40 +00001188|:all| :al[l] open a window for each file in the argument
1189 list
1190|:amenu| :am[enu] enter new menu item for all modes
1191|:anoremenu| :an[oremenu] enter a new menu for all modes that will not
1192 be remapped
1193|:args| :ar[gs] print the argument list
1194|:argadd| :arga[dd] add items to the argument list
Bram Moolenaar1588bc82022-03-08 21:35:07 +00001195|:argdedupe| :argded[upe] remove duplicates from the argument list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001196|:argdelete| :argd[elete] delete items from the argument list
1197|:argedit| :arge[dit] add item to the argument list and edit it
1198|:argdo| :argdo do a command on all items in the argument list
1199|:argglobal| :argg[lobal] define the global argument list
1200|:arglocal| :argl[ocal] define a local argument list
1201|:argument| :argu[ment] go to specific file in the argument list
1202|:ascii| :as[cii] print ascii value of character under the cursor
1203|:autocmd| :au[tocmd] enter or show autocommands
1204|:augroup| :aug[roup] select the autocommand group to use
1205|:aunmenu| :aun[menu] remove menu for all modes
1206|:buffer| :b[uffer] go to specific buffer in the buffer list
1207|:bNext| :bN[ext] go to previous buffer in the buffer list
1208|:ball| :ba[ll] open a window for each buffer in the buffer list
1209|:badd| :bad[d] add buffer to the buffer list
Bram Moolenaar942db232021-02-13 18:14:48 +01001210|:balt| :balt like ":badd" but also set the alternate file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001211|:bdelete| :bd[elete] remove a buffer from the buffer list
1212|:behave| :be[have] set mouse and selection behavior
1213|:belowright| :bel[owright] make split window appear right or below
1214|:bfirst| :bf[irst] go to first buffer in the buffer list
1215|:blast| :bl[ast] go to last buffer in the buffer list
1216|:bmodified| :bm[odified] go to next buffer in the buffer list that has
1217 been modified
1218|:bnext| :bn[ext] go to next buffer in the buffer list
1219|:botright| :bo[tright] make split window appear at bottom or far right
1220|:bprevious| :bp[revious] go to previous buffer in the buffer list
1221|:brewind| :br[ewind] go to first buffer in the buffer list
1222|:break| :brea[k] break out of while loop
1223|:breakadd| :breaka[dd] add a debugger breakpoint
1224|:breakdel| :breakd[el] delete a debugger breakpoint
1225|:breaklist| :breakl[ist] list debugger breakpoints
1226|:browse| :bro[wse] use file selection dialog
h-east0c3e57b2025-01-02 11:00:49 +01001227|:bufdo| :bufd[o] execute command in each listed buffer
Bram Moolenaar071d4272004-06-13 20:20:40 +00001228|:buffers| :buffers list all files in the buffer list
1229|:bunload| :bun[load] unload a specific buffer
1230|:bwipeout| :bw[ipeout] really delete a buffer
1231|:change| :c[hange] replace a line or series of lines
1232|:cNext| :cN[ext] go to previous error
1233|:cNfile| :cNf[ile] go to last error in previous file
1234|:cabbrev| :ca[bbrev] like ":abbreviate" but for Command-line mode
1235|:cabclear| :cabc[lear] clear all abbreviations for Command-line mode
Bram Moolenaar3ff33112019-05-03 21:56:35 +02001236|:cabove| :cabo[ve] go to error above current line
Bram Moolenaara6878372014-03-22 21:02:50 +01001237|:caddbuffer| :cad[dbuffer] add errors from buffer
1238|:caddexpr| :cadde[xpr] add errors from expr
Bram Moolenaar4770d092006-01-12 23:22:24 +00001239|:caddfile| :caddf[ile] add error message to current quickfix list
Bram Moolenaarcf6a55c2019-05-05 15:02:30 +02001240|:cafter| :caf[ter] go to error after current cursor
Bram Moolenaar071d4272004-06-13 20:20:40 +00001241|:call| :cal[l] call a function
1242|:catch| :cat[ch] part of a :try command
h-east0c3e57b2025-01-02 11:00:49 +01001243|:cbefore| :cbe[fore] go to error before current cursor
Bram Moolenaarcf6a55c2019-05-05 15:02:30 +02001244|:cbelow| :cbel[ow] go to error below current line
Bram Moolenaar537ef082016-07-09 17:56:19 +02001245|:cbottom| :cbo[ttom] scroll to the bottom of the quickfix window
Bram Moolenaar86b68352004-12-27 21:59:20 +00001246|:cbuffer| :cb[uffer] parse error messages and jump to first error
Bram Moolenaar071d4272004-06-13 20:20:40 +00001247|:cc| :cc go to specific error
1248|:cclose| :ccl[ose] close quickfix window
1249|:cd| :cd change directory
Bram Moolenaaraa23b372015-09-08 18:46:31 +02001250|:cdo| :cdo execute command in each valid error list entry
1251|:cfdo| :cfd[o] execute command in each file in error list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001252|:center| :ce[nter] format lines at the center
Bram Moolenaar87e25fd2005-07-27 21:13:01 +00001253|:cexpr| :cex[pr] read errors from expr and jump to first
Bram Moolenaar071d4272004-06-13 20:20:40 +00001254|:cfile| :cf[ile] read file with error messages and jump to first
1255|:cfirst| :cfir[st] go to the specified error, default first one
Bram Moolenaarc01140a2006-03-24 22:21:52 +00001256|:cgetbuffer| :cgetb[uffer] get errors from buffer
Bram Moolenaar8ab561d2006-03-23 22:44:10 +00001257|:cgetexpr| :cgete[xpr] get errors from expr
Bram Moolenaar071d4272004-06-13 20:20:40 +00001258|:cgetfile| :cg[etfile] read file with error messages
Bram Moolenaar34700a62013-03-07 13:20:54 +01001259|:changes| :changes print the change list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001260|:chdir| :chd[ir] change directory
1261|:checkpath| :che[ckpath] list included files
1262|:checktime| :checkt[ime] check timestamp of loaded buffers
Bram Moolenaar42ebd062016-07-17 13:35:14 +02001263|:chistory| :chi[story] list the error lists
h-east27f2e472025-01-03 10:45:15 +01001264|:class| :class start of a class declaration
Bram Moolenaar071d4272004-06-13 20:20:40 +00001265|:clast| :cla[st] go to the specified error, default last one
Bram Moolenaarc95a3022016-06-12 23:01:46 +02001266|:clearjumps| :cle[arjumps] clear the jump list
Hirohito Higashi73b96502025-06-28 18:18:21 +02001267|:clipreset| :clip[reset] reset 'clipmethod'
Bram Moolenaarc95a3022016-06-12 23:01:46 +02001268|:clist| :cl[ist] list all errors
Bram Moolenaar071d4272004-06-13 20:20:40 +00001269|:close| :clo[se] close current window
1270|:cmap| :cm[ap] like ":map" but for Command-line mode
1271|:cmapclear| :cmapc[lear] clear all mappings for Command-line mode
1272|:cmenu| :cme[nu] add menu for Command-line mode
1273|:cnext| :cn[ext] go to next error
1274|:cnewer| :cnew[er] go to newer error list
1275|:cnfile| :cnf[ile] go to first error in next file
1276|:cnoremap| :cno[remap] like ":noremap" but for Command-line mode
1277|:cnoreabbrev| :cnorea[bbrev] like ":noreabbrev" but for Command-line mode
1278|:cnoremenu| :cnoreme[nu] like ":noremenu" but for Command-line mode
1279|:copy| :co[py] copy lines
1280|:colder| :col[der] go to older error list
1281|:colorscheme| :colo[rscheme] load a specific color scheme
1282|:command| :com[mand] create user-defined command
1283|:comclear| :comc[lear] clear all user-defined commands
1284|:compiler| :comp[iler] do settings for a specific compiler
1285|:continue| :con[tinue] go back to :while
1286|:confirm| :conf[irm] prompt user when confirmation required
Bram Moolenaar6c1e1572019-06-22 02:13:00 +02001287|:const| :cons[t] create a variable as a constant
Bram Moolenaar071d4272004-06-13 20:20:40 +00001288|:copen| :cope[n] open quickfix window
1289|:cprevious| :cp[revious] go to previous error
1290|:cpfile| :cpf[ile] go to last error in previous file
1291|:cquit| :cq[uit] quit Vim with an error code
1292|:crewind| :cr[ewind] go to the specified error, default first one
Bram Moolenaaracb4f222016-01-10 15:59:26 +01001293|:cscope| :cs[cope] execute cscope command
Bram Moolenaar071d4272004-06-13 20:20:40 +00001294|:cstag| :cst[ag] use cscope to jump to a tag
1295|:cunmap| :cu[nmap] like ":unmap" but for Command-line mode
1296|:cunabbrev| :cuna[bbrev] like ":unabbrev" but for Command-line mode
1297|:cunmenu| :cunme[nu] remove menu for Command-line mode
1298|:cwindow| :cw[indow] open or close quickfix window
1299|:delete| :d[elete] delete lines
1300|:debug| :deb[ug] run a command in debugging mode
1301|:debuggreedy| :debugg[reedy] read debug mode commands from normal input
Bram Moolenaar191acfd2020-03-27 20:42:43 +01001302|:def| :def define a Vim9 user function
Bram Moolenaar388a5d42020-05-26 21:20:45 +02001303|:defcompile| :defc[ompile] compile Vim9 user functions in current script
h-east0c3e57b2025-01-02 11:00:49 +01001304|:defer| :defe[r] call function when current function is done
Bram Moolenaar071d4272004-06-13 20:20:40 +00001305|:delcommand| :delc[ommand] delete user-defined command
1306|:delfunction| :delf[unction] delete a user function
Bram Moolenaar191acfd2020-03-27 20:42:43 +01001307|:delmarks| :delm[arks] delete marks
Bram Moolenaar071d4272004-06-13 20:20:40 +00001308|:diffupdate| :dif[fupdate] update 'diff' buffers
1309|:diffget| :diffg[et] remove differences in current buffer
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00001310|:diffoff| :diffo[ff] switch off diff mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001311|:diffpatch| :diffp[atch] apply a patch and show differences
1312|:diffput| :diffpu[t] remove differences in other buffer
1313|:diffsplit| :diffs[plit] show differences with another file
h-east0c3e57b2025-01-02 11:00:49 +01001314|:diffthis| :difft[his] make current window a diff window
Bram Moolenaar071d4272004-06-13 20:20:40 +00001315|:digraphs| :dig[raphs] show or enter digraphs
1316|:display| :di[splay] display registers
Bram Moolenaar191acfd2020-03-27 20:42:43 +01001317|:disassemble| :disa[ssemble] disassemble Vim9 user function
Bram Moolenaar071d4272004-06-13 20:20:40 +00001318|:djump| :dj[ump] jump to #define
Bram Moolenaarb1332082013-10-06 14:22:40 +02001319|:dl| :dl short for |:delete| with the 'l' flag
Bram Moolenaar9ba7e172013-07-17 22:37:26 +02001320|:dlist| :dli[st] list #defines
Bram Moolenaar071d4272004-06-13 20:20:40 +00001321|:doautocmd| :do[autocmd] apply autocommands to current buffer
1322|:doautoall| :doautoa[ll] apply autocommands for all loaded buffers
Bram Moolenaarb1332082013-10-06 14:22:40 +02001323|:dp| :d[elete]p short for |:delete| with the 'p' flag
Bram Moolenaar071d4272004-06-13 20:20:40 +00001324|:drop| :dr[op] jump to window editing file or edit file in
1325 current window
1326|:dsearch| :ds[earch] list one #define
1327|:dsplit| :dsp[lit] split window and jump to #define
1328|:edit| :e[dit] edit a file
Bram Moolenaard3667a22006-03-16 21:35:52 +00001329|:earlier| :ea[rlier] go to older change, undo
Bram Moolenaar071d4272004-06-13 20:20:40 +00001330|:echo| :ec[ho] echoes the result of expressions
Bram Moolenaardad44732021-03-31 20:07:33 +02001331|:echoconsole| :echoc[onsole] like :echomsg but write to stdout
Bram Moolenaar071d4272004-06-13 20:20:40 +00001332|:echoerr| :echoe[rr] like :echo, show like an error and use history
1333|:echohl| :echoh[l] set highlighting for echo commands
1334|:echomsg| :echom[sg] same as :echo, put message in history
1335|:echon| :echon same as :echo, but without <EOL>
Yee Cheng Chinb77bdce2022-10-15 10:22:19 +01001336|:echowindow| :echow[indow] same as :echomsg, but use a popup window
Bram Moolenaar071d4272004-06-13 20:20:40 +00001337|:else| :el[se] part of an :if command
1338|:elseif| :elsei[f] part of an :if command
1339|:emenu| :em[enu] execute a menu by name
h-east27f2e472025-01-03 10:45:15 +01001340|:endclass| :endclass end of a class declaration
Bram Moolenaar191acfd2020-03-27 20:42:43 +01001341|:enddef| :enddef end of a user function started with :def
h-east27f2e472025-01-03 10:45:15 +01001342|:endenum| :endenum end of an enum declaration
Bram Moolenaar071d4272004-06-13 20:20:40 +00001343|:endif| :en[dif] end previous :if
h-east27f2e472025-01-03 10:45:15 +01001344|:endinterface| :endinterface end of an interface declaration
Bram Moolenaar17568792005-07-06 22:28:03 +00001345|:endfor| :endfo[r] end previous :for
Bram Moolenaar191acfd2020-03-27 20:42:43 +01001346|:endfunction| :endf[unction] end of a user function started with :function
Bram Moolenaar071d4272004-06-13 20:20:40 +00001347|:endtry| :endt[ry] end previous :try
1348|:endwhile| :endw[hile] end previous :while
1349|:enew| :ene[w] edit a new, unnamed buffer
h-east0c3e57b2025-01-02 11:00:49 +01001350|:enum| :enum start of an enum declaration
Bram Moolenaar4d8f4762021-06-27 15:18:56 +02001351|:eval| :ev[al] evaluate an expression and discard the result
Bram Moolenaar071d4272004-06-13 20:20:40 +00001352|:ex| :ex same as ":edit"
1353|:execute| :exe[cute] execute result of expressions
1354|:exit| :exi[t] same as ":xit"
Bram Moolenaar191acfd2020-03-27 20:42:43 +01001355|:export| :exp[ort] Vim9: export an item from a script
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001356|:exusage| :exu[sage] overview of Ex commands
Bram Moolenaar071d4272004-06-13 20:20:40 +00001357|:file| :f[ile] show or set the current file name
1358|:files| :files list all files in the buffer list
1359|:filetype| :filet[ype] switch file type detection on/off
Bram Moolenaare4a3bcf2016-08-26 19:52:37 +02001360|:filter| :filt[er] filter output of following command
Bram Moolenaar071d4272004-06-13 20:20:40 +00001361|:find| :fin[d] find file in 'path' and edit it
Bram Moolenaar4f4d51a2020-10-11 13:57:40 +02001362|:final| :final declare an immutable variable in Vim9
Bram Moolenaar071d4272004-06-13 20:20:40 +00001363|:finally| :fina[lly] part of a :try command
1364|:finish| :fini[sh] quit sourcing a Vim script
1365|:first| :fir[st] go to the first file in the argument list
1366|:fixdel| :fix[del] set key code of <Del>
1367|:fold| :fo[ld] create a fold
1368|:foldclose| :foldc[lose] close folds
1369|:folddoopen| :foldd[oopen] execute command on lines not in a closed fold
1370|:folddoclosed| :folddoc[losed] execute command on lines in a closed fold
1371|:foldopen| :foldo[pen] open folds
Bram Moolenaar17568792005-07-06 22:28:03 +00001372|:for| :for for loop
Bram Moolenaar071d4272004-06-13 20:20:40 +00001373|:function| :fu[nction] define a user function
1374|:global| :g[lobal] execute commands for matching lines
1375|:goto| :go[to] go to byte in the buffer
1376|:grep| :gr[ep] run 'grepprg' and jump to first match
Bram Moolenaar17568792005-07-06 22:28:03 +00001377|:grepadd| :grepa[dd] like :grep, but append to current list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001378|:gui| :gu[i] start the GUI
1379|:gvim| :gv[im] start the GUI
1380|:hardcopy| :ha[rdcopy] send text to the printer
1381|:help| :h[elp] open a help window
Bram Moolenaar5bfa2ed2014-09-19 19:39:34 +02001382|:helpclose| :helpc[lose] close one help window
Bram Moolenaar071d4272004-06-13 20:20:40 +00001383|:helpfind| :helpf[ind] dialog to open a help window
1384|:helpgrep| :helpg[rep] like ":grep" but searches help files
1385|:helptags| :helpt[ags] generate help tags for a directory
1386|:highlight| :hi[ghlight] specify highlighting methods
1387|:hide| :hid[e] hide current buffer for a command
1388|:history| :his[tory] print a history list
h-eastfd771612025-01-02 17:34:55 +01001389|:horizontal| :hor[izontal] following window command work horizontally
Bram Moolenaar071d4272004-06-13 20:20:40 +00001390|:insert| :i[nsert] insert text
1391|:iabbrev| :ia[bbrev] like ":abbrev" but for Insert mode
1392|:iabclear| :iabc[lear] like ":abclear" but for Insert mode
1393|:if| :if execute commands when condition met
1394|:ijump| :ij[ump] jump to definition of identifier
1395|:ilist| :il[ist] list lines where identifier matches
1396|:imap| :im[ap] like ":map" but for Insert mode
1397|:imapclear| :imapc[lear] like ":mapclear" but for Insert mode
1398|:imenu| :ime[nu] add menu for Insert mode
Bram Moolenaar191acfd2020-03-27 20:42:43 +01001399|:import| :imp[ort] Vim9: import an item from another script
Bram Moolenaar071d4272004-06-13 20:20:40 +00001400|:inoremap| :ino[remap] like ":noremap" but for Insert mode
1401|:inoreabbrev| :inorea[bbrev] like ":noreabbrev" but for Insert mode
1402|:inoremenu| :inoreme[nu] like ":noremenu" but for Insert mode
1403|:intro| :int[ro] print the introductory message
h-east0c3e57b2025-01-02 11:00:49 +01001404|:interface| :interface start of an interface declaration
64-bitmane08f10a2025-03-18 22:14:34 +01001405|:iput| :ip[ut] like |:put|, but adjust the indent to the
1406 current line
Bram Moolenaar071d4272004-06-13 20:20:40 +00001407|:isearch| :is[earch] list one line where identifier matches
1408|:isplit| :isp[lit] split window and jump to definition of
1409 identifier
1410|:iunmap| :iu[nmap] like ":unmap" but for Insert mode
1411|:iunabbrev| :iuna[bbrev] like ":unabbrev" but for Insert mode
1412|:iunmenu| :iunme[nu] remove menu for Insert mode
1413|:join| :j[oin] join lines
1414|:jumps| :ju[mps] print the jump list
1415|:k| :k set a mark
Bram Moolenaar17568792005-07-06 22:28:03 +00001416|:keepalt| :keepa[lt] following command keeps the alternate file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001417|:keepmarks| :kee[pmarks] following command keeps marks where they are
Bram Moolenaar5302d9e2011-09-14 17:55:08 +02001418|:keepjumps| :keepj[umps] following command keeps jumplist and marks
Bram Moolenaar4b60a6c2013-11-14 05:48:46 +01001419|:keeppatterns| :keepp[atterns] following command keeps search pattern history
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001420|:lNext| :lN[ext] go to previous entry in location list
1421|:lNfile| :lNf[ile] go to last entry in previous file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001422|:list| :l[ist] print lines
Bram Moolenaar3ff33112019-05-03 21:56:35 +02001423|:labove| :lab[ove] go to location above current line
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001424|:laddexpr| :lad[dexpr] add locations from expr
Bram Moolenaara37420f2006-02-04 22:37:47 +00001425|:laddbuffer| :laddb[uffer] add locations from buffer
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001426|:laddfile| :laddf[ile] add locations to current location list
Bram Moolenaarcf6a55c2019-05-05 15:02:30 +02001427|:lafter| :laf[ter] go to location after current cursor
Bram Moolenaar071d4272004-06-13 20:20:40 +00001428|:last| :la[st] go to the last file in the argument list
1429|:language| :lan[guage] set the language (locale)
Bram Moolenaard3667a22006-03-16 21:35:52 +00001430|:later| :lat[er] go to newer change, redo
h-east0c3e57b2025-01-02 11:00:49 +01001431|:lbefore| :lbe[fore] go to location before current cursor
Bram Moolenaarcf6a55c2019-05-05 15:02:30 +02001432|:lbelow| :lbel[ow] go to location below current line
Bram Moolenaar537ef082016-07-09 17:56:19 +02001433|:lbottom| :lbo[ttom] scroll to the bottom of the location window
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001434|:lbuffer| :lb[uffer] parse locations and jump to first location
Bram Moolenaar071d4272004-06-13 20:20:40 +00001435|:lcd| :lc[d] change directory locally
1436|:lchdir| :lch[dir] change directory locally
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001437|:lclose| :lcl[ose] close location window
Bram Moolenaaracb4f222016-01-10 15:59:26 +01001438|:lcscope| :lcs[cope] like ":cscope" but uses location list
Bram Moolenaaraa23b372015-09-08 18:46:31 +02001439|:ldo| :ld[o] execute command in valid location list entries
1440|:lfdo| :lfd[o] execute command in each file in location list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001441|:left| :le[ft] left align lines
1442|:leftabove| :lefta[bove] make split window appear left or above
Bram Moolenaar96cf4ba2021-04-24 14:15:41 +02001443|:legacy| :leg[acy] make following command use legacy script syntax
Bram Moolenaar071d4272004-06-13 20:20:40 +00001444|:let| :let assign a value to a variable or option
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001445|:lexpr| :lex[pr] read locations from expr and jump to first
1446|:lfile| :lf[ile] read file with locations and jump to first
1447|:lfirst| :lfir[st] go to the specified location, default first one
Bram Moolenaarc01140a2006-03-24 22:21:52 +00001448|:lgetbuffer| :lgetb[uffer] get locations from buffer
Bram Moolenaar8ab561d2006-03-23 22:44:10 +00001449|:lgetexpr| :lgete[xpr] get locations from expr
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001450|:lgetfile| :lg[etfile] read file with locations
Bram Moolenaara37420f2006-02-04 22:37:47 +00001451|:lgrep| :lgr[ep] run 'grepprg' and jump to first match
1452|:lgrepadd| :lgrepa[dd] like :grep, but append to current list
Bram Moolenaar8b6144b2006-02-08 09:20:24 +00001453|:lhelpgrep| :lh[elpgrep] like ":helpgrep" but uses location list
Bram Moolenaar42ebd062016-07-17 13:35:14 +02001454|:lhistory| :lhi[story] list the location lists
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001455|:ll| :ll go to specific location
1456|:llast| :lla[st] go to the specified location, default last one
1457|:llist| :lli[st] list all locations
Bram Moolenaara37420f2006-02-04 22:37:47 +00001458|:lmake| :lmak[e] execute external command 'makeprg' and parse
1459 error messages
Bram Moolenaar071d4272004-06-13 20:20:40 +00001460|:lmap| :lm[ap] like ":map!" but includes Lang-Arg mode
1461|:lmapclear| :lmapc[lear] like ":mapclear!" but includes Lang-Arg mode
Bram Moolenaar6ab5b842006-01-26 22:16:34 +00001462|:lnext| :lne[xt] go to next location
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001463|:lnewer| :lnew[er] go to newer location list
1464|:lnfile| :lnf[ile] go to first location in next file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001465|:lnoremap| :ln[oremap] like ":noremap!" but includes Lang-Arg mode
1466|:loadkeymap| :loadk[eymap] load the following keymaps until EOF
1467|:loadview| :lo[adview] load view for current window from a file
1468|:lockmarks| :loc[kmarks] following command keeps marks where they are
Bram Moolenaar24c088a2005-02-02 22:55:47 +00001469|:lockvar| :lockv[ar] lock variables
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001470|:lolder| :lol[der] go to older location list
h-east0c3e57b2025-01-02 11:00:49 +01001471|:lopen| :lop[en] open location window
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001472|:lprevious| :lp[revious] go to previous location
1473|:lpfile| :lpf[ile] go to last location in previous file
1474|:lrewind| :lr[ewind] go to the specified location, default first one
Bram Moolenaar071d4272004-06-13 20:20:40 +00001475|:ls| :ls list all buffers
Bram Moolenaarb8a7b562006-02-01 21:47:16 +00001476|:ltag| :lt[ag] jump to tag and add matching tags to the
1477 location list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001478|:lunmap| :lu[nmap] like ":unmap!" but includes Lang-Arg mode
Bram Moolenaar0ba04292010-07-14 23:23:17 +02001479|:lua| :lua execute |Lua| command
1480|:luado| :luad[o] execute Lua command for each line
1481|:luafile| :luaf[ile] execute |Lua| script file
Bram Moolenaara37420f2006-02-04 22:37:47 +00001482|:lvimgrep| :lv[imgrep] search for pattern in files
1483|:lvimgrepadd| :lvimgrepa[dd] like :vimgrep, but append to current list
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001484|:lwindow| :lw[indow] open or close location window
Bram Moolenaar071d4272004-06-13 20:20:40 +00001485|:move| :m[ove] move lines
1486|:mark| :ma[rk] set a mark
1487|:make| :mak[e] execute external command 'makeprg' and parse
1488 error messages
1489|:map| :map show or enter a mapping
1490|:mapclear| :mapc[lear] clear all mappings for Normal and Visual mode
1491|:marks| :marks list all marks
1492|:match| :mat[ch] define a match to highlight
1493|:menu| :me[nu] enter a new menu item
Bram Moolenaaracb4f222016-01-10 15:59:26 +01001494|:menutranslate| :menut[ranslate] add a menu translation item
Bram Moolenaar071d4272004-06-13 20:20:40 +00001495|:messages| :mes[sages] view previously displayed messages
1496|:mkexrc| :mk[exrc] write current mappings and settings to a file
1497|:mksession| :mks[ession] write session info to a file
Bram Moolenaar78599ad2005-06-16 21:47:53 +00001498|:mkspell| :mksp[ell] produce .spl spell file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001499|:mkvimrc| :mkv[imrc] write current mappings and settings to a file
1500|:mkview| :mkvie[w] write view of current window to a file
1501|:mode| :mod[e] show or change the screen mode
Bram Moolenaar8299df92004-07-10 09:47:34 +00001502|:mzscheme| :mz[scheme] execute MzScheme command
1503|:mzfile| :mzf[ile] execute MzScheme script file
Bram Moolenaarb26e6322010-05-22 21:34:09 +02001504|:nbclose| :nbc[lose] close the current Netbeans session
Bram Moolenaar17568792005-07-06 22:28:03 +00001505|:nbkey| :nb[key] pass a key to Netbeans
h-east0c3e57b2025-01-02 11:00:49 +01001506|:nbstart| :nbs[tart] start a new Netbeans session
Bram Moolenaar071d4272004-06-13 20:20:40 +00001507|:next| :n[ext] go to next file in the argument list
1508|:new| :new create a new empty window
1509|:nmap| :nm[ap] like ":map" but for Normal mode
1510|:nmapclear| :nmapc[lear] clear all mappings for Normal mode
1511|:nmenu| :nme[nu] add menu for Normal mode
1512|:nnoremap| :nn[oremap] like ":noremap" but for Normal mode
1513|:nnoremenu| :nnoreme[nu] like ":noremenu" but for Normal mode
Bram Moolenaar76f3b1a2014-03-27 22:30:07 +01001514|:noautocmd| :noa[utocmd] following commands don't trigger autocommands
Bram Moolenaar071d4272004-06-13 20:20:40 +00001515|:noremap| :no[remap] enter a mapping that will not be remapped
1516|:nohlsearch| :noh[lsearch] suspend 'hlsearch' highlighting
1517|:noreabbrev| :norea[bbrev] enter an abbreviation that will not be
1518 remapped
1519|:noremenu| :noreme[nu] enter a menu that will not be remapped
1520|:normal| :norm[al] execute Normal mode commands
Bram Moolenaar76f3b1a2014-03-27 22:30:07 +01001521|:noswapfile| :nos[wapfile] following commands don't create a swap file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001522|:number| :nu[mber] print lines with line number
1523|:nunmap| :nun[map] like ":unmap" but for Normal mode
1524|:nunmenu| :nunme[nu] remove menu for Normal mode
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01001525|:oldfiles| :ol[dfiles] list files that have marks in the viminfo file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001526|:open| :o[pen] start open mode (not implemented)
1527|:omap| :om[ap] like ":map" but for Operator-pending mode
1528|:omapclear| :omapc[lear] remove all mappings for Operator-pending mode
1529|:omenu| :ome[nu] add menu for Operator-pending mode
Bram Moolenaar7e8fd632006-02-18 22:14:51 +00001530|:only| :on[ly] close all windows except the current one
Bram Moolenaar071d4272004-06-13 20:20:40 +00001531|:onoremap| :ono[remap] like ":noremap" but for Operator-pending mode
1532|:onoremenu| :onoreme[nu] like ":noremenu" but for Operator-pending mode
1533|:options| :opt[ions] open the options-window
1534|:ounmap| :ou[nmap] like ":unmap" but for Operator-pending mode
1535|:ounmenu| :ounme[nu] remove menu for Operator-pending mode
Bram Moolenaarb2c03502010-07-02 20:20:09 +02001536|:ownsyntax| :ow[nsyntax] set new local syntax highlight for this window
Bram Moolenaar328da0d2016-03-04 22:22:32 +01001537|:packadd| :pa[ckadd] add a plugin from 'packpath'
Bram Moolenaare18c0b32016-03-20 21:08:34 +01001538|:packloadall| :packl[oadall] load all packages under 'packpath'
Yinzuo Jianga2a2fe82024-12-16 21:22:09 +01001539|:pbuffer| :pb[uffer] edit buffer in the preview window
Bram Moolenaar071d4272004-06-13 20:20:40 +00001540|:pclose| :pc[lose] close preview window
1541|:pedit| :ped[it] edit file in the preview window
1542|:perl| :pe[rl] execute Perl command
Bram Moolenaar05159a02005-02-26 23:04:13 +00001543|:print| :p[rint] print lines
Bram Moolenaar17568792005-07-06 22:28:03 +00001544|:profdel| :profd[el] stop profiling a function or script
Bram Moolenaar05159a02005-02-26 23:04:13 +00001545|:profile| :prof[ile] profiling functions and scripts
Bram Moolenaarf2330482008-06-24 20:19:36 +00001546|:promptfind| :pro[mptfind] open GUI dialog for searching
1547|:promptrepl| :promptr[epl] open GUI dialog for search/replace
Bram Moolenaar071d4272004-06-13 20:20:40 +00001548|:perldo| :perld[o] execute Perl command for each line
1549|:pop| :po[p] jump to older entry in tag stack
Bram Moolenaar34700a62013-03-07 13:20:54 +01001550|:popup| :popu[p] popup a menu by name
Bram Moolenaar071d4272004-06-13 20:20:40 +00001551|:ppop| :pp[op] ":pop" in preview window
1552|:preserve| :pre[serve] write all text to swap file
1553|:previous| :prev[ious] go to previous file in argument list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001554|:psearch| :ps[earch] like ":ijump" but shows match in preview window
1555|:ptag| :pt[ag] show tag in preview window
1556|:ptNext| :ptN[ext] |:tNext| in preview window
1557|:ptfirst| :ptf[irst] |:trewind| in preview window
1558|:ptjump| :ptj[ump] |:tjump| and show tag in preview window
1559|:ptlast| :ptl[ast] |:tlast| in preview window
1560|:ptnext| :ptn[ext] |:tnext| in preview window
1561|:ptprevious| :ptp[revious] |:tprevious| in preview window
1562|:ptrewind| :ptr[ewind] |:trewind| in preview window
1563|:ptselect| :pts[elect] |:tselect| and show tag in preview window
Bram Moolenaar1b5f03e2023-01-09 20:12:45 +00001564|:public| :public prefix for a class or object member
Bram Moolenaar071d4272004-06-13 20:20:40 +00001565|:put| :pu[t] insert contents of register in the text
1566|:pwd| :pw[d] print current directory
Bram Moolenaar368373e2010-07-19 20:46:22 +02001567|:py3| :py3 execute Python 3 command
Bram Moolenaarb6590522010-07-21 16:00:43 +02001568|:python3| :python3 same as :py3
Bram Moolenaarad3b3662013-05-17 18:14:19 +02001569|:py3do| :py3d[o] execute Python 3 command for each line
Bram Moolenaar60aad972010-07-21 20:36:22 +02001570|:py3file| :py3f[ile] execute Python 3 script file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001571|:python| :py[thon] execute Python command
Bram Moolenaarad3b3662013-05-17 18:14:19 +02001572|:pydo| :pyd[o] execute Python command for each line
Bram Moolenaar071d4272004-06-13 20:20:40 +00001573|:pyfile| :pyf[ile] execute Python script file
Bram Moolenaarf42dd3c2017-01-28 16:06:38 +01001574|:pyx| :pyx execute |python_x| command
1575|:pythonx| :pythonx same as :pyx
1576|:pyxdo| :pyxd[o] execute |python_x| command for each line
1577|:pyxfile| :pyxf[ile] execute |python_x| script file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001578|:quit| :q[uit] quit current window (when one window quit Vim)
1579|:quitall| :quita[ll] quit Vim
1580|:qall| :qa[ll] quit Vim
1581|:read| :r[ead] read file into the text
1582|:recover| :rec[over] recover a file from a swap file
1583|:redo| :red[o] redo one undone change
1584|:redir| :redi[r] redirect messages to a file or register
Bram Moolenaard09091d2019-01-17 16:07:22 +01001585|:redraw| :redr[aw] force a redraw of the display
1586|:redrawstatus| :redraws[tatus] force a redraw of the status line(s)
1587|:redrawtabline| :redrawt[abline] force a redraw of the tabline
Naruhiko Nishinobe5bd4d2025-05-14 21:20:28 +02001588|:redrawtabpanel| :redrawtabp[anel] force a redraw of the tabpanel
Bram Moolenaar071d4272004-06-13 20:20:40 +00001589|:registers| :reg[isters] display the contents of registers
1590|:resize| :res[ize] change current window height
1591|:retab| :ret[ab] change tab size
1592|:return| :retu[rn] return from a user function
1593|:rewind| :rew[ind] go to the first file in the argument list
1594|:right| :ri[ght] right align text
1595|:rightbelow| :rightb[elow] make split window appear right or below
1596|:ruby| :rub[y] execute Ruby command
1597|:rubydo| :rubyd[o] execute Ruby command for each line
1598|:rubyfile| :rubyf[ile] execute Ruby script file
Bram Moolenaar1d689522010-05-28 20:54:39 +02001599|:rundo| :rund[o] read undo information from a file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001600|:runtime| :ru[ntime] source vim scripts in 'runtimepath'
1601|:rviminfo| :rv[iminfo] read from viminfo file
1602|:substitute| :s[ubstitute] find and replace text
1603|:sNext| :sN[ext] split window and go to previous file in
1604 argument list
Bram Moolenaar17568792005-07-06 22:28:03 +00001605|:sandbox| :san[dbox] execute a command in the sandbox
Bram Moolenaar071d4272004-06-13 20:20:40 +00001606|:sargument| :sa[rgument] split window and go to specific file in
1607 argument list
1608|:sall| :sal[l] open a window for each file in argument list
1609|:saveas| :sav[eas] save file under another name.
1610|:sbuffer| :sb[uffer] split window and go to specific file in the
1611 buffer list
1612|:sbNext| :sbN[ext] split window and go to previous file in the
1613 buffer list
1614|:sball| :sba[ll] open a window for each file in the buffer list
1615|:sbfirst| :sbf[irst] split window and go to first file in the
1616 buffer list
1617|:sblast| :sbl[ast] split window and go to last file in buffer
1618 list
1619|:sbmodified| :sbm[odified] split window and go to modified file in the
1620 buffer list
1621|:sbnext| :sbn[ext] split window and go to next file in the buffer
1622 list
1623|:sbprevious| :sbp[revious] split window and go to previous file in the
1624 buffer list
1625|:sbrewind| :sbr[ewind] split window and go to first file in the
1626 buffer list
Bram Moolenaar8feef4f2015-01-07 16:57:10 +01001627|:scriptnames| :scr[iptnames] list names of all sourced Vim scripts
Bram Moolenaar62e1bb42019-04-08 16:25:07 +02001628|:scriptencoding| :scripte[ncoding] encoding used in sourced Vim script
1629|:scriptversion| :scriptv[ersion] version of Vim script used
Bram Moolenaar64969662005-12-14 21:59:55 +00001630|:scscope| :scs[cope] split window and execute cscope command
Bram Moolenaar071d4272004-06-13 20:20:40 +00001631|:set| :se[t] show or set options
1632|:setfiletype| :setf[iletype] set 'filetype', unless it was set already
1633|:setglobal| :setg[lobal] show global values of options
1634|:setlocal| :setl[ocal] show or set options locally
1635|:sfind| :sf[ind] split current window and edit file in 'path'
1636|:sfirst| :sfir[st] split window and go to first file in the
1637 argument list
1638|:shell| :sh[ell] escape to a shell
1639|:simalt| :sim[alt] Win32 GUI: simulate Windows ALT key
1640|:sign| :sig[n] manipulate signs
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01001641|:silent| :sil[ent] run a command silently
Bram Moolenaar071d4272004-06-13 20:20:40 +00001642|:sleep| :sl[eep] do nothing for a few seconds
Bram Moolenaare2edc2e2021-01-16 20:21:23 +01001643|:sleep!| :sl[eep]! do nothing for a few seconds, without the
1644 cursor visible
Bram Moolenaar071d4272004-06-13 20:20:40 +00001645|:slast| :sla[st] split window and go to last file in the
1646 argument list
1647|:smagic| :sm[agic] :substitute with 'magic'
Bram Moolenaar34700a62013-03-07 13:20:54 +01001648|:smap| :smap like ":map" but for Select mode
Bram Moolenaar371d5402006-03-20 21:47:49 +00001649|:smapclear| :smapc[lear] remove all mappings for Select mode
1650|:smenu| :sme[nu] add menu for Select mode
Bram Moolenaaracb4f222016-01-10 15:59:26 +01001651|:smile| :smi[le] make the user happy
Bram Moolenaar071d4272004-06-13 20:20:40 +00001652|:snext| :sn[ext] split window and go to next file in the
1653 argument list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001654|:snomagic| :sno[magic] :substitute with 'nomagic'
Bram Moolenaar371d5402006-03-20 21:47:49 +00001655|:snoremap| :snor[emap] like ":noremap" but for Select mode
1656|:snoremenu| :snoreme[nu] like ":noremenu" but for Select mode
Bram Moolenaarf95dc3b2005-05-22 22:02:25 +00001657|:sort| :sor[t] sort lines
Bram Moolenaar071d4272004-06-13 20:20:40 +00001658|:source| :so[urce] read Vim or Ex commands from a file
Bram Moolenaarf81b0fe2005-06-23 22:27:26 +00001659|:spelldump| :spelld[ump] split window and fill with all correct words
Bram Moolenaar78599ad2005-06-16 21:47:53 +00001660|:spellgood| :spe[llgood] add good word for spelling
Bram Moolenaar362e1a32006-03-06 23:29:24 +00001661|:spellinfo| :spelli[nfo] show info about loaded spell files
Bram Moolenaar56c860c2019-08-17 20:09:31 +02001662|:spellrare| :spellra[re] add rare word for spelling
Bram Moolenaar43abc522005-12-10 20:15:02 +00001663|:spellrepall| :spellr[epall] replace all bad words like last |z=|
Bram Moolenaard0131a82006-03-04 21:46:13 +00001664|:spellundo| :spellu[ndo] remove good or bad word
Bram Moolenaar78599ad2005-06-16 21:47:53 +00001665|:spellwrong| :spellw[rong] add spelling mistake
Bram Moolenaar071d4272004-06-13 20:20:40 +00001666|:split| :sp[lit] split current window
1667|:sprevious| :spr[evious] split window and go to previous file in the
1668 argument list
1669|:srewind| :sre[wind] split window and go to first file in the
1670 argument list
1671|:stop| :st[op] suspend the editor or escape to a shell
1672|:stag| :sta[g] split window and jump to a tag
1673|:startinsert| :star[tinsert] start Insert mode
Bram Moolenaaracb4f222016-01-10 15:59:26 +01001674|:startgreplace| :startg[replace] start Virtual Replace mode
Bram Moolenaar325b7a22004-07-05 15:58:32 +00001675|:startreplace| :startr[eplace] start Replace mode
Bram Moolenaar1b5f03e2023-01-09 20:12:45 +00001676|:static| :static prefix for a class member or function
Bram Moolenaarf2330482008-06-24 20:19:36 +00001677|:stopinsert| :stopi[nsert] stop Insert mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001678|:stjump| :stj[ump] do ":tjump" and split window
1679|:stselect| :sts[elect] do ":tselect" and split window
1680|:sunhide| :sun[hide] same as ":unhide"
Bram Moolenaar371d5402006-03-20 21:47:49 +00001681|:sunmap| :sunm[ap] like ":unmap" but for Select mode
1682|:sunmenu| :sunme[nu] remove menu for Select mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001683|:suspend| :sus[pend] same as ":stop"
1684|:sview| :sv[iew] split window and edit file read-only
1685|:swapname| :sw[apname] show the name of the current swap file
1686|:syntax| :sy[ntax] syntax highlighting
Bram Moolenaar203d04d2013-06-06 21:36:40 +02001687|:syntime| :synti[me] measure syntax highlighting speed
Bram Moolenaar071d4272004-06-13 20:20:40 +00001688|:syncbind| :sync[bind] sync scroll binding
1689|:t| :t same as ":copy"
1690|:tNext| :tN[ext] jump to previous matching tag
Bram Moolenaar80a94a52006-02-23 21:26:58 +00001691|:tabNext| :tabN[ext] go to previous tab page
Bram Moolenaar7e8fd632006-02-18 22:14:51 +00001692|:tabclose| :tabc[lose] close current tab page
h-east0c3e57b2025-01-02 11:00:49 +01001693|:tabdo| :tabd[o] execute command in each tab page
Bram Moolenaar7e8fd632006-02-18 22:14:51 +00001694|:tabedit| :tabe[dit] edit a file in a new tab page
1695|:tabfind| :tabf[ind] find file in 'path', edit it in a new tab page
Bram Moolenaar13d5aee2016-01-21 23:36:05 +01001696|:tabfirst| :tabfir[st] go to first tab page
1697|:tablast| :tabl[ast] go to last tab page
Bram Moolenaar80a94a52006-02-23 21:26:58 +00001698|:tabmove| :tabm[ove] move tab page to other position
1699|:tabnew| :tabnew edit a file in a new tab page
1700|:tabnext| :tabn[ext] go to next tab page
Bram Moolenaar7e8fd632006-02-18 22:14:51 +00001701|:tabonly| :tabo[nly] close all tab pages except the current one
Bram Moolenaar80a94a52006-02-23 21:26:58 +00001702|:tabprevious| :tabp[revious] go to previous tab page
Bram Moolenaar13d5aee2016-01-21 23:36:05 +01001703|:tabrewind| :tabr[ewind] go to first tab page
Bram Moolenaar7e8fd632006-02-18 22:14:51 +00001704|:tabs| :tabs list the tab pages and what they contain
Bram Moolenaar80a94a52006-02-23 21:26:58 +00001705|:tab| :tab create new tab when opening new window
Bram Moolenaar071d4272004-06-13 20:20:40 +00001706|:tag| :ta[g] jump to tag
1707|:tags| :tags show the contents of the tag stack
Bram Moolenaard2ea7cf2021-05-30 20:54:13 +02001708|:tcd| :tc[d] change directory for tab page
Bram Moolenaar00aa0692019-04-27 20:37:57 +02001709|:tchdir| :tch[dir] change directory for tab page
Bram Moolenaard2ea7cf2021-05-30 20:54:13 +02001710|:tcl| :tcl execute Tcl command
Bram Moolenaar071d4272004-06-13 20:20:40 +00001711|:tcldo| :tcld[o] execute Tcl command for each line
1712|:tclfile| :tclf[ile] execute Tcl script file
1713|:tearoff| :te[aroff] tear-off a menu
Bram Moolenaar74675a62017-07-15 13:53:23 +02001714|:terminal| :ter[minal] open a terminal window
Bram Moolenaar071d4272004-06-13 20:20:40 +00001715|:tfirst| :tf[irst] jump to first matching tag
1716|:throw| :th[row] throw an exception
h-east0c3e57b2025-01-02 11:00:49 +01001717|:this| :this prefix for an object member during
1718 initialization (e.g. on |new()|)
Bram Moolenaar071d4272004-06-13 20:20:40 +00001719|:tjump| :tj[ump] like ":tselect", but jump directly when there
1720 is only one match
1721|:tlast| :tl[ast] jump to last matching tag
Bram Moolenaar4c5d8152018-10-19 22:36:53 +02001722|:tlmenu| :tlm[enu] add menu for Terminal-Job mode
1723|:tlnoremenu| :tln[oremenu] like ":noremenu" but for Terminal-Job mode
1724|:tlunmenu| :tlu[nmenu] remove menu for Terminal-Job mode
Bram Moolenaar37c64c72017-09-19 22:06:03 +02001725|:tmapclear| :tmapc[lear] remove all mappings for Terminal-Job mode
1726|:tmap| :tma[p] like ":map" but for Terminal-Job mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001727|:tmenu| :tm[enu] define menu tooltip
1728|:tnext| :tn[ext] jump to next matching tag
Bram Moolenaar37c64c72017-09-19 22:06:03 +02001729|:tnoremap| :tno[remap] like ":noremap" but for Terminal-Job mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001730|:topleft| :to[pleft] make split window appear at top or far left
1731|:tprevious| :tp[revious] jump to previous matching tag
1732|:trewind| :tr[ewind] jump to first matching tag
1733|:try| :try execute commands, abort on error or exception
1734|:tselect| :ts[elect] list matching tags and select one
Bram Moolenaar37c64c72017-09-19 22:06:03 +02001735|:tunmap| :tunma[p] like ":unmap" but for Terminal-Job mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001736|:tunmenu| :tu[nmenu] remove menu tooltip
h-east0c3e57b2025-01-02 11:00:49 +01001737|:type| :type create a type alias
Bram Moolenaar071d4272004-06-13 20:20:40 +00001738|:undo| :u[ndo] undo last change(s)
Bram Moolenaarb388adb2006-02-28 23:50:17 +00001739|:undojoin| :undoj[oin] join next change with previous undo block
Bram Moolenaard3667a22006-03-16 21:35:52 +00001740|:undolist| :undol[ist] list leafs of the undo tree
Bram Moolenaar071d4272004-06-13 20:20:40 +00001741|:unabbreviate| :una[bbreviate] remove abbreviation
1742|:unhide| :unh[ide] open a window for each loaded file in the
1743 buffer list
Hirohito Higashi74f0a772025-06-23 21:42:36 +02001744|:uniq| :uni[q] uniq lines
Bram Moolenaar071d4272004-06-13 20:20:40 +00001745|:unlet| :unl[et] delete variable
Bram Moolenaar24c088a2005-02-02 22:55:47 +00001746|:unlockvar| :unlo[ckvar] unlock variables
Bram Moolenaar071d4272004-06-13 20:20:40 +00001747|:unmap| :unm[ap] remove mapping
1748|:unmenu| :unme[nu] remove menu
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01001749|:unsilent| :uns[ilent] run a command not silently
Bram Moolenaar071d4272004-06-13 20:20:40 +00001750|:update| :up[date] write buffer if modified
1751|:vglobal| :v[global] execute commands for not matching lines
Bram Moolenaar4f4d51a2020-10-11 13:57:40 +02001752|:var| :var variable declaration in Vim9
Bram Moolenaar071d4272004-06-13 20:20:40 +00001753|:version| :ve[rsion] print version number and other info
1754|:verbose| :verb[ose] execute command with 'verbose' set
1755|:vertical| :vert[ical] make following command split vertically
Bram Moolenaar9faec4e2021-02-27 16:38:07 +01001756|:vim9cmd| :vim9[cmd] make following command use Vim9 script syntax
1757|:vim9script| :vim9s[cript] indicates Vim9 script file
Bram Moolenaar17568792005-07-06 22:28:03 +00001758|:vimgrep| :vim[grep] search for pattern in files
1759|:vimgrepadd| :vimgrepa[dd] like :vimgrep, but append to current list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001760|:visual| :vi[sual] same as ":edit", but turns off "Ex" mode
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001761|:viusage| :viu[sage] overview of Normal mode commands
Bram Moolenaar071d4272004-06-13 20:20:40 +00001762|:view| :vie[w] edit a file read-only
Bram Moolenaar371d5402006-03-20 21:47:49 +00001763|:vmap| :vm[ap] like ":map" but for Visual+Select mode
1764|:vmapclear| :vmapc[lear] remove all mappings for Visual+Select mode
1765|:vmenu| :vme[nu] add menu for Visual+Select mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001766|:vnew| :vne[w] create a new empty window, vertically split
Bram Moolenaar371d5402006-03-20 21:47:49 +00001767|:vnoremap| :vn[oremap] like ":noremap" but for Visual+Select mode
1768|:vnoremenu| :vnoreme[nu] like ":noremenu" but for Visual+Select mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001769|:vsplit| :vs[plit] split current window vertically
Bram Moolenaar371d5402006-03-20 21:47:49 +00001770|:vunmap| :vu[nmap] like ":unmap" but for Visual+Select mode
1771|:vunmenu| :vunme[nu] remove menu for Visual+Select mode
h-east0c3e57b2025-01-02 11:00:49 +01001772|:windo| :wind[o] execute command in each window
Bram Moolenaar071d4272004-06-13 20:20:40 +00001773|:write| :w[rite] write to a file
1774|:wNext| :wN[ext] write to a file and go to previous file in
1775 argument list
1776|:wall| :wa[ll] write all (changed) buffers
1777|:while| :wh[ile] execute loop for as long as condition met
1778|:winsize| :wi[nsize] get or set window size (obsolete)
1779|:wincmd| :winc[md] execute a Window (CTRL-W) command
1780|:winpos| :winp[os] get or set window position
Foxe Chenb90c2392025-06-27 21:10:35 +02001781|:wlrestore| :wl[restore] restore the Wayland compositor connection
Bram Moolenaar071d4272004-06-13 20:20:40 +00001782|:wnext| :wn[ext] write to a file and go to next file in
1783 argument list
1784|:wprevious| :wp[revious] write to a file and go to previous file in
1785 argument list
1786|:wq| :wq write to a file and quit window or Vim
1787|:wqall| :wqa[ll] write all changed buffers and quit Vim
Bram Moolenaar1d689522010-05-28 20:54:39 +02001788|:wundo| :wu[ndo] write undo information to a file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001789|:wviminfo| :wv[iminfo] write to viminfo file
Bram Moolenaar47e13952020-05-12 22:49:12 +02001790|:xit| :x[it] write if buffer changed and close window
Bram Moolenaar071d4272004-06-13 20:20:40 +00001791|:xall| :xa[ll] same as ":wqall"
Bram Moolenaar371d5402006-03-20 21:47:49 +00001792|:xmapclear| :xmapc[lear] remove all mappings for Visual mode
1793|:xmap| :xm[ap] like ":map" but for Visual mode
1794|:xmenu| :xme[nu] add menu for Visual mode
Bram Moolenaard4aa83a2019-05-09 18:59:31 +02001795|:xrestore| :xr[estore] restores the X server connection
Bram Moolenaar371d5402006-03-20 21:47:49 +00001796|:xnoremap| :xn[oremap] like ":noremap" but for Visual mode
1797|:xnoremenu| :xnoreme[nu] like ":noremenu" but for Visual mode
1798|:xunmap| :xu[nmap] like ":unmap" but for Visual mode
1799|:xunmenu| :xunme[nu] remove menu for Visual mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001800|:yank| :y[ank] yank lines into a register
1801|:z| :z print some lines
1802|:~| :~ repeat last ":substitute"
1803
Bram Moolenaar371d5402006-03-20 21:47:49 +00001804
Bram Moolenaar91f84f62018-07-29 15:07:52 +02001805 vim:tw=78:ts=8:noet:ft=help:norl: