blob: f4f40618ff44667602ad2f229b44f9549bd0d1a9 [file] [log] [blame]
Bram Moolenaarb6e0ec62017-07-23 22:12:20 +02001*index.txt* For Vim version 8.0. Last change: 2017 Jul 16
Bram Moolenaar071d4272004-06-13 20:20:40 +00002
3
4 VIM REFERENCE MANUAL by Bram Moolenaar
5
6 *index*
7This file contains a list of all commands for each mode, with a tag and a
8short description. The lists are sorted on ASCII value.
9
10Tip: When looking for certain functionality, use a search command. E.g.,
11to look for deleting something, use: "/delete".
12
131. Insert mode |insert-index|
142. Normal mode |normal-index|
15 2.1. Text objects |objects|
16 2.2. Window commands |CTRL-W|
17 2.3. Square bracket commands |[|
18 2.4. Commands starting with 'g' |g|
19 2.5. Commands starting with 'z' |z|
203. Visual mode |visual-index|
214. Command-line editing |ex-edit-index|
225. EX commands |ex-cmd-index|
23
24For an overview of options see help.txt |option-list|.
25For an overview of built-in functions see |functions|.
26For a list of Vim variables see |vim-variable|.
27For a complete listing of all help items see |help-tags|.
28
29==============================================================================
301. Insert mode *insert-index*
31
Bram Moolenaar2a8a3ec2011-01-08 16:06:37 +010032tag char action in Insert mode ~
Bram Moolenaar071d4272004-06-13 20:20:40 +000033-----------------------------------------------------------------------
34|i_CTRL-@| CTRL-@ insert previously inserted text and stop
35 insert
36|i_CTRL-A| CTRL-A insert previously inserted text
37 CTRL-B not used |i_CTRL-B-gone|
38|i_CTRL-C| CTRL-C quit insert mode, without checking for
39 abbreviation, unless 'insertmode' set.
40|i_CTRL-D| CTRL-D delete one shiftwidth of indent in the current
41 line
42|i_CTRL-E| CTRL-E insert the character which is below the cursor
43 CTRL-F not used (but by default it's in 'cinkeys' to
44 re-indent the current line)
45|i_CTRL-G_j| CTRL-G CTRL-J line down, to column where inserting started
46|i_CTRL-G_j| CTRL-G j line down, to column where inserting started
47|i_CTRL-G_j| CTRL-G <Down> line down, to column where inserting started
48|i_CTRL-G_k| CTRL-G CTRL-K line up, to column where inserting started
49|i_CTRL-G_k| CTRL-G k line up, to column where inserting started
50|i_CTRL-G_k| CTRL-G <Up> line up, to column where inserting started
51|i_CTRL-G_u| CTRL-G u start new undoable edit
Bram Moolenaaraa3b15d2016-04-21 08:53:19 +020052|i_CTRL-G_U| CTRL-G U don't break undo with next cursor movement
Bram Moolenaar071d4272004-06-13 20:20:40 +000053|i_<BS>| <BS> delete character before the cursor
54|i_digraph| {char1}<BS>{char2}
55 enter digraph (only when 'digraph' option set)
56|i_CTRL-H| CTRL-H same as <BS>
57|i_<Tab>| <Tab> insert a <Tab> character
58|i_CTRL-I| CTRL-I same as <Tab>
59|i_<NL>| <NL> same as <CR>
60|i_CTRL-J| CTRL-J same as <CR>
61|i_CTRL-K| CTRL-K {char1} {char2}
62 enter digraph
63|i_CTRL-L| CTRL-L when 'insertmode' set: Leave Insert mode
64|i_<CR>| <CR> begin new line
65|i_CTRL-M| CTRL-M same as <CR>
66|i_CTRL-N| CTRL-N find next match for keyword in front of the
67 cursor
68|i_CTRL-O| CTRL-O execute a single command and return to insert
69 mode
70|i_CTRL-P| CTRL-P find previous match for keyword in front of
71 the cursor
72|i_CTRL-Q| CTRL-Q same as CTRL-V, unless used for terminal
73 control flow
74|i_CTRL-R| CTRL-R {0-9a-z"%#*:=}
75 insert the contents of a register
76|i_CTRL-R_CTRL-R| CTRL-R CTRL-R {0-9a-z"%#*:=}
77 insert the contents of a register literally
78|i_CTRL-R_CTRL-O| CTRL-R CTRL-O {0-9a-z"%#*:=}
79 insert the contents of a register literally
80 and don't auto-indent
81|i_CTRL-R_CTRL-P| CTRL-R CTRL-P {0-9a-z"%#*:=}
82 insert the contents of a register literally
83 and fix indent.
84 CTRL-S (used for terminal control flow)
85|i_CTRL-T| CTRL-T insert one shiftwidth of indent in current
86 line
87|i_CTRL-U| CTRL-U delete all entered characters in the current
88 line
89|i_CTRL-V| CTRL-V {char} insert next non-digit literally
90|i_CTRL-V_digit| CTRL-V {number} insert three digit decimal number as a single
91 byte.
92|i_CTRL-W| CTRL-W delete word before the cursor
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +000093|i_CTRL-X| CTRL-X {mode} enter CTRL-X sub mode, see |i_CTRL-X_index|
Bram Moolenaar071d4272004-06-13 20:20:40 +000094|i_CTRL-Y| CTRL-Y insert the character which is above the cursor
95|i_CTRL-Z| CTRL-Z when 'insertmode' set: suspend Vim
96|i_<Esc>| <Esc> end insert mode (unless 'insertmode' set)
97|i_CTRL-[| CTRL-[ same as <Esc>
Bram Moolenaarfa13eef2013-02-06 17:34:04 +010098|i_CTRL-\_CTRL-N| CTRL-\ CTRL-N go to Normal mode
99|i_CTRL-\_CTRL-G| CTRL-\ CTRL-G go to mode specified with 'insertmode'
Bram Moolenaar071d4272004-06-13 20:20:40 +0000100 CTRL-\ a - z reserved for extensions
101 CTRL-\ others not used
102|i_CTRL-]| CTRL-] trigger abbreviation
103|i_CTRL-^| CTRL-^ toggle use of |:lmap| mappings
104|i_CTRL-_| CTRL-_ When 'allowrevins' set: change language
105 (Hebrew, Farsi) {only when compiled with
Bram Moolenaardb84e452010-08-15 13:50:43 +0200106 the |+rightleft| feature}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000107
108 <Space> to '~' not used, except '0' and '^' followed by
109 CTRL-D
110
111|i_0_CTRL-D| 0 CTRL-D delete all indent in the current line
112|i_^_CTRL-D| ^ CTRL-D delete all indent in the current line, restore
113 it in the next line
114
115|i_<Del>| <Del> delete character under the cursor
116
117 Meta characters (0x80 to 0xff, 128 to 255)
118 not used
119
120|i_<Left>| <Left> cursor one character left
121|i_<S-Left>| <S-Left> cursor one word left
122|i_<C-Left>| <C-Left> cursor one word left
123|i_<Right>| <Right> cursor one character right
124|i_<S-Right>| <S-Right> cursor one word right
125|i_<C-Right>| <C-Right> cursor one word right
126|i_<Up>| <Up> cursor one line up
127|i_<S-Up>| <S-Up> same as <PageUp>
128|i_<Down>| <Down> cursor one line down
129|i_<S-Down>| <S-Down> same as <PageDown>
130|i_<Home>| <Home> cursor to start of line
131|i_<C-Home>| <C-Home> cursor to start of file
132|i_<End>| <End> cursor past end of line
133|i_<C-End>| <C-End> cursor past end of file
Bram Moolenaar69a7cb42004-06-20 12:51:53 +0000134|i_<PageUp>| <PageUp> one screenful backward
135|i_<PageDown>| <PageDown> one screenful forward
Bram Moolenaar071d4272004-06-13 20:20:40 +0000136|i_<F1>| <F1> same as <Help>
137|i_<Help>| <Help> stop insert mode and display help window
138|i_<Insert>| <Insert> toggle Insert/Replace mode
139|i_<LeftMouse>| <LeftMouse> cursor at mouse click
Bram Moolenaar8d9b40e2010-07-25 15:49:07 +0200140|i_<ScrollWheelDown>| <ScrollWheelDown> move window three lines down
141|i_<S-ScrollWheelDown>| <S-ScrollWheelDown> move window one page down
142|i_<ScrollWheelUp>| <ScrollWheelUp> move window three lines up
143|i_<S-ScrollWheelUp>| <S-ScrollWheelUp> move window one page up
144|i_<ScrollWheelLeft>| <ScrollWheelLeft> move window six columns left
Bram Moolenaarfa13eef2013-02-06 17:34:04 +0100145|i_<S-ScrollWheelLeft>| <S-ScrollWheelLeft> move window one page left
Bram Moolenaar8d9b40e2010-07-25 15:49:07 +0200146|i_<ScrollWheelRight>| <ScrollWheelRight> move window six columns right
147|i_<S-ScrollWheelRight>| <S-ScrollWheelRight> move window one page right
Bram Moolenaar071d4272004-06-13 20:20:40 +0000148
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000149commands in CTRL-X submode *i_CTRL-X_index*
Bram Moolenaar071d4272004-06-13 20:20:40 +0000150
151|i_CTRL-X_CTRL-D| CTRL-X CTRL-D complete defined identifiers
152|i_CTRL-X_CTRL-E| CTRL-X CTRL-E scroll up
153|i_CTRL-X_CTRL-F| CTRL-X CTRL-F complete file names
154|i_CTRL-X_CTRL-I| CTRL-X CTRL-I complete identifiers
155|i_CTRL-X_CTRL-K| CTRL-X CTRL-K complete identifiers from dictionary
156|i_CTRL-X_CTRL-L| CTRL-X CTRL-L complete whole lines
157|i_CTRL-X_CTRL-N| CTRL-X CTRL-N next completion
Bram Moolenaar5e0d6672005-09-13 21:09:24 +0000158|i_CTRL-X_CTRL-O| CTRL-X CTRL-O omni completion
Bram Moolenaar071d4272004-06-13 20:20:40 +0000159|i_CTRL-X_CTRL-P| CTRL-X CTRL-P previous completion
Bram Moolenaar8b59de92005-08-11 19:59:29 +0000160|i_CTRL-X_CTRL-S| CTRL-X CTRL-S spelling suggestions
Bram Moolenaar071d4272004-06-13 20:20:40 +0000161|i_CTRL-X_CTRL-T| CTRL-X CTRL-T complete identifiers from thesaurus
162|i_CTRL-X_CTRL-Y| CTRL-X CTRL-Y scroll down
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000163|i_CTRL-X_CTRL-U| CTRL-X CTRL-U complete with 'completefunc'
164|i_CTRL-X_CTRL-V| CTRL-X CTRL-V complete like in : command line
Bram Moolenaar071d4272004-06-13 20:20:40 +0000165|i_CTRL-X_CTRL-]| CTRL-X CTRL-] complete tags
Bram Moolenaar8b59de92005-08-11 19:59:29 +0000166|i_CTRL-X_s| CTRL-X s spelling suggestions
Bram Moolenaardb84e452010-08-15 13:50:43 +0200167{not available when compiled without the |+insert_expand| feature}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000168
169==============================================================================
1702. Normal mode *normal-index*
171
172CHAR any non-blank character
173WORD a sequence of non-blank characters
174N a number entered before the command
175{motion} a cursor movement command
176Nmove the text that is moved over with a {motion}
177SECTION a section that possibly starts with '}' instead of '{'
178
179note: 1 = cursor movement command; 2 = can be undone/redone
180
181tag char note action in Normal mode ~
182------------------------------------------------------------------------------
183 CTRL-@ not used
184|CTRL-A| CTRL-A 2 add N to number at/after cursor
185|CTRL-B| CTRL-B 1 scroll N screens Backwards
186|CTRL-C| CTRL-C interrupt current (search) command
187|CTRL-D| CTRL-D scroll Down N lines (default: half a screen)
188|CTRL-E| CTRL-E scroll N lines upwards (N lines Extra)
189|CTRL-F| CTRL-F 1 scroll N screens Forward
190|CTRL-G| CTRL-G display current file name and position
191|<BS>| <BS> 1 same as "h"
192|CTRL-H| CTRL-H 1 same as "h"
193|<Tab>| <Tab> 1 go to N newer entry in jump list
194|CTRL-I| CTRL-I 1 same as <Tab>
195|<NL>| <NL> 1 same as "j"
196|CTRL-J| CTRL-J 1 same as "j"
197 CTRL-K not used
198|CTRL-L| CTRL-L redraw screen
199|<CR>| <CR> 1 cursor to the first CHAR N lines lower
200|CTRL-M| CTRL-M 1 same as <CR>
201|CTRL-N| CTRL-N 1 same as "j"
202|CTRL-O| CTRL-O 1 go to N older entry in jump list
203|CTRL-P| CTRL-P 1 same as "k"
204 CTRL-Q (used for terminal control flow)
205|CTRL-R| CTRL-R 2 redo changes which were undone with 'u'
206 CTRL-S (used for terminal control flow)
207|CTRL-T| CTRL-T jump to N older Tag in tag list
208|CTRL-U| CTRL-U scroll N lines Upwards (default: half a
209 screen)
210|CTRL-V| CTRL-V start blockwise Visual mode
211|CTRL-W| CTRL-W {char} window commands, see |CTRL-W|
212|CTRL-X| CTRL-X 2 subtract N from number at/after cursor
213|CTRL-Y| CTRL-Y scroll N lines downwards
214|CTRL-Z| CTRL-Z suspend program (or start new shell)
215 CTRL-[ <Esc> not used
Bram Moolenaarfa13eef2013-02-06 17:34:04 +0100216|CTRL-\_CTRL-N| CTRL-\ CTRL-N go to Normal mode (no-op)
217|CTRL-\_CTRL-G| CTRL-\ CTRL-G go to mode specified with 'insertmode'
Bram Moolenaar071d4272004-06-13 20:20:40 +0000218 CTRL-\ a - z reserved for extensions
219 CTRL-\ others not used
220|CTRL-]| CTRL-] :ta to ident under cursor
221|CTRL-^| CTRL-^ edit Nth alternate file (equivalent to
222 ":e #N")
223 CTRL-_ not used
224
225|<Space>| <Space> 1 same as "l"
226|!| !{motion}{filter}
227 2 filter Nmove text through the {filter}
228 command
229|!!| !!{filter} 2 filter N lines through the {filter} command
230|quote| "{a-zA-Z0-9.%#:-"} use register {a-zA-Z0-9.%#:-"} for next
231 delete, yank or put (uppercase to append)
232 ({.%#:} only work with put)
233|#| # 1 search backward for the Nth occurrence of
234 the ident under the cursor
235|$| $ 1 cursor to the end of Nth next line
236|%| % 1 find the next (curly/square) bracket on
237 this line and go to its match, or go to
238 matching comment bracket, or go to matching
239 preprocessor directive.
240|N%| {count}% 1 go to N percentage in the file
241|&| & 2 repeat last :s
242|'| '{a-zA-Z0-9} 1 cursor to the first CHAR on the line with
243 mark {a-zA-Z0-9}
244|''| '' 1 cursor to the first CHAR of the line where
245 the cursor was before the latest jump.
246|'(| '( 1 cursor to the first CHAR on the line of the
247 start of the current sentence
248|')| ') 1 cursor to the first CHAR on the line of the
249 end of the current sentence
250|'<| '< 1 cursor to the first CHAR of the line where
251 highlighted area starts/started in the
252 current buffer.
253|'>| '> 1 cursor to the first CHAR of the line where
254 highlighted area ends/ended in the current
255 buffer.
256|'[| '[ 1 cursor to the first CHAR on the line of the
257 start of last operated text or start of put
258 text
259|']| '] 1 cursor to the first CHAR on the line of the
260 end of last operated text or end of put
261 text
262|'{| '{ 1 cursor to the first CHAR on the line of the
263 start of the current paragraph
264|'}| '} 1 cursor to the first CHAR on the line of the
265 end of the current paragraph
266|(| ( 1 cursor N sentences backward
267|)| ) 1 cursor N sentences forward
268|star| * 1 search forward for the Nth occurrence of
269 the ident under the cursor
270|+| + 1 same as <CR>
271|,| , 1 repeat latest f, t, F or T in opposite
272 direction N times
273|-| - 1 cursor to the first CHAR N lines higher
274|.| . 2 repeat last change with count replaced with
275 N
276|/| /{pattern}<CR> 1 search forward for the Nth occurrence of
277 {pattern}
278|/<CR>| /<CR> 1 search forward for {pattern} of last search
279|count| 0 1 cursor to the first char of the line
280|count| 1 prepend to command to give a count
281|count| 2 "
282|count| 3 "
283|count| 4 "
284|count| 5 "
285|count| 6 "
286|count| 7 "
287|count| 8 "
288|count| 9 "
289|:| : 1 start entering an Ex command
290|N:| {count}: start entering an Ex command with range
291 from current line to N-1 lines down
292|;| ; 1 repeat latest f, t, F or T N times
293|<| <{motion} 2 shift Nmove lines one 'shiftwidth'
294 leftwards
295|<<| << 2 shift N lines one 'shiftwidth' leftwards
296|=| ={motion} 2 filter Nmove lines through "indent"
297|==| == 2 filter N lines through "indent"
298|>| >{motion} 2 shift Nmove lines one 'shiftwidth'
299 rightwards
300|>>| >> 2 shift N lines one 'shiftwidth' rightwards
301|?| ?{pattern}<CR> 1 search backward for the Nth previous
302 occurrence of {pattern}
303|?<CR>| ?<CR> 1 search backward for {pattern} of last search
304|@| @{a-z} 2 execute the contents of register {a-z}
305 N times
306|@:| @: repeat the previous ":" command N times
307|@@| @@ 2 repeat the previous @{a-z} N times
308|A| A 2 append text after the end of the line N times
309|B| B 1 cursor N WORDS backward
310|C| ["x]C 2 change from the cursor position to the end
311 of the line, and N-1 more lines [into
Bram Moolenaar94237492017-04-23 18:40:21 +0200312 register x]; synonym for "c$"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000313|D| ["x]D 2 delete the characters under the cursor
314 until the end of the line and N-1 more
Bram Moolenaar94237492017-04-23 18:40:21 +0200315 lines [into register x]; synonym for "d$"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000316|E| E 1 cursor forward to the end of WORD N
317|F| F{char} 1 cursor to the Nth occurrence of {char} to
318 the left
319|G| G 1 cursor to line N, default last line
320|H| H 1 cursor to line N from top of screen
321|I| I 2 insert text before the first CHAR on the
322 line N times
323|J| J 2 Join N lines; default is 2
324|K| K lookup Keyword under the cursor with
325 'keywordprg'
326|L| L 1 cursor to line N from bottom of screen
327|M| M 1 cursor to middle line of screen
328|N| N 1 repeat the latest '/' or '?' N times in
329 opposite direction
330|O| O 2 begin a new line above the cursor and
331 insert text, repeat N times
Bram Moolenaar94237492017-04-23 18:40:21 +0200332|P| ["x]P 2 put the text [from register x] before the
Bram Moolenaar071d4272004-06-13 20:20:40 +0000333 cursor N times
334|Q| Q switch to "Ex" mode
335|R| R 2 enter replace mode: overtype existing
336 characters, repeat the entered text N-1
337 times
Bram Moolenaar94237492017-04-23 18:40:21 +0200338|S| ["x]S 2 delete N lines [into register x] and start
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000339 insert; synonym for "cc".
Bram Moolenaar071d4272004-06-13 20:20:40 +0000340|T| T{char} 1 cursor till after Nth occurrence of {char}
341 to the left
342|U| U 2 undo all latest changes on one line
343|V| V start linewise Visual mode
344|W| W 1 cursor N WORDS forward
345|X| ["x]X 2 delete N characters before the cursor [into
Bram Moolenaar94237492017-04-23 18:40:21 +0200346 register x]
347|Y| ["x]Y yank N lines [into register x]; synonym for
Bram Moolenaar071d4272004-06-13 20:20:40 +0000348 "yy"
349|ZZ| ZZ store current file if modified, and exit
350|ZQ| ZQ exit current file always
Bram Moolenaarc6039d82005-12-02 00:44:04 +0000351|[| [{char} square bracket command (see |[| below)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000352 \ not used
Bram Moolenaarc6039d82005-12-02 00:44:04 +0000353|]| ]{char} square bracket command (see |]| below)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000354|^| ^ 1 cursor to the first CHAR of the line
355|_| _ 1 cursor to the first CHAR N - 1 lines lower
356|`| `{a-zA-Z0-9} 1 cursor to the mark {a-zA-Z0-9}
357|`(| `( 1 cursor to the start of the current sentence
358|`)| `) 1 cursor to the end of the current sentence
359|`<| `< 1 cursor to the start of the highlighted area
360|`>| `> 1 cursor to the end of the highlighted area
361|`[| `[ 1 cursor to the start of last operated text
362 or start of putted text
363|`]| `] 1 cursor to the end of last operated text or
364 end of putted text
365|``| `` 1 cursor to the position before latest jump
366|`{| `{ 1 cursor to the start of the current paragraph
367|`}| `} 1 cursor to the end of the current paragraph
368|a| a 2 append text after the cursor N times
369|b| b 1 cursor N words backward
Bram Moolenaar94237492017-04-23 18:40:21 +0200370|c| ["x]c{motion} 2 delete Nmove text [into register x] and
371 start insert
372|cc| ["x]cc 2 delete N lines [into register x] and start
Bram Moolenaar071d4272004-06-13 20:20:40 +0000373 insert
Bram Moolenaar94237492017-04-23 18:40:21 +0200374|d| ["x]d{motion} 2 delete Nmove text [into register x]
375|dd| ["x]dd 2 delete N lines [into register x]
Bram Moolenaar071d4272004-06-13 20:20:40 +0000376|do| do 2 same as ":diffget"
377|dp| dp 2 same as ":diffput"
378|e| e 1 cursor forward to the end of word N
379|f| f{char} 1 cursor to Nth occurrence of {char} to the
380 right
Bram Moolenaarc6039d82005-12-02 00:44:04 +0000381|g| g{char} extended commands, see |g| below
Bram Moolenaar071d4272004-06-13 20:20:40 +0000382|h| h 1 cursor N chars to the left
383|i| i 2 insert text before the cursor N times
384|j| j 1 cursor N lines downward
385|k| k 1 cursor N lines upward
386|l| l 1 cursor N chars to the right
387|m| m{A-Za-z} set mark {A-Za-z} at cursor position
388|n| n 1 repeat the latest '/' or '?' N times
389|o| o 2 begin a new line below the cursor and
390 insert text, repeat N times
391|p| ["x]p 2 put the text [from register x] after the
392 cursor N times
393|q| q{0-9a-zA-Z"} record typed characters into named register
394 {0-9a-zA-Z"} (uppercase to append)
395|q| q (while recording) stops recording
396|q:| q: edit : command-line in command-line window
397|q/| q/ edit / command-line in command-line window
398|q?| q? edit ? command-line in command-line window
399|r| r{char} 2 replace N chars with {char}
400|s| ["x]s 2 (substitute) delete N characters [into
Bram Moolenaar94237492017-04-23 18:40:21 +0200401 register x] and start insert
Bram Moolenaar071d4272004-06-13 20:20:40 +0000402|t| t{char} 1 cursor till before Nth occurrence of {char}
403 to the right
404|u| u 2 undo changes
405|v| v start characterwise Visual mode
406|w| w 1 cursor N words forward
407|x| ["x]x 2 delete N characters under and after the
Bram Moolenaar94237492017-04-23 18:40:21 +0200408 cursor [into register x]
409|y| ["x]y{motion} yank Nmove text [into register x]
410|yy| ["x]yy yank N lines [into register x]
Bram Moolenaarc6039d82005-12-02 00:44:04 +0000411|z| z{char} commands starting with 'z', see |z| below
Bram Moolenaar071d4272004-06-13 20:20:40 +0000412|{| { 1 cursor N paragraphs backward
413|bar| | 1 cursor to column N
414|}| } 1 cursor N paragraphs forward
415|~| ~ 2 'tildeop' off: switch case of N characters
416 under cursor and move the cursor N
417 characters to the right
418|~| ~{motion} 'tildeop' on: switch case of Nmove text
419|<C-End>| <C-End> 1 same as "G"
420|<C-Home>| <C-Home> 1 same as "gg"
421|<C-Left>| <C-Left> 1 same as "b"
422|<C-LeftMouse>| <C-LeftMouse> ":ta" to the keyword at the mouse click
423|<C-Right>| <C-Right> 1 same as "w"
424|<C-RightMouse>| <C-RightMouse> same as "CTRL-T"
425|<Del>| ["x]<Del> 2 same as "x"
426|N<Del>| {count}<Del> remove the last digit from {count}
427|<Down>| <Down> 1 same as "j"
428|<End>| <End> 1 same as "$"
429|<F1>| <F1> same as <Help>
430|<Help>| <Help> open a help window
431|<Home>| <Home> 1 same as "0"
432|<Insert>| <Insert> 2 same as "i"
433|<Left>| <Left> 1 same as "h"
434|<LeftMouse>| <LeftMouse> 1 move cursor to the mouse click position
Bram Moolenaarfa13eef2013-02-06 17:34:04 +0100435|<MiddleMouse>| <MiddleMouse> 2 same as "gP" at the mouse click position
Bram Moolenaar071d4272004-06-13 20:20:40 +0000436|<PageDown>| <PageDown> same as CTRL-F
437|<PageUp>| <PageUp> same as CTRL-B
438|<Right>| <Right> 1 same as "l"
439|<RightMouse>| <RightMouse> start Visual mode, move cursor to the mouse
440 click position
441|<S-Down>| <S-Down> 1 same as CTRL-F
442|<S-Left>| <S-Left> 1 same as "b"
443|<S-LeftMouse>| <S-LeftMouse> same as "*" at the mouse click position
444|<S-Right>| <S-Right> 1 same as "w"
445|<S-RightMouse>| <S-RightMouse> same as "#" at the mouse click position
446|<S-Up>| <S-Up> 1 same as CTRL-B
447|<Undo>| <Undo> 2 same as "u"
448|<Up>| <Up> 1 same as "k"
Bram Moolenaar8d9b40e2010-07-25 15:49:07 +0200449|<ScrollWheelDown>| <ScrollWheelDown> move window three lines down
450|<S-ScrollWheelDown>| <S-ScrollWheelDown> move window one page down
451|<ScrollWheelUp>| <ScrollWheelUp> move window three lines up
452|<S-ScrollWheelUp>| <S-ScrollWheelUp> move window one page up
453|<ScrollWheelLeft>| <ScrollWheelLeft> move window six columns left
454|<S-ScrollWheelLeft>| <S-ScrollWheelLeft> move window one page left
455|<ScrollWheelRight>| <ScrollWheelRight> move window six columns right
456|<S-ScrollWheelRight>| <S-ScrollWheelRight> move window one page right
Bram Moolenaar071d4272004-06-13 20:20:40 +0000457
458==============================================================================
4592.1 Text objects *objects*
460
461These can be used after an operator or in Visual mode to select an object.
462
Bram Moolenaar2a8a3ec2011-01-08 16:06:37 +0100463tag command action in op-pending and Visual mode ~
Bram Moolenaar071d4272004-06-13 20:20:40 +0000464------------------------------------------------------------------------------
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000465|v_aquote| a" double quoted string
466|v_a'| a' single quoted string
Bram Moolenaar071d4272004-06-13 20:20:40 +0000467|v_a(| a( same as ab
468|v_a)| a) same as ab
469|v_a<| a< "a <>" from '<' to the matching '>'
470|v_a>| a> same as a<
471|v_aB| aB "a Block" from "[{" to "]}" (with brackets)
472|v_aW| aW "a WORD" (with white space)
473|v_a[| a[ "a []" from '[' to the matching ']'
474|v_a]| a] same as a[
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000475|v_a`| a` string in backticks
Bram Moolenaar071d4272004-06-13 20:20:40 +0000476|v_ab| ab "a block" from "[(" to "])" (with braces)
477|v_ap| ap "a paragraph" (with white space)
478|v_as| as "a sentence" (with white space)
Bram Moolenaarf2330482008-06-24 20:19:36 +0000479|v_at| at "a tag block" (with white space)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000480|v_aw| aw "a word" (with white space)
481|v_a{| a{ same as aB
482|v_a}| a} same as aB
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000483|v_iquote| i" double quoted string without the quotes
484|v_i'| i' single quoted string without the quotes
Bram Moolenaar071d4272004-06-13 20:20:40 +0000485|v_i(| i( same as ib
486|v_i)| i) same as ib
487|v_i<| i< "inner <>" from '<' to the matching '>'
488|v_i>| i> same as i<
489|v_iB| iB "inner Block" from "[{" and "]}"
490|v_iW| iW "inner WORD"
491|v_i[| i[ "inner []" from '[' to the matching ']'
492|v_i]| i] same as i[
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000493|v_i`| i` string in backticks without the backticks
Bram Moolenaar071d4272004-06-13 20:20:40 +0000494|v_ib| ib "inner block" from "[(" to "])"
495|v_ip| ip "inner paragraph"
496|v_is| is "inner sentence"
Bram Moolenaarf2330482008-06-24 20:19:36 +0000497|v_it| it "inner tag block"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000498|v_iw| iw "inner word"
499|v_i{| i{ same as iB
500|v_i}| i} same as iB
501
502==============================================================================
5032.2 Window commands *CTRL-W*
504
505tag command action in Normal mode ~
506------------------------------------------------------------------------------
507|CTRL-W_CTRL-B| CTRL-W CTRL-B same as "CTRL-W b"
508|CTRL-W_CTRL-C| CTRL-W CTRL-C same as "CTRL-W c"
509|CTRL-W_CTRL-D| CTRL-W CTRL-D same as "CTRL-W d"
510|CTRL-W_CTRL-F| CTRL-W CTRL-F same as "CTRL-W f"
511 CTRL-W CTRL-G same as "CTRL-W g .."
512|CTRL-W_CTRL-H| CTRL-W CTRL-H same as "CTRL-W h"
513|CTRL-W_CTRL-I| CTRL-W CTRL-I same as "CTRL-W i"
514|CTRL-W_CTRL-J| CTRL-W CTRL-J same as "CTRL-W j"
515|CTRL-W_CTRL-K| CTRL-W CTRL-K same as "CTRL-W k"
516|CTRL-W_CTRL-L| CTRL-W CTRL-L same as "CTRL-W l"
517|CTRL-W_CTRL-N| CTRL-W CTRL-N same as "CTRL-W n"
518|CTRL-W_CTRL-O| CTRL-W CTRL-O same as "CTRL-W o"
519|CTRL-W_CTRL-P| CTRL-W CTRL-P same as "CTRL-W p"
520|CTRL-W_CTRL-Q| CTRL-W CTRL-Q same as "CTRL-W q"
521|CTRL-W_CTRL-R| CTRL-W CTRL-R same as "CTRL-W r"
522|CTRL-W_CTRL-S| CTRL-W CTRL-S same as "CTRL-W s"
523|CTRL-W_CTRL-T| CTRL-W CTRL-T same as "CTRL-W t"
524|CTRL-W_CTRL-V| CTRL-W CTRL-V same as "CTRL-W v"
525|CTRL-W_CTRL-W| CTRL-W CTRL-W same as "CTRL-W w"
526|CTRL-W_CTRL-X| CTRL-W CTRL-X same as "CTRL-W x"
527|CTRL-W_CTRL-Z| CTRL-W CTRL-Z same as "CTRL-W z"
528|CTRL-W_CTRL-]| CTRL-W CTRL-] same as "CTRL-W ]"
529|CTRL-W_CTRL-^| CTRL-W CTRL-^ same as "CTRL-W ^"
530|CTRL-W_CTRL-_| CTRL-W CTRL-_ same as "CTRL-W _"
531|CTRL-W_+| CTRL-W + increase current window height N lines
532|CTRL-W_-| CTRL-W - decrease current window height N lines
Bram Moolenaarb6e0ec62017-07-23 22:12:20 +0200533|CTRL-W_:| CTRL-W : same as |:|, edit a command line
Bram Moolenaar071d4272004-06-13 20:20:40 +0000534|CTRL-W_<| CTRL-W < decrease current window width N columns
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100535|CTRL-W_=| CTRL-W = make all windows the same height & width
Bram Moolenaar071d4272004-06-13 20:20:40 +0000536|CTRL-W_>| CTRL-W > increase current window width N columns
537|CTRL-W_H| CTRL-W H move current window to the far left
538|CTRL-W_J| CTRL-W J move current window to the very bottom
539|CTRL-W_K| CTRL-W K move current window to the very top
540|CTRL-W_L| CTRL-W L move current window to the far right
541|CTRL-W_P| CTRL-W P go to preview window
542|CTRL-W_R| CTRL-W R rotate windows upwards N times
543|CTRL-W_S| CTRL-W S same as "CTRL-W s"
Bram Moolenaar4c3f5362006-04-11 21:38:50 +0000544|CTRL-W_T| CTRL-W T move current window to a new tab page
Bram Moolenaar071d4272004-06-13 20:20:40 +0000545|CTRL-W_W| CTRL-W W go to N previous window (wrap around)
546|CTRL-W_]| CTRL-W ] split window and jump to tag under cursor
547|CTRL-W_^| CTRL-W ^ split current window and edit alternate
548 file N
549|CTRL-W__| CTRL-W _ set current window height to N (default:
550 very high)
551|CTRL-W_b| CTRL-W b go to bottom window
552|CTRL-W_c| CTRL-W c close current window (like |:close|)
553|CTRL-W_d| CTRL-W d split window and jump to definition under
554 the cursor
555|CTRL-W_f| CTRL-W f split window and edit file name under the
556 cursor
Bram Moolenaard1f56e62006-02-22 21:25:37 +0000557|CTRL-W_F| CTRL-W F split window and edit file name under the
558 cursor and jump to the line number
559 following the file name.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000560|CTRL-W_g_CTRL-]| CTRL-W g CTRL-] split window and do |:tjump| to tag under
561 cursor
562|CTRL-W_g]| CTRL-W g ] split window and do |:tselect| for tag
563 under cursor
564|CTRL-W_g}| CTRL-W g } do a |:ptjump| to the tag under the cursor
Bram Moolenaar8dff8182006-04-06 20:18:50 +0000565|CTRL-W_gf| CTRL-W g f edit file name under the cursor in a new
566 tab page
Bram Moolenaar57657d82006-04-21 22:12:41 +0000567|CTRL-W_gF| CTRL-W g F edit file name under the cursor in a new
568 tab page and jump to the line number
569 following the file name.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000570|CTRL-W_h| CTRL-W h go to Nth left window (stop at first window)
571|CTRL-W_i| CTRL-W i split window and jump to declaration of
572 identifier under the cursor
573|CTRL-W_j| CTRL-W j go N windows down (stop at last window)
574|CTRL-W_k| CTRL-W k go N windows up (stop at first window)
575|CTRL-W_l| CTRL-W l go to Nth right window (stop at last window)
576|CTRL-W_n| CTRL-W n open new window, N lines high
577|CTRL-W_o| CTRL-W o close all but current window (like |:only|)
578|CTRL-W_p| CTRL-W p go to previous (last accessed) window
579|CTRL-W_q| CTRL-W q quit current window (like |:quit|)
580|CTRL-W_r| CTRL-W r rotate windows downwards N times
581|CTRL-W_s| CTRL-W s split current window in two parts, new
582 window N lines high
583|CTRL-W_t| CTRL-W t go to top window
584|CTRL-W_v| CTRL-W v split current window vertically, new window
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100585 N columns wide
Bram Moolenaar071d4272004-06-13 20:20:40 +0000586|CTRL-W_w| CTRL-W w go to N next window (wrap around)
587|CTRL-W_x| CTRL-W x exchange current window with window N
588 (default: next window)
589|CTRL-W_z| CTRL-W z close preview window
590|CTRL-W_bar| CTRL-W | set window width to N columns
591|CTRL-W_}| CTRL-W } show tag under cursor in preview window
592|CTRL-W_<Down>| CTRL-W <Down> same as "CTRL-W j"
593|CTRL-W_<Up>| CTRL-W <Up> same as "CTRL-W k"
594|CTRL-W_<Left>| CTRL-W <Left> same as "CTRL-W h"
595|CTRL-W_<Right>| CTRL-W <Right> same as "CTRL-W l"
596
597==============================================================================
5982.3 Square bracket commands *[* *]*
599
600tag char note action in Normal mode ~
601------------------------------------------------------------------------------
602|[_CTRL-D| [ CTRL-D jump to first #define found in current and
603 included files matching the word under the
604 cursor, start searching at beginning of
605 current file
606|[_CTRL-I| [ CTRL-I jump to first line in current and included
607 files that contains the word under the
608 cursor, start searching at beginning of
609 current file
610|[#| [# 1 cursor to N previous unmatched #if, #else
611 or #ifdef
612|['| [' 1 cursor to previous lowercase mark, on first
613 non-blank
614|[(| [( 1 cursor N times back to unmatched '('
615|[star| [* 1 same as "[/"
616|[`| [` 1 cursor to previous lowercase mark
617|[/| [/ 1 cursor to N previous start of a C comment
618|[D| [D list all defines found in current and
619 included files matching the word under the
620 cursor, start searching at beginning of
621 current file
622|[I| [I list all lines found in current and
623 included files that contain the word under
624 the cursor, start searching at beginning of
625 current file
626|[P| [P 2 same as "[p"
627|[[| [[ 1 cursor N sections backward
628|[]| [] 1 cursor N SECTIONS backward
629|[c| [c 1 cursor N times backwards to start of change
630|[d| [d show first #define found in current and
631 included files matching the word under the
632 cursor, start searching at beginning of
633 current file
634|[f| [f same as "gf"
635|[i| [i show first line found in current and
636 included files that contains the word under
637 the cursor, start searching at beginning of
638 current file
Bram Moolenaar071d4272004-06-13 20:20:40 +0000639|[m| [m 1 cursor N times back to start of member
640 function
Bram Moolenaardd2a3cd2007-05-05 17:10:09 +0000641|[p| [p 2 like "P", but adjust indent to current line
642|[s| [s 1 move to the previous misspelled word
Bram Moolenaar071d4272004-06-13 20:20:40 +0000643|[z| [z 1 move to start of open fold
644|[{| [{ 1 cursor N times back to unmatched '{'
Bram Moolenaarfa13eef2013-02-06 17:34:04 +0100645|[<MiddleMouse>| [<MiddleMouse> 2 same as "[p"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000646
647|]_CTRL-D| ] CTRL-D jump to first #define found in current and
648 included files matching the word under the
649 cursor, start searching at cursor position
650|]_CTRL-I| ] CTRL-I jump to first line in current and included
651 files that contains the word under the
652 cursor, start searching at cursor position
653|]#| ]# 1 cursor to N next unmatched #endif or #else
654|]'| ]' 1 cursor to next lowercase mark, on first
655 non-blank
656|])| ]) 1 cursor N times forward to unmatched ')'
657|]star| ]* 1 same as "]/"
658|]`| ]` 1 cursor to next lowercase mark
659|]/| ]/ 1 cursor to N next end of a C comment
660|]D| ]D list all #defines found in current and
661 included files matching the word under the
662 cursor, start searching at cursor position
663|]I| ]I list all lines found in current and
664 included files that contain the word under
665 the cursor, start searching at cursor
666 position
667|]P| ]P 2 same as "[p"
668|][| ][ 1 cursor N SECTIONS forward
669|]]| ]] 1 cursor N sections forward
670|]c| ]c 1 cursor N times forward to start of change
671|]d| ]d show first #define found in current and
672 included files matching the word under the
673 cursor, start searching at cursor position
674|]f| ]f same as "gf"
675|]i| ]i show first line found in current and
676 included files that contains the word under
677 the cursor, start searching at cursor
678 position
Bram Moolenaar071d4272004-06-13 20:20:40 +0000679|]m| ]m 1 cursor N times forward to end of member
680 function
Bram Moolenaardd2a3cd2007-05-05 17:10:09 +0000681|]p| ]p 2 like "p", but adjust indent to current line
682|]s| ]s 1 move to next misspelled word
Bram Moolenaar071d4272004-06-13 20:20:40 +0000683|]z| ]z 1 move to end of open fold
684|]}| ]} 1 cursor N times forward to unmatched '}'
Bram Moolenaarfa13eef2013-02-06 17:34:04 +0100685|]<MiddleMouse>| ]<MiddleMouse> 2 same as "]p"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000686
687==============================================================================
6882.4 Commands starting with 'g' *g*
689
690tag char note action in Normal mode ~
691------------------------------------------------------------------------------
692|g_CTRL-A| g CTRL-A only when compiled with MEM_PROFILE
693 defined: dump a memory profile
694|g_CTRL-G| g CTRL-G show information about current cursor
695 position
696|g_CTRL-H| g CTRL-H start Select block mode
697|g_CTRL-]| g CTRL-] |:tjump| to the tag under the cursor
698|g#| g# 1 like "#", but without using "\<" and "\>"
699|g$| g$ 1 when 'wrap' off go to rightmost character of
700 the current line that is on the screen;
701 when 'wrap' on go to the rightmost character
702 of the current screen line
703|g&| g& 2 repeat last ":s" on all lines
704|g'| g'{mark} 1 like |'| but without changing the jumplist
705|g`| g`{mark} 1 like |`| but without changing the jumplist
706|gstar| g* 1 like "*", but without using "\<" and "\>"
Bram Moolenaar2b8388b2015-02-28 13:11:45 +0100707|g+| g+ go to newer text state N times
708|g,| g, 1 go to N newer position in change list
709|g-| g- go to older text state N times
Bram Moolenaar071d4272004-06-13 20:20:40 +0000710|g0| g0 1 when 'wrap' off go to leftmost character of
711 the current line that is on the screen;
712 when 'wrap' on go to the leftmost character
713 of the current screen line
714|g8| g8 print hex value of bytes used in UTF-8
715 character under the cursor
Bram Moolenaar2b8388b2015-02-28 13:11:45 +0100716|g;| g; 1 go to N older position in change list
Bram Moolenaarcfc7d632005-07-28 22:28:16 +0000717|g<| g< display previous command output
Bram Moolenaar071d4272004-06-13 20:20:40 +0000718|g?| g? 2 Rot13 encoding operator
719|g?g?| g?? 2 Rot13 encode current line
720|g?g?| g?g? 2 Rot13 encode current line
721|gD| gD 1 go to definition of word under the cursor
722 in current file
723|gE| gE 1 go backwards to the end of the previous
724 WORD
725|gH| gH start Select line mode
726|gI| gI 2 like "I", but always start in column 1
727|gJ| gJ 2 join lines without inserting space
Bram Moolenaar6c35bea2012-07-25 17:49:10 +0200728|gN| gN 1,2 find the previous match with the last used
729 search pattern and Visually select it
Bram Moolenaar071d4272004-06-13 20:20:40 +0000730|gP| ["x]gP 2 put the text [from register x] before the
731 cursor N times, leave the cursor after it
Bram Moolenaar2a8a3ec2011-01-08 16:06:37 +0100732|gQ| gQ switch to "Ex" mode with Vim editing
Bram Moolenaar071d4272004-06-13 20:20:40 +0000733|gR| gR 2 enter Virtual Replace mode
Bram Moolenaar531da592013-05-06 05:58:55 +0200734|gT| gT go to the previous tab page
Bram Moolenaar071d4272004-06-13 20:20:40 +0000735|gU| gU{motion} 2 make Nmove text uppercase
736|gV| gV don't reselect the previous Visual area
737 when executing a mapping or menu in Select
738 mode
739|g]| g] :tselect on the tag under the cursor
740|g^| g^ 1 when 'wrap' off go to leftmost non-white
741 character of the current line that is on
742 the screen; when 'wrap' on go to the
743 leftmost non-white character of the current
744 screen line
Bram Moolenaar2b8388b2015-02-28 13:11:45 +0100745|g_| g_ 1 cursor to the last CHAR N - 1 lines lower
Bram Moolenaar071d4272004-06-13 20:20:40 +0000746|ga| ga print ascii value of character under the
747 cursor
748|gd| gd 1 go to definition of word under the cursor
749 in current function
750|ge| ge 1 go backwards to the end of the previous
751 word
752|gf| gf start editing the file whose name is under
753 the cursor
Bram Moolenaard1f56e62006-02-22 21:25:37 +0000754|gF| gF start editing the file whose name is under
755 the cursor and jump to the line number
756 following the filename.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000757|gg| gg 1 cursor to line N, default first line
758|gh| gh start Select mode
759|gi| gi 2 like "i", but first move to the |'^| mark
760|gj| gj 1 like "j", but when 'wrap' on go N screen
761 lines down
762|gk| gk 1 like "k", but when 'wrap' on go N screen
763 lines up
Bram Moolenaar641e2862012-07-25 15:06:34 +0200764|gn| gn 1,2 find the next match with the last used
765 search pattern and Visually select it
Bram Moolenaar071d4272004-06-13 20:20:40 +0000766|gm| gm 1 go to character at middle of the screenline
767|go| go 1 cursor to byte N in the buffer
768|gp| ["x]gp 2 put the text [from register x] after the
769 cursor N times, leave the cursor after it
770|gq| gq{motion} 2 format Nmove text
771|gr| gr{char} 2 virtual replace N chars with {char}
772|gs| gs go to sleep for N seconds (default 1)
Bram Moolenaar531da592013-05-06 05:58:55 +0200773|gt| gt go to the next tab page
Bram Moolenaar071d4272004-06-13 20:20:40 +0000774|gu| gu{motion} 2 make Nmove text lowercase
775|gv| gv reselect the previous Visual area
776|gw| gw{motion} 2 format Nmove text and keep cursor
Bram Moolenaardd2a3cd2007-05-05 17:10:09 +0000777|netrw-gx| gx execute application for file name under the
778 cursor (only with |netrw| plugin)
Bram Moolenaarc9b4b052006-04-30 18:54:39 +0000779|g@| g@{motion} call 'operatorfunc'
Bram Moolenaar071d4272004-06-13 20:20:40 +0000780|g~| g~{motion} 2 swap case for Nmove text
781|g<Down>| g<Down> 1 same as "gj"
782|g<End>| g<End> 1 same as "g$"
783|g<Home>| g<Home> 1 same as "g0"
784|g<LeftMouse>| g<LeftMouse> same as <C-LeftMouse>
785 g<MiddleMouse> same as <C-MiddleMouse>
786|g<RightMouse>| g<RightMouse> same as <C-RightMouse>
787|g<Up>| g<Up> 1 same as "gk"
788
789==============================================================================
7902.5 Commands starting with 'z' *z*
791
792tag char note action in Normal mode ~
793------------------------------------------------------------------------------
794|z<CR>| z<CR> redraw, cursor line to top of window,
795 cursor on first non-blank
796|zN<CR>| z{height}<CR> redraw, make window {height} lines high
797|z+| z+ cursor on line N (default line below
798 window), otherwise like "z<CR>"
799|z-| z- redraw, cursor line at bottom of window,
800 cursor on first non-blank
801|z.| z. redraw, cursor line to center of window,
802 cursor on first non-blank
Bram Moolenaar5c2f0502005-12-23 22:11:04 +0000803|z=| z= give spelling suggestions
Bram Moolenaar071d4272004-06-13 20:20:40 +0000804|zA| zA open a closed fold or close an open fold
805 recursively
806|zC| zC close folds recursively
807|zD| zD delete folds recursively
808|zE| zE eliminate all folds
809|zF| zF create a fold for N lines
Bram Moolenaar43abc522005-12-10 20:15:02 +0000810|zG| zG mark word as good spelled word
Bram Moolenaar56b45b92013-06-24 22:22:18 +0200811|zH| zH when 'wrap' off scroll half a screenwidth
812 to the right
813|zL| zL when 'wrap' off scroll half a screenwidth
814 to the left
Bram Moolenaar071d4272004-06-13 20:20:40 +0000815|zM| zM set 'foldlevel' to zero
816|zN| zN set 'foldenable'
817|zO| zO open folds recursively
818|zR| zR set 'foldlevel' to the deepest fold
Bram Moolenaar43abc522005-12-10 20:15:02 +0000819|zW| zW mark word as wrong (bad) spelled word
Bram Moolenaar071d4272004-06-13 20:20:40 +0000820|zX| zX re-apply 'foldlevel'
821|z^| z^ cursor on line N (default line above
822 window), otherwise like "z-"
823|za| za open a closed fold, close an open fold
824|zb| zb redraw, cursor line at bottom of window
825|zc| zc close a fold
826|zd| zd delete a fold
827|ze| ze when 'wrap' off scroll horizontally to
828 position the cursor at the end (right side)
829 of the screen
830|zf| zf{motion} create a fold for Nmove text
Bram Moolenaar43abc522005-12-10 20:15:02 +0000831|zg| zg mark word as good spelled word
Bram Moolenaar071d4272004-06-13 20:20:40 +0000832|zh| zh when 'wrap' off scroll screen N characters
833 to the right
834|zi| zi toggle 'foldenable'
835|zj| zj 1 move to the start of the next fold
836|zk| zk 1 move to the end of the previous fold
837|zl| zl when 'wrap' off scroll screen N characters
838 to the left
839|zm| zm subtract one from 'foldlevel'
840|zn| zn reset 'foldenable'
841|zo| zo open fold
842|zr| zr add one to 'foldlevel'
843|zs| zs when 'wrap' off scroll horizontally to
844 position the cursor at the start (left
845 side) of the screen
846|zt| zt redraw, cursor line at top of window
847|zv| zv open enough folds to view the cursor line
Bram Moolenaar43abc522005-12-10 20:15:02 +0000848|zw| zw mark word as wrong (bad) spelled word
Bram Moolenaar071d4272004-06-13 20:20:40 +0000849|zx| zx re-apply 'foldlevel' and do "zv"
850|zz| zz redraw, cursor line at center of window
851|z<Left>| z<Left> same as "zh"
852|z<Right>| z<Right> same as "zl"
853
854==============================================================================
8553. Visual mode *visual-index*
856
Bram Moolenaar402d2fe2005-04-15 21:00:38 +0000857Most commands in Visual mode are the same as in Normal mode. The ones listed
Bram Moolenaar071d4272004-06-13 20:20:40 +0000858here are those that are different.
859
860tag command note action in Visual mode ~
861------------------------------------------------------------------------------
862|v_CTRL-\_CTRL-N| CTRL-\ CTRL-N stop Visual mode
863|v_CTRL-\_CTRL-G| CTRL-\ CTRL-G go to mode specified with 'insertmode'
Bram Moolenaaraa3b15d2016-04-21 08:53:19 +0200864|v_CTRL-A| CTRL-A 2 add N to number in highlighted text
Bram Moolenaar81695252004-12-29 20:58:21 +0000865|v_CTRL-C| CTRL-C stop Visual mode
Bram Moolenaar071d4272004-06-13 20:20:40 +0000866|v_CTRL-G| CTRL-G toggle between Visual mode and Select mode
867|v_<BS>| <BS> 2 Select mode: delete highlighted area
868|v_CTRL-H| CTRL-H 2 same as <BS>
869|v_CTRL-O| CTRL-O switch from Select to Visual mode for one
870 command
871|v_CTRL-V| CTRL-V make Visual mode blockwise or stop Visual
872 mode
Bram Moolenaaraa3b15d2016-04-21 08:53:19 +0200873|v_CTRL-X| CTRL-X 2 subtract N from number in highlighted text
Bram Moolenaar81695252004-12-29 20:58:21 +0000874|v_<Esc>| <Esc> stop Visual mode
Bram Moolenaar071d4272004-06-13 20:20:40 +0000875|v_CTRL-]| CTRL-] jump to highlighted tag
876|v_!| !{filter} 2 filter the highlighted lines through the
877 external command {filter}
878|v_:| : start a command-line with the highlighted
879 lines as a range
880|v_<| < 2 shift the highlighted lines one
881 'shiftwidth' left
882|v_=| = 2 filter the highlighted lines through the
883 external program given with the 'equalprg'
884 option
885|v_>| > 2 shift the highlighted lines one
886 'shiftwidth' right
887|v_b_A| A 2 block mode: append same text in all lines,
888 after the highlighted area
889|v_C| C 2 delete the highlighted lines and start
890 insert
891|v_D| D 2 delete the highlighted lines
892|v_b_I| I 2 block mode: insert same text in all lines,
893 before the highlighted area
894|v_J| J 2 join the highlighted lines
895|v_K| K run 'keywordprg' on the highlighted area
896|v_O| O Move horizontally to other corner of area.
897 Q does not start Ex mode
898|v_R| R 2 delete the highlighted lines and start
899 insert
900|v_S| S 2 delete the highlighted lines and start
901 insert
902|v_U| U 2 make highlighted area uppercase
903|v_V| V make Visual mode linewise or stop Visual
904 mode
905|v_X| X 2 delete the highlighted lines
906|v_Y| Y yank the highlighted lines
Bram Moolenaarf2330482008-06-24 20:19:36 +0000907|v_aquote| a" extend highlighted area with a double
908 quoted string
909|v_a'| a' extend highlighted area with a single
910 quoted string
Bram Moolenaar071d4272004-06-13 20:20:40 +0000911|v_a(| a( same as ab
912|v_a)| a) same as ab
913|v_a<| a< extend highlighted area with a <> block
914|v_a>| a> same as a<
915|v_aB| aB extend highlighted area with a {} block
916|v_aW| aW extend highlighted area with "a WORD"
917|v_a[| a[ extend highlighted area with a [] block
918|v_a]| a] same as a[
Bram Moolenaarf2330482008-06-24 20:19:36 +0000919|v_a`| a` extend highlighted area with a backtick
920 quoted string
Bram Moolenaar071d4272004-06-13 20:20:40 +0000921|v_ab| ab extend highlighted area with a () block
922|v_ap| ap extend highlighted area with a paragraph
923|v_as| as extend highlighted area with a sentence
Bram Moolenaarf2330482008-06-24 20:19:36 +0000924|v_at| at extend highlighted area with a tag block
Bram Moolenaar071d4272004-06-13 20:20:40 +0000925|v_aw| aw extend highlighted area with "a word"
926|v_a{| a{ same as aB
927|v_a}| a} same as aB
928|v_c| c 2 delete highlighted area and start insert
929|v_d| d 2 delete highlighted area
Bram Moolenaaraa3b15d2016-04-21 08:53:19 +0200930|v_g_CTRL-A| g CTRL-A 2 add N to number in highlighted text
931|v_g_CTRL-X| g CTRL-X 2 subtract N from number in highlighted text
Bram Moolenaar071d4272004-06-13 20:20:40 +0000932|v_gJ| gJ 2 join the highlighted lines without
933 inserting spaces
934|v_gq| gq 2 format the highlighted lines
935|v_gv| gv exchange current and previous highlighted
936 area
Bram Moolenaarf2330482008-06-24 20:19:36 +0000937|v_iquote| i" extend highlighted area with a double
938 quoted string (without quotes)
939|v_i'| i' extend highlighted area with a single
940 quoted string (without quotes)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000941|v_i(| i( same as ib
942|v_i)| i) same as ib
943|v_i<| i< extend highlighted area with inner <> block
944|v_i>| i> same as i<
945|v_iB| iB extend highlighted area with inner {} block
946|v_iW| iW extend highlighted area with "inner WORD"
947|v_i[| i[ extend highlighted area with inner [] block
948|v_i]| i] same as i[
Bram Moolenaarf2330482008-06-24 20:19:36 +0000949|v_i`| i` extend highlighted area with a backtick
950 quoted string (without the backticks)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000951|v_ib| ib extend highlighted area with inner () block
952|v_ip| ip extend highlighted area with inner paragraph
953|v_is| is extend highlighted area with inner sentence
Bram Moolenaarf2330482008-06-24 20:19:36 +0000954|v_it| it extend highlighted area with inner tag block
Bram Moolenaar071d4272004-06-13 20:20:40 +0000955|v_iw| iw extend highlighted area with "inner word"
956|v_i{| i{ same as iB
957|v_i}| i} same as iB
958|v_o| o move cursor to other corner of area
959|v_r| r 2 delete highlighted area and start insert
960|v_s| s 2 delete highlighted area and start insert
961|v_u| u 2 make highlighted area lowercase
962|v_v| v make Visual mode characterwise or stop
963 Visual mode
964|v_x| x 2 delete the highlighted area
965|v_y| y yank the highlighted area
966|v_~| ~ 2 swap case for the highlighted area
967
968==============================================================================
9694. Command-line editing *ex-edit-index*
970
971Get to the command-line with the ':', '!', '/' or '?' commands.
972Normal characters are inserted at the current cursor position.
973"Completion" below refers to context-sensitive completion. It will complete
974file names, tags, commands etc. as appropriate.
975
Bram Moolenaar2a8a3ec2011-01-08 16:06:37 +0100976tag command action in Command-line editing mode ~
977------------------------------------------------------------------------------
Bram Moolenaar071d4272004-06-13 20:20:40 +0000978 CTRL-@ not used
979|c_CTRL-A| CTRL-A do completion on the pattern in front of the
980 cursor and insert all matches
981|c_CTRL-B| CTRL-B cursor to begin of command-line
Bram Moolenaar2a8a3ec2011-01-08 16:06:37 +0100982|c_CTRL-C| CTRL-C same as <Esc>
Bram Moolenaar071d4272004-06-13 20:20:40 +0000983|c_CTRL-D| CTRL-D list completions that match the pattern in
984 front of the cursor
985|c_CTRL-E| CTRL-E cursor to end of command-line
986|'cedit'| CTRL-F default value for 'cedit': opens the
987 command-line window; otherwise not used
Bram Moolenaar818078d2016-08-27 21:58:42 +0200988|c_CTRL-G| CTRL-G next match when 'incsearch' is active
Bram Moolenaar071d4272004-06-13 20:20:40 +0000989|c_<BS>| <BS> delete the character in front of the cursor
990|c_digraph| {char1} <BS> {char2}
991 enter digraph when 'digraph' is on
992|c_CTRL-H| CTRL-H same as <BS>
993|c_<Tab>| <Tab> if 'wildchar' is <Tab>: Do completion on
994 the pattern in front of the cursor
995|c_<S-Tab>| <S-Tab> same as CTRL-P
996|c_wildchar| 'wildchar' Do completion on the pattern in front of the
997 cursor (default: <Tab>)
998|c_CTRL-I| CTRL-I same as <Tab>
999|c_<NL>| <NL> same as <CR>
1000|c_CTRL-J| CTRL-J same as <CR>
1001|c_CTRL-K| CTRL-K {char1} {char2}
1002 enter digraph
1003|c_CTRL-L| CTRL-L do completion on the pattern in front of the
1004 cursor and insert the longest common part
1005|c_<CR>| <CR> execute entered command
Bram Moolenaar2ec618c2016-10-01 14:47:05 +02001006|c_CTRL-M| CTRL-M same as <CR>
Bram Moolenaar071d4272004-06-13 20:20:40 +00001007|c_CTRL-N| CTRL-N after using 'wildchar' with multiple matches:
Bram Moolenaar214641f2017-03-05 17:04:09 +01001008 go to next match, otherwise: recall older
1009 command-line from history.
Bram Moolenaar071d4272004-06-13 20:20:40 +00001010 CTRL-O not used
1011|c_CTRL-P| CTRL-P after using 'wildchar' with multiple matches:
Bram Moolenaar214641f2017-03-05 17:04:09 +01001012 go to previous match, otherwise: recall older
1013 command-line from history.
Bram Moolenaar071d4272004-06-13 20:20:40 +00001014|c_CTRL-Q| CTRL-Q same as CTRL-V, unless it's used for terminal
1015 control flow
1016|c_CTRL-R| CTRL-R {0-9a-z"%#*:= CTRL-F CTRL-P CTRL-W CTRL-A}
1017 insert the contents of a register or object
1018 under the cursor as if typed
1019|c_CTRL-R_CTRL-R| CTRL-R CTRL-R {0-9a-z"%#*:= CTRL-F CTRL-P CTRL-W CTRL-A}
1020 insert the contents of a register or object
1021 under the cursor literally
1022 CTRL-S (used for terminal control flow)
Bram Moolenaar818078d2016-08-27 21:58:42 +02001023|c_CTRL-T| CTRL-T previous match when 'incsearch' is active
Bram Moolenaar071d4272004-06-13 20:20:40 +00001024|c_CTRL-U| CTRL-U remove all characters
1025|c_CTRL-V| CTRL-V insert next non-digit literally, insert three
1026 digit decimal number as a single byte.
1027|c_CTRL-W| CTRL-W delete the word in front of the cursor
1028 CTRL-X not used (reserved for completion)
1029 CTRL-Y copy (yank) modeless selection
1030 CTRL-Z not used (reserved for suspend)
1031|c_<Esc>| <Esc> abandon command-line without executing it
Bram Moolenaar2ec618c2016-10-01 14:47:05 +02001032|c_CTRL-[| CTRL-[ same as <Esc>
Bram Moolenaarfa13eef2013-02-06 17:34:04 +01001033|c_CTRL-\_CTRL-N| CTRL-\ CTRL-N go to Normal mode, abandon command-line
1034|c_CTRL-\_CTRL-G| CTRL-\ CTRL-G go to mode specified with 'insertmode',
Bram Moolenaar071d4272004-06-13 20:20:40 +00001035 abandon command-line
1036 CTRL-\ a - d reserved for extensions
1037|c_CTRL-\_e| CTRL-\ e {expr} replace the command line with the result of
1038 {expr}
1039 CTRL-\ f - z reserved for extensions
1040 CTRL-\ others not used
Bram Moolenaardd2a3cd2007-05-05 17:10:09 +00001041|c_CTRL-]| CTRL-] trigger abbreviation
Bram Moolenaar071d4272004-06-13 20:20:40 +00001042|c_CTRL-^| CTRL-^ toggle use of |:lmap| mappings
1043|c_CTRL-_| CTRL-_ when 'allowrevins' set: change language
1044 (Hebrew, Farsi)
1045|c_<Del>| <Del> delete the character under the cursor
1046
1047|c_<Left>| <Left> cursor left
1048|c_<S-Left>| <S-Left> cursor one word left
1049|c_<C-Left>| <C-Left> cursor one word left
1050|c_<Right>| <Right> cursor right
1051|c_<S-Right>| <S-Right> cursor one word right
1052|c_<C-Right>| <C-Right> cursor one word right
1053|c_<Up>| <Up> recall previous command-line from history that
1054 matches pattern in front of the cursor
1055|c_<S-Up>| <S-Up> recall previous command-line from history
1056|c_<Down>| <Down> recall next command-line from history that
1057 matches pattern in front of the cursor
1058|c_<S-Down>| <S-Down> recall next command-line from history
1059|c_<Home>| <Home> cursor to start of command-line
1060|c_<End>| <End> cursor to end of command-line
1061|c_<PageDown>| <PageDown> same as <S-Down>
1062|c_<PageUp>| <PageUp> same as <S-Up>
1063|c_<Insert>| <Insert> toggle insert/overstrike mode
1064|c_<LeftMouse>| <LeftMouse> cursor at mouse click
1065
Bram Moolenaaracb4f222016-01-10 15:59:26 +01001066You found it, Arthur! *holy-grail* *:smile*
Bram Moolenaar071d4272004-06-13 20:20:40 +00001067
1068==============================================================================
10695. EX commands *ex-cmd-index* *:index*
1070
1071This is a brief but complete listing of all the ":" commands, without
1072mentioning any arguments. The optional part of the command name is inside [].
1073The commands are sorted on the non-optional part of their name.
1074
Bram Moolenaar2a8a3ec2011-01-08 16:06:37 +01001075tag command action ~
1076------------------------------------------------------------------------------
Bram Moolenaar071d4272004-06-13 20:20:40 +00001077|:!| :! filter lines or execute an external command
1078|:!!| :!! repeat last ":!" command
1079|:#| :# same as ":number"
1080|:&| :& repeat last ":substitute"
1081|:star| :* execute contents of a register
1082|:<| :< shift lines one 'shiftwidth' left
1083|:=| := print the cursor line number
1084|:>| :> shift lines one 'shiftwidth' right
1085|:@| :@ execute contents of a register
1086|:@@| :@@ repeat the previous ":@"
1087|:Next| :N[ext] go to previous file in the argument list
1088|:Print| :P[rint] print lines
1089|:X| :X ask for encryption key
1090|:append| :a[ppend] append text
1091|:abbreviate| :ab[breviate] enter abbreviation
1092|:abclear| :abc[lear] remove all abbreviations
1093|:aboveleft| :abo[veleft] make split window appear left or above
1094|:all| :al[l] open a window for each file in the argument
1095 list
1096|:amenu| :am[enu] enter new menu item for all modes
1097|:anoremenu| :an[oremenu] enter a new menu for all modes that will not
1098 be remapped
1099|:args| :ar[gs] print the argument list
1100|:argadd| :arga[dd] add items to the argument list
1101|:argdelete| :argd[elete] delete items from the argument list
1102|:argedit| :arge[dit] add item to the argument list and edit it
1103|:argdo| :argdo do a command on all items in the argument list
1104|:argglobal| :argg[lobal] define the global argument list
1105|:arglocal| :argl[ocal] define a local argument list
1106|:argument| :argu[ment] go to specific file in the argument list
1107|:ascii| :as[cii] print ascii value of character under the cursor
1108|:autocmd| :au[tocmd] enter or show autocommands
1109|:augroup| :aug[roup] select the autocommand group to use
1110|:aunmenu| :aun[menu] remove menu for all modes
1111|:buffer| :b[uffer] go to specific buffer in the buffer list
1112|:bNext| :bN[ext] go to previous buffer in the buffer list
1113|:ball| :ba[ll] open a window for each buffer in the buffer list
1114|:badd| :bad[d] add buffer to the buffer list
1115|:bdelete| :bd[elete] remove a buffer from the buffer list
1116|:behave| :be[have] set mouse and selection behavior
1117|:belowright| :bel[owright] make split window appear right or below
1118|:bfirst| :bf[irst] go to first buffer in the buffer list
1119|:blast| :bl[ast] go to last buffer in the buffer list
1120|:bmodified| :bm[odified] go to next buffer in the buffer list that has
1121 been modified
1122|:bnext| :bn[ext] go to next buffer in the buffer list
1123|:botright| :bo[tright] make split window appear at bottom or far right
1124|:bprevious| :bp[revious] go to previous buffer in the buffer list
1125|:brewind| :br[ewind] go to first buffer in the buffer list
1126|:break| :brea[k] break out of while loop
1127|:breakadd| :breaka[dd] add a debugger breakpoint
1128|:breakdel| :breakd[el] delete a debugger breakpoint
1129|:breaklist| :breakl[ist] list debugger breakpoints
1130|:browse| :bro[wse] use file selection dialog
1131|:bufdo| :bufdo execute command in each listed buffer
1132|:buffers| :buffers list all files in the buffer list
1133|:bunload| :bun[load] unload a specific buffer
1134|:bwipeout| :bw[ipeout] really delete a buffer
1135|:change| :c[hange] replace a line or series of lines
1136|:cNext| :cN[ext] go to previous error
1137|:cNfile| :cNf[ile] go to last error in previous file
1138|:cabbrev| :ca[bbrev] like ":abbreviate" but for Command-line mode
1139|:cabclear| :cabc[lear] clear all abbreviations for Command-line mode
Bram Moolenaara6878372014-03-22 21:02:50 +01001140|:caddbuffer| :cad[dbuffer] add errors from buffer
1141|:caddexpr| :cadde[xpr] add errors from expr
Bram Moolenaar4770d092006-01-12 23:22:24 +00001142|:caddfile| :caddf[ile] add error message to current quickfix list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001143|:call| :cal[l] call a function
1144|:catch| :cat[ch] part of a :try command
Bram Moolenaar537ef082016-07-09 17:56:19 +02001145|:cbottom| :cbo[ttom] scroll to the bottom of the quickfix window
Bram Moolenaar86b68352004-12-27 21:59:20 +00001146|:cbuffer| :cb[uffer] parse error messages and jump to first error
Bram Moolenaar071d4272004-06-13 20:20:40 +00001147|:cc| :cc go to specific error
1148|:cclose| :ccl[ose] close quickfix window
1149|:cd| :cd change directory
Bram Moolenaaraa23b372015-09-08 18:46:31 +02001150|:cdo| :cdo execute command in each valid error list entry
1151|:cfdo| :cfd[o] execute command in each file in error list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001152|:center| :ce[nter] format lines at the center
Bram Moolenaar87e25fd2005-07-27 21:13:01 +00001153|:cexpr| :cex[pr] read errors from expr and jump to first
Bram Moolenaar071d4272004-06-13 20:20:40 +00001154|:cfile| :cf[ile] read file with error messages and jump to first
1155|:cfirst| :cfir[st] go to the specified error, default first one
Bram Moolenaarc01140a2006-03-24 22:21:52 +00001156|:cgetbuffer| :cgetb[uffer] get errors from buffer
Bram Moolenaar8ab561d2006-03-23 22:44:10 +00001157|:cgetexpr| :cgete[xpr] get errors from expr
Bram Moolenaar071d4272004-06-13 20:20:40 +00001158|:cgetfile| :cg[etfile] read file with error messages
Bram Moolenaar34700a62013-03-07 13:20:54 +01001159|:changes| :changes print the change list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001160|:chdir| :chd[ir] change directory
1161|:checkpath| :che[ckpath] list included files
1162|:checktime| :checkt[ime] check timestamp of loaded buffers
Bram Moolenaar42ebd062016-07-17 13:35:14 +02001163|:chistory| :chi[story] list the error lists
Bram Moolenaar071d4272004-06-13 20:20:40 +00001164|:clast| :cla[st] go to the specified error, default last one
Bram Moolenaarc95a3022016-06-12 23:01:46 +02001165|:clearjumps| :cle[arjumps] clear the jump list
1166|:clist| :cl[ist] list all errors
Bram Moolenaar071d4272004-06-13 20:20:40 +00001167|:close| :clo[se] close current window
1168|:cmap| :cm[ap] like ":map" but for Command-line mode
1169|:cmapclear| :cmapc[lear] clear all mappings for Command-line mode
1170|:cmenu| :cme[nu] add menu for Command-line mode
1171|:cnext| :cn[ext] go to next error
1172|:cnewer| :cnew[er] go to newer error list
1173|:cnfile| :cnf[ile] go to first error in next file
1174|:cnoremap| :cno[remap] like ":noremap" but for Command-line mode
1175|:cnoreabbrev| :cnorea[bbrev] like ":noreabbrev" but for Command-line mode
1176|:cnoremenu| :cnoreme[nu] like ":noremenu" but for Command-line mode
1177|:copy| :co[py] copy lines
1178|:colder| :col[der] go to older error list
1179|:colorscheme| :colo[rscheme] load a specific color scheme
1180|:command| :com[mand] create user-defined command
1181|:comclear| :comc[lear] clear all user-defined commands
1182|:compiler| :comp[iler] do settings for a specific compiler
1183|:continue| :con[tinue] go back to :while
1184|:confirm| :conf[irm] prompt user when confirmation required
1185|:copen| :cope[n] open quickfix window
1186|:cprevious| :cp[revious] go to previous error
1187|:cpfile| :cpf[ile] go to last error in previous file
1188|:cquit| :cq[uit] quit Vim with an error code
1189|:crewind| :cr[ewind] go to the specified error, default first one
Bram Moolenaaracb4f222016-01-10 15:59:26 +01001190|:cscope| :cs[cope] execute cscope command
Bram Moolenaar071d4272004-06-13 20:20:40 +00001191|:cstag| :cst[ag] use cscope to jump to a tag
1192|:cunmap| :cu[nmap] like ":unmap" but for Command-line mode
1193|:cunabbrev| :cuna[bbrev] like ":unabbrev" but for Command-line mode
1194|:cunmenu| :cunme[nu] remove menu for Command-line mode
1195|:cwindow| :cw[indow] open or close quickfix window
1196|:delete| :d[elete] delete lines
Bram Moolenaarc0197e22004-09-13 20:26:32 +00001197|:delmarks| :delm[arks] delete marks
Bram Moolenaar071d4272004-06-13 20:20:40 +00001198|:debug| :deb[ug] run a command in debugging mode
1199|:debuggreedy| :debugg[reedy] read debug mode commands from normal input
1200|:delcommand| :delc[ommand] delete user-defined command
1201|:delfunction| :delf[unction] delete a user function
1202|:diffupdate| :dif[fupdate] update 'diff' buffers
1203|:diffget| :diffg[et] remove differences in current buffer
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00001204|:diffoff| :diffo[ff] switch off diff mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001205|:diffpatch| :diffp[atch] apply a patch and show differences
1206|:diffput| :diffpu[t] remove differences in other buffer
1207|:diffsplit| :diffs[plit] show differences with another file
1208|:diffthis| :diffthis make current window a diff window
1209|:digraphs| :dig[raphs] show or enter digraphs
1210|:display| :di[splay] display registers
1211|:djump| :dj[ump] jump to #define
Bram Moolenaarb1332082013-10-06 14:22:40 +02001212|:dl| :dl short for |:delete| with the 'l' flag
Bram Moolenaardc1f1642016-08-16 18:33:43 +02001213|:del| :del[ete]l short for |:delete| with the 'l' flag
Bram Moolenaar9ba7e172013-07-17 22:37:26 +02001214|:dlist| :dli[st] list #defines
Bram Moolenaar071d4272004-06-13 20:20:40 +00001215|:doautocmd| :do[autocmd] apply autocommands to current buffer
1216|:doautoall| :doautoa[ll] apply autocommands for all loaded buffers
Bram Moolenaarb1332082013-10-06 14:22:40 +02001217|:dp| :d[elete]p short for |:delete| with the 'p' flag
Bram Moolenaar071d4272004-06-13 20:20:40 +00001218|:drop| :dr[op] jump to window editing file or edit file in
1219 current window
1220|:dsearch| :ds[earch] list one #define
1221|:dsplit| :dsp[lit] split window and jump to #define
1222|:edit| :e[dit] edit a file
Bram Moolenaard3667a22006-03-16 21:35:52 +00001223|:earlier| :ea[rlier] go to older change, undo
Bram Moolenaar071d4272004-06-13 20:20:40 +00001224|:echo| :ec[ho] echoes the result of expressions
1225|:echoerr| :echoe[rr] like :echo, show like an error and use history
1226|:echohl| :echoh[l] set highlighting for echo commands
1227|:echomsg| :echom[sg] same as :echo, put message in history
1228|:echon| :echon same as :echo, but without <EOL>
1229|:else| :el[se] part of an :if command
1230|:elseif| :elsei[f] part of an :if command
1231|:emenu| :em[enu] execute a menu by name
1232|:endif| :en[dif] end previous :if
Bram Moolenaar17568792005-07-06 22:28:03 +00001233|:endfor| :endfo[r] end previous :for
Bram Moolenaar071d4272004-06-13 20:20:40 +00001234|:endfunction| :endf[unction] end of a user function
1235|:endtry| :endt[ry] end previous :try
1236|:endwhile| :endw[hile] end previous :while
1237|:enew| :ene[w] edit a new, unnamed buffer
1238|:ex| :ex same as ":edit"
1239|:execute| :exe[cute] execute result of expressions
1240|:exit| :exi[t] same as ":xit"
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001241|:exusage| :exu[sage] overview of Ex commands
Bram Moolenaar071d4272004-06-13 20:20:40 +00001242|:file| :f[ile] show or set the current file name
1243|:files| :files list all files in the buffer list
1244|:filetype| :filet[ype] switch file type detection on/off
Bram Moolenaare4a3bcf2016-08-26 19:52:37 +02001245|:filter| :filt[er] filter output of following command
Bram Moolenaar071d4272004-06-13 20:20:40 +00001246|:find| :fin[d] find file in 'path' and edit it
1247|:finally| :fina[lly] part of a :try command
1248|:finish| :fini[sh] quit sourcing a Vim script
1249|:first| :fir[st] go to the first file in the argument list
1250|:fixdel| :fix[del] set key code of <Del>
1251|:fold| :fo[ld] create a fold
1252|:foldclose| :foldc[lose] close folds
1253|:folddoopen| :foldd[oopen] execute command on lines not in a closed fold
1254|:folddoclosed| :folddoc[losed] execute command on lines in a closed fold
1255|:foldopen| :foldo[pen] open folds
Bram Moolenaar17568792005-07-06 22:28:03 +00001256|:for| :for for loop
Bram Moolenaar071d4272004-06-13 20:20:40 +00001257|:function| :fu[nction] define a user function
1258|:global| :g[lobal] execute commands for matching lines
1259|:goto| :go[to] go to byte in the buffer
1260|:grep| :gr[ep] run 'grepprg' and jump to first match
Bram Moolenaar17568792005-07-06 22:28:03 +00001261|:grepadd| :grepa[dd] like :grep, but append to current list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001262|:gui| :gu[i] start the GUI
1263|:gvim| :gv[im] start the GUI
1264|:hardcopy| :ha[rdcopy] send text to the printer
1265|:help| :h[elp] open a help window
Bram Moolenaar5bfa2ed2014-09-19 19:39:34 +02001266|:helpclose| :helpc[lose] close one help window
Bram Moolenaar071d4272004-06-13 20:20:40 +00001267|:helpfind| :helpf[ind] dialog to open a help window
1268|:helpgrep| :helpg[rep] like ":grep" but searches help files
1269|:helptags| :helpt[ags] generate help tags for a directory
1270|:highlight| :hi[ghlight] specify highlighting methods
1271|:hide| :hid[e] hide current buffer for a command
1272|:history| :his[tory] print a history list
1273|:insert| :i[nsert] insert text
1274|:iabbrev| :ia[bbrev] like ":abbrev" but for Insert mode
1275|:iabclear| :iabc[lear] like ":abclear" but for Insert mode
1276|:if| :if execute commands when condition met
1277|:ijump| :ij[ump] jump to definition of identifier
1278|:ilist| :il[ist] list lines where identifier matches
1279|:imap| :im[ap] like ":map" but for Insert mode
1280|:imapclear| :imapc[lear] like ":mapclear" but for Insert mode
1281|:imenu| :ime[nu] add menu for Insert mode
1282|:inoremap| :ino[remap] like ":noremap" but for Insert mode
1283|:inoreabbrev| :inorea[bbrev] like ":noreabbrev" but for Insert mode
1284|:inoremenu| :inoreme[nu] like ":noremenu" but for Insert mode
1285|:intro| :int[ro] print the introductory message
1286|:isearch| :is[earch] list one line where identifier matches
1287|:isplit| :isp[lit] split window and jump to definition of
1288 identifier
1289|:iunmap| :iu[nmap] like ":unmap" but for Insert mode
1290|:iunabbrev| :iuna[bbrev] like ":unabbrev" but for Insert mode
1291|:iunmenu| :iunme[nu] remove menu for Insert mode
1292|:join| :j[oin] join lines
1293|:jumps| :ju[mps] print the jump list
1294|:k| :k set a mark
Bram Moolenaar17568792005-07-06 22:28:03 +00001295|:keepalt| :keepa[lt] following command keeps the alternate file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001296|:keepmarks| :kee[pmarks] following command keeps marks where they are
Bram Moolenaar5302d9e2011-09-14 17:55:08 +02001297|:keepjumps| :keepj[umps] following command keeps jumplist and marks
Bram Moolenaar4b60a6c2013-11-14 05:48:46 +01001298|:keeppatterns| :keepp[atterns] following command keeps search pattern history
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001299|:lNext| :lN[ext] go to previous entry in location list
1300|:lNfile| :lNf[ile] go to last entry in previous file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001301|:list| :l[ist] print lines
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001302|:laddexpr| :lad[dexpr] add locations from expr
Bram Moolenaara37420f2006-02-04 22:37:47 +00001303|:laddbuffer| :laddb[uffer] add locations from buffer
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001304|:laddfile| :laddf[ile] add locations to current location list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001305|:last| :la[st] go to the last file in the argument list
1306|:language| :lan[guage] set the language (locale)
Bram Moolenaard3667a22006-03-16 21:35:52 +00001307|:later| :lat[er] go to newer change, redo
Bram Moolenaar537ef082016-07-09 17:56:19 +02001308|:lbottom| :lbo[ttom] scroll to the bottom of the location window
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001309|:lbuffer| :lb[uffer] parse locations and jump to first location
Bram Moolenaar071d4272004-06-13 20:20:40 +00001310|:lcd| :lc[d] change directory locally
1311|:lchdir| :lch[dir] change directory locally
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001312|:lclose| :lcl[ose] close location window
Bram Moolenaaracb4f222016-01-10 15:59:26 +01001313|:lcscope| :lcs[cope] like ":cscope" but uses location list
Bram Moolenaaraa23b372015-09-08 18:46:31 +02001314|:ldo| :ld[o] execute command in valid location list entries
1315|:lfdo| :lfd[o] execute command in each file in location list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001316|:left| :le[ft] left align lines
1317|:leftabove| :lefta[bove] make split window appear left or above
1318|:let| :let assign a value to a variable or option
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001319|:lexpr| :lex[pr] read locations from expr and jump to first
1320|:lfile| :lf[ile] read file with locations and jump to first
1321|:lfirst| :lfir[st] go to the specified location, default first one
Bram Moolenaarc01140a2006-03-24 22:21:52 +00001322|:lgetbuffer| :lgetb[uffer] get locations from buffer
Bram Moolenaar8ab561d2006-03-23 22:44:10 +00001323|:lgetexpr| :lgete[xpr] get locations from expr
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001324|:lgetfile| :lg[etfile] read file with locations
Bram Moolenaara37420f2006-02-04 22:37:47 +00001325|:lgrep| :lgr[ep] run 'grepprg' and jump to first match
1326|:lgrepadd| :lgrepa[dd] like :grep, but append to current list
Bram Moolenaar8b6144b2006-02-08 09:20:24 +00001327|:lhelpgrep| :lh[elpgrep] like ":helpgrep" but uses location list
Bram Moolenaar42ebd062016-07-17 13:35:14 +02001328|:lhistory| :lhi[story] list the location lists
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001329|:ll| :ll go to specific location
1330|:llast| :lla[st] go to the specified location, default last one
1331|:llist| :lli[st] list all locations
Bram Moolenaara37420f2006-02-04 22:37:47 +00001332|:lmake| :lmak[e] execute external command 'makeprg' and parse
1333 error messages
Bram Moolenaar071d4272004-06-13 20:20:40 +00001334|:lmap| :lm[ap] like ":map!" but includes Lang-Arg mode
1335|:lmapclear| :lmapc[lear] like ":mapclear!" but includes Lang-Arg mode
Bram Moolenaar6ab5b842006-01-26 22:16:34 +00001336|:lnext| :lne[xt] go to next location
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001337|:lnewer| :lnew[er] go to newer location list
1338|:lnfile| :lnf[ile] go to first location in next file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001339|:lnoremap| :ln[oremap] like ":noremap!" but includes Lang-Arg mode
1340|:loadkeymap| :loadk[eymap] load the following keymaps until EOF
1341|:loadview| :lo[adview] load view for current window from a file
1342|:lockmarks| :loc[kmarks] following command keeps marks where they are
Bram Moolenaar24c088a2005-02-02 22:55:47 +00001343|:lockvar| :lockv[ar] lock variables
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001344|:lolder| :lol[der] go to older location list
1345|:lopen| :lope[n] open location window
1346|:lprevious| :lp[revious] go to previous location
1347|:lpfile| :lpf[ile] go to last location in previous file
1348|:lrewind| :lr[ewind] go to the specified location, default first one
Bram Moolenaar071d4272004-06-13 20:20:40 +00001349|:ls| :ls list all buffers
Bram Moolenaarb8a7b562006-02-01 21:47:16 +00001350|:ltag| :lt[ag] jump to tag and add matching tags to the
1351 location list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001352|:lunmap| :lu[nmap] like ":unmap!" but includes Lang-Arg mode
Bram Moolenaar0ba04292010-07-14 23:23:17 +02001353|:lua| :lua execute |Lua| command
1354|:luado| :luad[o] execute Lua command for each line
1355|:luafile| :luaf[ile] execute |Lua| script file
Bram Moolenaara37420f2006-02-04 22:37:47 +00001356|:lvimgrep| :lv[imgrep] search for pattern in files
1357|:lvimgrepadd| :lvimgrepa[dd] like :vimgrep, but append to current list
Bram Moolenaar28c258f2006-01-25 22:02:51 +00001358|:lwindow| :lw[indow] open or close location window
Bram Moolenaar071d4272004-06-13 20:20:40 +00001359|:move| :m[ove] move lines
1360|:mark| :ma[rk] set a mark
1361|:make| :mak[e] execute external command 'makeprg' and parse
1362 error messages
1363|:map| :map show or enter a mapping
1364|:mapclear| :mapc[lear] clear all mappings for Normal and Visual mode
1365|:marks| :marks list all marks
1366|:match| :mat[ch] define a match to highlight
1367|:menu| :me[nu] enter a new menu item
Bram Moolenaaracb4f222016-01-10 15:59:26 +01001368|:menutranslate| :menut[ranslate] add a menu translation item
Bram Moolenaar071d4272004-06-13 20:20:40 +00001369|:messages| :mes[sages] view previously displayed messages
1370|:mkexrc| :mk[exrc] write current mappings and settings to a file
1371|:mksession| :mks[ession] write session info to a file
Bram Moolenaar78599ad2005-06-16 21:47:53 +00001372|:mkspell| :mksp[ell] produce .spl spell file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001373|:mkvimrc| :mkv[imrc] write current mappings and settings to a file
1374|:mkview| :mkvie[w] write view of current window to a file
1375|:mode| :mod[e] show or change the screen mode
Bram Moolenaar8299df92004-07-10 09:47:34 +00001376|:mzscheme| :mz[scheme] execute MzScheme command
1377|:mzfile| :mzf[ile] execute MzScheme script file
Bram Moolenaarb26e6322010-05-22 21:34:09 +02001378|:nbclose| :nbc[lose] close the current Netbeans session
Bram Moolenaar17568792005-07-06 22:28:03 +00001379|:nbkey| :nb[key] pass a key to Netbeans
Bram Moolenaarb26e6322010-05-22 21:34:09 +02001380|:nbstart| :nbs[art] start a new Netbeans session
Bram Moolenaar071d4272004-06-13 20:20:40 +00001381|:next| :n[ext] go to next file in the argument list
1382|:new| :new create a new empty window
1383|:nmap| :nm[ap] like ":map" but for Normal mode
1384|:nmapclear| :nmapc[lear] clear all mappings for Normal mode
1385|:nmenu| :nme[nu] add menu for Normal mode
1386|:nnoremap| :nn[oremap] like ":noremap" but for Normal mode
1387|:nnoremenu| :nnoreme[nu] like ":noremenu" but for Normal mode
Bram Moolenaar76f3b1a2014-03-27 22:30:07 +01001388|:noautocmd| :noa[utocmd] following commands don't trigger autocommands
Bram Moolenaar071d4272004-06-13 20:20:40 +00001389|:noremap| :no[remap] enter a mapping that will not be remapped
1390|:nohlsearch| :noh[lsearch] suspend 'hlsearch' highlighting
1391|:noreabbrev| :norea[bbrev] enter an abbreviation that will not be
1392 remapped
1393|:noremenu| :noreme[nu] enter a menu that will not be remapped
1394|:normal| :norm[al] execute Normal mode commands
Bram Moolenaar76f3b1a2014-03-27 22:30:07 +01001395|:noswapfile| :nos[wapfile] following commands don't create a swap file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001396|:number| :nu[mber] print lines with line number
1397|:nunmap| :nun[map] like ":unmap" but for Normal mode
1398|:nunmenu| :nunme[nu] remove menu for Normal mode
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01001399|:oldfiles| :ol[dfiles] list files that have marks in the viminfo file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001400|:open| :o[pen] start open mode (not implemented)
1401|:omap| :om[ap] like ":map" but for Operator-pending mode
1402|:omapclear| :omapc[lear] remove all mappings for Operator-pending mode
1403|:omenu| :ome[nu] add menu for Operator-pending mode
Bram Moolenaar7e8fd632006-02-18 22:14:51 +00001404|:only| :on[ly] close all windows except the current one
Bram Moolenaar071d4272004-06-13 20:20:40 +00001405|:onoremap| :ono[remap] like ":noremap" but for Operator-pending mode
1406|:onoremenu| :onoreme[nu] like ":noremenu" but for Operator-pending mode
1407|:options| :opt[ions] open the options-window
1408|:ounmap| :ou[nmap] like ":unmap" but for Operator-pending mode
1409|:ounmenu| :ounme[nu] remove menu for Operator-pending mode
Bram Moolenaarb2c03502010-07-02 20:20:09 +02001410|:ownsyntax| :ow[nsyntax] set new local syntax highlight for this window
Bram Moolenaar328da0d2016-03-04 22:22:32 +01001411|:packadd| :pa[ckadd] add a plugin from 'packpath'
Bram Moolenaare18c0b32016-03-20 21:08:34 +01001412|:packloadall| :packl[oadall] load all packages under 'packpath'
Bram Moolenaar071d4272004-06-13 20:20:40 +00001413|:pclose| :pc[lose] close preview window
1414|:pedit| :ped[it] edit file in the preview window
1415|:perl| :pe[rl] execute Perl command
Bram Moolenaar05159a02005-02-26 23:04:13 +00001416|:print| :p[rint] print lines
Bram Moolenaar17568792005-07-06 22:28:03 +00001417|:profdel| :profd[el] stop profiling a function or script
Bram Moolenaar05159a02005-02-26 23:04:13 +00001418|:profile| :prof[ile] profiling functions and scripts
Bram Moolenaarf2330482008-06-24 20:19:36 +00001419|:promptfind| :pro[mptfind] open GUI dialog for searching
1420|:promptrepl| :promptr[epl] open GUI dialog for search/replace
Bram Moolenaar071d4272004-06-13 20:20:40 +00001421|:perldo| :perld[o] execute Perl command for each line
1422|:pop| :po[p] jump to older entry in tag stack
Bram Moolenaar34700a62013-03-07 13:20:54 +01001423|:popup| :popu[p] popup a menu by name
Bram Moolenaar071d4272004-06-13 20:20:40 +00001424|:ppop| :pp[op] ":pop" in preview window
1425|:preserve| :pre[serve] write all text to swap file
1426|:previous| :prev[ious] go to previous file in argument list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001427|:psearch| :ps[earch] like ":ijump" but shows match in preview window
1428|:ptag| :pt[ag] show tag in preview window
1429|:ptNext| :ptN[ext] |:tNext| in preview window
1430|:ptfirst| :ptf[irst] |:trewind| in preview window
1431|:ptjump| :ptj[ump] |:tjump| and show tag in preview window
1432|:ptlast| :ptl[ast] |:tlast| in preview window
1433|:ptnext| :ptn[ext] |:tnext| in preview window
1434|:ptprevious| :ptp[revious] |:tprevious| in preview window
1435|:ptrewind| :ptr[ewind] |:trewind| in preview window
1436|:ptselect| :pts[elect] |:tselect| and show tag in preview window
1437|:put| :pu[t] insert contents of register in the text
1438|:pwd| :pw[d] print current directory
Bram Moolenaar368373e2010-07-19 20:46:22 +02001439|:py3| :py3 execute Python 3 command
Bram Moolenaarb6590522010-07-21 16:00:43 +02001440|:python3| :python3 same as :py3
Bram Moolenaarad3b3662013-05-17 18:14:19 +02001441|:py3do| :py3d[o] execute Python 3 command for each line
Bram Moolenaar60aad972010-07-21 20:36:22 +02001442|:py3file| :py3f[ile] execute Python 3 script file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001443|:python| :py[thon] execute Python command
Bram Moolenaarad3b3662013-05-17 18:14:19 +02001444|:pydo| :pyd[o] execute Python command for each line
Bram Moolenaar071d4272004-06-13 20:20:40 +00001445|:pyfile| :pyf[ile] execute Python script file
Bram Moolenaarf42dd3c2017-01-28 16:06:38 +01001446|:pyx| :pyx execute |python_x| command
1447|:pythonx| :pythonx same as :pyx
1448|:pyxdo| :pyxd[o] execute |python_x| command for each line
1449|:pyxfile| :pyxf[ile] execute |python_x| script file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001450|:quit| :q[uit] quit current window (when one window quit Vim)
1451|:quitall| :quita[ll] quit Vim
1452|:qall| :qa[ll] quit Vim
1453|:read| :r[ead] read file into the text
1454|:recover| :rec[over] recover a file from a swap file
1455|:redo| :red[o] redo one undone change
1456|:redir| :redi[r] redirect messages to a file or register
1457|:redraw| :redr[aw] force a redraw of the display
1458|:redrawstatus| :redraws[tatus] force a redraw of the status line(s)
1459|:registers| :reg[isters] display the contents of registers
1460|:resize| :res[ize] change current window height
1461|:retab| :ret[ab] change tab size
1462|:return| :retu[rn] return from a user function
1463|:rewind| :rew[ind] go to the first file in the argument list
1464|:right| :ri[ght] right align text
1465|:rightbelow| :rightb[elow] make split window appear right or below
1466|:ruby| :rub[y] execute Ruby command
1467|:rubydo| :rubyd[o] execute Ruby command for each line
1468|:rubyfile| :rubyf[ile] execute Ruby script file
Bram Moolenaar1d689522010-05-28 20:54:39 +02001469|:rundo| :rund[o] read undo information from a file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001470|:runtime| :ru[ntime] source vim scripts in 'runtimepath'
1471|:rviminfo| :rv[iminfo] read from viminfo file
1472|:substitute| :s[ubstitute] find and replace text
1473|:sNext| :sN[ext] split window and go to previous file in
1474 argument list
Bram Moolenaar17568792005-07-06 22:28:03 +00001475|:sandbox| :san[dbox] execute a command in the sandbox
Bram Moolenaar071d4272004-06-13 20:20:40 +00001476|:sargument| :sa[rgument] split window and go to specific file in
1477 argument list
1478|:sall| :sal[l] open a window for each file in argument list
1479|:saveas| :sav[eas] save file under another name.
1480|:sbuffer| :sb[uffer] split window and go to specific file in the
1481 buffer list
1482|:sbNext| :sbN[ext] split window and go to previous file in the
1483 buffer list
1484|:sball| :sba[ll] open a window for each file in the buffer list
1485|:sbfirst| :sbf[irst] split window and go to first file in the
1486 buffer list
1487|:sblast| :sbl[ast] split window and go to last file in buffer
1488 list
1489|:sbmodified| :sbm[odified] split window and go to modified file in the
1490 buffer list
1491|:sbnext| :sbn[ext] split window and go to next file in the buffer
1492 list
1493|:sbprevious| :sbp[revious] split window and go to previous file in the
1494 buffer list
1495|:sbrewind| :sbr[ewind] split window and go to first file in the
1496 buffer list
Bram Moolenaar8feef4f2015-01-07 16:57:10 +01001497|:scriptnames| :scr[iptnames] list names of all sourced Vim scripts
Bram Moolenaar071d4272004-06-13 20:20:40 +00001498|:scriptencoding| :scripte[ncoding] encoding used in sourced Vim script
Bram Moolenaar64969662005-12-14 21:59:55 +00001499|:scscope| :scs[cope] split window and execute cscope command
Bram Moolenaar071d4272004-06-13 20:20:40 +00001500|:set| :se[t] show or set options
1501|:setfiletype| :setf[iletype] set 'filetype', unless it was set already
1502|:setglobal| :setg[lobal] show global values of options
1503|:setlocal| :setl[ocal] show or set options locally
1504|:sfind| :sf[ind] split current window and edit file in 'path'
1505|:sfirst| :sfir[st] split window and go to first file in the
1506 argument list
1507|:shell| :sh[ell] escape to a shell
1508|:simalt| :sim[alt] Win32 GUI: simulate Windows ALT key
1509|:sign| :sig[n] manipulate signs
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01001510|:silent| :sil[ent] run a command silently
Bram Moolenaar071d4272004-06-13 20:20:40 +00001511|:sleep| :sl[eep] do nothing for a few seconds
1512|:slast| :sla[st] split window and go to last file in the
1513 argument list
1514|:smagic| :sm[agic] :substitute with 'magic'
Bram Moolenaar34700a62013-03-07 13:20:54 +01001515|:smap| :smap like ":map" but for Select mode
Bram Moolenaar371d5402006-03-20 21:47:49 +00001516|:smapclear| :smapc[lear] remove all mappings for Select mode
1517|:smenu| :sme[nu] add menu for Select mode
Bram Moolenaaracb4f222016-01-10 15:59:26 +01001518|:smile| :smi[le] make the user happy
Bram Moolenaar071d4272004-06-13 20:20:40 +00001519|:snext| :sn[ext] split window and go to next file in the
1520 argument list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001521|:snomagic| :sno[magic] :substitute with 'nomagic'
Bram Moolenaar371d5402006-03-20 21:47:49 +00001522|:snoremap| :snor[emap] like ":noremap" but for Select mode
1523|:snoremenu| :snoreme[nu] like ":noremenu" but for Select mode
Bram Moolenaarf95dc3b2005-05-22 22:02:25 +00001524|:sort| :sor[t] sort lines
Bram Moolenaar071d4272004-06-13 20:20:40 +00001525|:source| :so[urce] read Vim or Ex commands from a file
Bram Moolenaarf81b0fe2005-06-23 22:27:26 +00001526|:spelldump| :spelld[ump] split window and fill with all correct words
Bram Moolenaar78599ad2005-06-16 21:47:53 +00001527|:spellgood| :spe[llgood] add good word for spelling
Bram Moolenaar362e1a32006-03-06 23:29:24 +00001528|:spellinfo| :spelli[nfo] show info about loaded spell files
Bram Moolenaar43abc522005-12-10 20:15:02 +00001529|:spellrepall| :spellr[epall] replace all bad words like last |z=|
Bram Moolenaard0131a82006-03-04 21:46:13 +00001530|:spellundo| :spellu[ndo] remove good or bad word
Bram Moolenaar78599ad2005-06-16 21:47:53 +00001531|:spellwrong| :spellw[rong] add spelling mistake
Bram Moolenaar071d4272004-06-13 20:20:40 +00001532|:split| :sp[lit] split current window
1533|:sprevious| :spr[evious] split window and go to previous file in the
1534 argument list
1535|:srewind| :sre[wind] split window and go to first file in the
1536 argument list
1537|:stop| :st[op] suspend the editor or escape to a shell
1538|:stag| :sta[g] split window and jump to a tag
1539|:startinsert| :star[tinsert] start Insert mode
Bram Moolenaaracb4f222016-01-10 15:59:26 +01001540|:startgreplace| :startg[replace] start Virtual Replace mode
Bram Moolenaar325b7a22004-07-05 15:58:32 +00001541|:startreplace| :startr[eplace] start Replace mode
Bram Moolenaarf2330482008-06-24 20:19:36 +00001542|:stopinsert| :stopi[nsert] stop Insert mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001543|:stjump| :stj[ump] do ":tjump" and split window
1544|:stselect| :sts[elect] do ":tselect" and split window
1545|:sunhide| :sun[hide] same as ":unhide"
Bram Moolenaar371d5402006-03-20 21:47:49 +00001546|:sunmap| :sunm[ap] like ":unmap" but for Select mode
1547|:sunmenu| :sunme[nu] remove menu for Select mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001548|:suspend| :sus[pend] same as ":stop"
1549|:sview| :sv[iew] split window and edit file read-only
1550|:swapname| :sw[apname] show the name of the current swap file
1551|:syntax| :sy[ntax] syntax highlighting
Bram Moolenaar203d04d2013-06-06 21:36:40 +02001552|:syntime| :synti[me] measure syntax highlighting speed
Bram Moolenaar071d4272004-06-13 20:20:40 +00001553|:syncbind| :sync[bind] sync scroll binding
1554|:t| :t same as ":copy"
1555|:tNext| :tN[ext] jump to previous matching tag
Bram Moolenaar80a94a52006-02-23 21:26:58 +00001556|:tabNext| :tabN[ext] go to previous tab page
Bram Moolenaar7e8fd632006-02-18 22:14:51 +00001557|:tabclose| :tabc[lose] close current tab page
Bram Moolenaard0131a82006-03-04 21:46:13 +00001558|:tabdo| :tabdo execute command in each tab page
Bram Moolenaar7e8fd632006-02-18 22:14:51 +00001559|:tabedit| :tabe[dit] edit a file in a new tab page
1560|:tabfind| :tabf[ind] find file in 'path', edit it in a new tab page
Bram Moolenaar13d5aee2016-01-21 23:36:05 +01001561|:tabfirst| :tabfir[st] go to first tab page
1562|:tablast| :tabl[ast] go to last tab page
Bram Moolenaar80a94a52006-02-23 21:26:58 +00001563|:tabmove| :tabm[ove] move tab page to other position
1564|:tabnew| :tabnew edit a file in a new tab page
1565|:tabnext| :tabn[ext] go to next tab page
Bram Moolenaar7e8fd632006-02-18 22:14:51 +00001566|:tabonly| :tabo[nly] close all tab pages except the current one
Bram Moolenaar80a94a52006-02-23 21:26:58 +00001567|:tabprevious| :tabp[revious] go to previous tab page
Bram Moolenaar13d5aee2016-01-21 23:36:05 +01001568|:tabrewind| :tabr[ewind] go to first tab page
Bram Moolenaar7e8fd632006-02-18 22:14:51 +00001569|:tabs| :tabs list the tab pages and what they contain
Bram Moolenaar80a94a52006-02-23 21:26:58 +00001570|:tab| :tab create new tab when opening new window
Bram Moolenaar071d4272004-06-13 20:20:40 +00001571|:tag| :ta[g] jump to tag
1572|:tags| :tags show the contents of the tag stack
1573|:tcl| :tc[l] execute Tcl command
1574|:tcldo| :tcld[o] execute Tcl command for each line
1575|:tclfile| :tclf[ile] execute Tcl script file
1576|:tearoff| :te[aroff] tear-off a menu
Bram Moolenaar74675a62017-07-15 13:53:23 +02001577|:terminal| :ter[minal] open a terminal window
Bram Moolenaar071d4272004-06-13 20:20:40 +00001578|:tfirst| :tf[irst] jump to first matching tag
1579|:throw| :th[row] throw an exception
1580|:tjump| :tj[ump] like ":tselect", but jump directly when there
1581 is only one match
1582|:tlast| :tl[ast] jump to last matching tag
1583|:tmenu| :tm[enu] define menu tooltip
1584|:tnext| :tn[ext] jump to next matching tag
1585|:topleft| :to[pleft] make split window appear at top or far left
1586|:tprevious| :tp[revious] jump to previous matching tag
1587|:trewind| :tr[ewind] jump to first matching tag
1588|:try| :try execute commands, abort on error or exception
1589|:tselect| :ts[elect] list matching tags and select one
1590|:tunmenu| :tu[nmenu] remove menu tooltip
1591|:undo| :u[ndo] undo last change(s)
Bram Moolenaarb388adb2006-02-28 23:50:17 +00001592|:undojoin| :undoj[oin] join next change with previous undo block
Bram Moolenaard3667a22006-03-16 21:35:52 +00001593|:undolist| :undol[ist] list leafs of the undo tree
Bram Moolenaar071d4272004-06-13 20:20:40 +00001594|:unabbreviate| :una[bbreviate] remove abbreviation
1595|:unhide| :unh[ide] open a window for each loaded file in the
1596 buffer list
1597|:unlet| :unl[et] delete variable
Bram Moolenaar24c088a2005-02-02 22:55:47 +00001598|:unlockvar| :unlo[ckvar] unlock variables
Bram Moolenaar071d4272004-06-13 20:20:40 +00001599|:unmap| :unm[ap] remove mapping
1600|:unmenu| :unme[nu] remove menu
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01001601|:unsilent| :uns[ilent] run a command not silently
Bram Moolenaar071d4272004-06-13 20:20:40 +00001602|:update| :up[date] write buffer if modified
1603|:vglobal| :v[global] execute commands for not matching lines
1604|:version| :ve[rsion] print version number and other info
1605|:verbose| :verb[ose] execute command with 'verbose' set
1606|:vertical| :vert[ical] make following command split vertically
Bram Moolenaar17568792005-07-06 22:28:03 +00001607|:vimgrep| :vim[grep] search for pattern in files
1608|:vimgrepadd| :vimgrepa[dd] like :vimgrep, but append to current list
Bram Moolenaar071d4272004-06-13 20:20:40 +00001609|:visual| :vi[sual] same as ":edit", but turns off "Ex" mode
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001610|:viusage| :viu[sage] overview of Normal mode commands
Bram Moolenaar071d4272004-06-13 20:20:40 +00001611|:view| :vie[w] edit a file read-only
Bram Moolenaar371d5402006-03-20 21:47:49 +00001612|:vmap| :vm[ap] like ":map" but for Visual+Select mode
1613|:vmapclear| :vmapc[lear] remove all mappings for Visual+Select mode
1614|:vmenu| :vme[nu] add menu for Visual+Select mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001615|:vnew| :vne[w] create a new empty window, vertically split
Bram Moolenaar371d5402006-03-20 21:47:49 +00001616|:vnoremap| :vn[oremap] like ":noremap" but for Visual+Select mode
1617|:vnoremenu| :vnoreme[nu] like ":noremenu" but for Visual+Select mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001618|:vsplit| :vs[plit] split current window vertically
Bram Moolenaar371d5402006-03-20 21:47:49 +00001619|:vunmap| :vu[nmap] like ":unmap" but for Visual+Select mode
1620|:vunmenu| :vunme[nu] remove menu for Visual+Select mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001621|:windo| :windo execute command in each window
1622|:write| :w[rite] write to a file
1623|:wNext| :wN[ext] write to a file and go to previous file in
1624 argument list
1625|:wall| :wa[ll] write all (changed) buffers
1626|:while| :wh[ile] execute loop for as long as condition met
1627|:winsize| :wi[nsize] get or set window size (obsolete)
1628|:wincmd| :winc[md] execute a Window (CTRL-W) command
1629|:winpos| :winp[os] get or set window position
1630|:wnext| :wn[ext] write to a file and go to next file in
1631 argument list
1632|:wprevious| :wp[revious] write to a file and go to previous file in
1633 argument list
1634|:wq| :wq write to a file and quit window or Vim
1635|:wqall| :wqa[ll] write all changed buffers and quit Vim
1636|:wsverb| :ws[verb] pass the verb to workshop over IPC
Bram Moolenaar1d689522010-05-28 20:54:39 +02001637|:wundo| :wu[ndo] write undo information to a file
Bram Moolenaar071d4272004-06-13 20:20:40 +00001638|:wviminfo| :wv[iminfo] write to viminfo file
1639|:xit| :x[it] write if buffer changed and quit window or Vim
1640|:xall| :xa[ll] same as ":wqall"
Bram Moolenaar371d5402006-03-20 21:47:49 +00001641|:xmapclear| :xmapc[lear] remove all mappings for Visual mode
1642|:xmap| :xm[ap] like ":map" but for Visual mode
1643|:xmenu| :xme[nu] add menu for Visual mode
1644|:xnoremap| :xn[oremap] like ":noremap" but for Visual mode
1645|:xnoremenu| :xnoreme[nu] like ":noremenu" but for Visual mode
1646|:xunmap| :xu[nmap] like ":unmap" but for Visual mode
1647|:xunmenu| :xunme[nu] remove menu for Visual mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00001648|:yank| :y[ank] yank lines into a register
1649|:z| :z print some lines
1650|:~| :~ repeat last ":substitute"
1651
Bram Moolenaar371d5402006-03-20 21:47:49 +00001652
Bram Moolenaar071d4272004-06-13 20:20:40 +00001653 vim:tw=78:ts=8:ft=help:norl: