comparison runtime/doc/index.txt @ 7:3fc0f57ecb91 v7.0001

updated for version 7.0001
author vimboss
date Sun, 13 Jun 2004 20:20:40 +0000
parents
children 4102fb4ea781
comparison
equal deleted inserted replaced
6:c2daee826b8f 7:3fc0f57ecb91
1 *index.txt* For Vim version 7.0aa. Last change: 2004 May 24
2
3
4 VIM REFERENCE MANUAL by Bram Moolenaar
5
6 *index*
7 This file contains a list of all commands for each mode, with a tag and a
8 short description. The lists are sorted on ASCII value.
9
10 Tip: When looking for certain functionality, use a search command. E.g.,
11 to look for deleting something, use: "/delete".
12
13 1. Insert mode |insert-index|
14 2. 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|
20 3. Visual mode |visual-index|
21 4. Command-line editing |ex-edit-index|
22 5. EX commands |ex-cmd-index|
23
24 For an overview of options see help.txt |option-list|.
25 For an overview of built-in functions see |functions|.
26 For a list of Vim variables see |vim-variable|.
27 For a complete listing of all help items see |help-tags|.
28
29 ==============================================================================
30 1. Insert mode *insert-index*
31
32 tag char action ~
33 -----------------------------------------------------------------------
34 |i_CTRL-@| CTRL-@ insert previously inserted text and stop
35 insert
36 |i_CTRL-A| CTRL-A insert previously inserted text
37 CTRL-B not used |i_CTRL-B-gone|
38 |i_CTRL-C| CTRL-C quit insert mode, without checking for
39 abbreviation, unless 'insertmode' set.
40 |i_CTRL-D| CTRL-D delete one shiftwidth of indent in the current
41 line
42 |i_CTRL-E| CTRL-E insert the character which is below the cursor
43 CTRL-F not used (but by default it's in 'cinkeys' to
44 re-indent the current line)
45 |i_CTRL-G_j| CTRL-G CTRL-J line down, to column where inserting started
46 |i_CTRL-G_j| CTRL-G j line down, to column where inserting started
47 |i_CTRL-G_j| CTRL-G <Down> line down, to column where inserting started
48 |i_CTRL-G_k| CTRL-G CTRL-K line up, to column where inserting started
49 |i_CTRL-G_k| CTRL-G k line up, to column where inserting started
50 |i_CTRL-G_k| CTRL-G <Up> line up, to column where inserting started
51 |i_CTRL-G_u| CTRL-G u start new undoable edit
52 |i_<BS>| <BS> delete character before the cursor
53 |i_digraph| {char1}<BS>{char2}
54 enter digraph (only when 'digraph' option set)
55 |i_CTRL-H| CTRL-H same as <BS>
56 |i_<Tab>| <Tab> insert a <Tab> character
57 |i_CTRL-I| CTRL-I same as <Tab>
58 |i_<NL>| <NL> same as <CR>
59 |i_CTRL-J| CTRL-J same as <CR>
60 |i_CTRL-K| CTRL-K {char1} {char2}
61 enter digraph
62 |i_CTRL-L| CTRL-L when 'insertmode' set: Leave Insert mode
63 |i_<CR>| <CR> begin new line
64 |i_CTRL-M| CTRL-M same as <CR>
65 |i_CTRL-N| CTRL-N find next match for keyword in front of the
66 cursor
67 |i_CTRL-O| CTRL-O execute a single command and return to insert
68 mode
69 |i_CTRL-P| CTRL-P find previous match for keyword in front of
70 the cursor
71 |i_CTRL-Q| CTRL-Q same as CTRL-V, unless used for terminal
72 control flow
73 |i_CTRL-R| CTRL-R {0-9a-z"%#*:=}
74 insert the contents of a register
75 |i_CTRL-R_CTRL-R| CTRL-R CTRL-R {0-9a-z"%#*:=}
76 insert the contents of a register literally
77 |i_CTRL-R_CTRL-O| CTRL-R CTRL-O {0-9a-z"%#*:=}
78 insert the contents of a register literally
79 and don't auto-indent
80 |i_CTRL-R_CTRL-P| CTRL-R CTRL-P {0-9a-z"%#*:=}
81 insert the contents of a register literally
82 and fix indent.
83 CTRL-S (used for terminal control flow)
84 |i_CTRL-T| CTRL-T insert one shiftwidth of indent in current
85 line
86 |i_CTRL-U| CTRL-U delete all entered characters in the current
87 line
88 |i_CTRL-V| CTRL-V {char} insert next non-digit literally
89 |i_CTRL-V_digit| CTRL-V {number} insert three digit decimal number as a single
90 byte.
91 |i_CTRL-W| CTRL-W delete word before the cursor
92 |i_CTRL-X| CTRL-X {mode} enter CTRL-X sub mode, see below
93 |i_CTRL-Y| CTRL-Y insert the character which is above the cursor
94 |i_CTRL-Z| CTRL-Z when 'insertmode' set: suspend Vim
95 |i_<Esc>| <Esc> end insert mode (unless 'insertmode' set)
96 |i_CTRL-[| CTRL-[ same as <Esc>
97 |i_CTRL-\_CTRL-N| CTRL-\ CTRL-N go to Normal mode
98 |i_CTRL-\_CTRL-G| CTRL-\ CTRL-G go to mode specified with 'insertmode'
99 CTRL-\ a - z reserved for extensions
100 CTRL-\ others not used
101 |i_CTRL-]| CTRL-] trigger abbreviation
102 |i_CTRL-^| CTRL-^ toggle use of |:lmap| mappings
103 |i_CTRL-_| CTRL-_ When 'allowrevins' set: change language
104 (Hebrew, Farsi) {only when compiled with
105 +rightleft feature}
106
107 <Space> to '~' not used, except '0' and '^' followed by
108 CTRL-D
109
110 |i_0_CTRL-D| 0 CTRL-D delete all indent in the current line
111 |i_^_CTRL-D| ^ CTRL-D delete all indent in the current line, restore
112 it in the next line
113
114 |i_<Del>| <Del> delete character under the cursor
115
116 Meta characters (0x80 to 0xff, 128 to 255)
117 not used
118
119 |i_<Left>| <Left> cursor one character left
120 |i_<S-Left>| <S-Left> cursor one word left
121 |i_<C-Left>| <C-Left> cursor one word left
122 |i_<Right>| <Right> cursor one character right
123 |i_<S-Right>| <S-Right> cursor one word right
124 |i_<C-Right>| <C-Right> cursor one word right
125 |i_<Up>| <Up> cursor one line up
126 |i_<S-Up>| <S-Up> same as <PageUp>
127 |i_<Down>| <Down> cursor one line down
128 |i_<S-Down>| <S-Down> same as <PageDown>
129 |i_<Home>| <Home> cursor to start of line
130 |i_<C-Home>| <C-Home> cursor to start of file
131 |i_<End>| <End> cursor past end of line
132 |i_<C-End>| <C-End> cursor past end of file
133 |i_<PageUp>| <PageUp> one screenfull backward
134 |i_<PageDown>| <PageDown> one screenfull forward
135 |i_<F1>| <F1> same as <Help>
136 |i_<Help>| <Help> stop insert mode and display help window
137 |i_<Insert>| <Insert> toggle Insert/Replace mode
138 |i_<LeftMouse>| <LeftMouse> cursor at mouse click
139 |i_<MouseDown>| <MouseDown> scroll three lines downwards
140 |i_<S-MouseDown>| <S-MouseDown> scroll a full page downwards
141 |i_<MouseUp>| <MouseUp> scroll three lines upwards
142 |i_<S-MouseUp>| <S-MouseUp> scroll a full page upwards
143
144 commands in CTRL-X submode
145
146 |i_CTRL-X_CTRL-D| CTRL-X CTRL-D complete defined identifiers
147 |i_CTRL-X_CTRL-E| CTRL-X CTRL-E scroll up
148 |i_CTRL-X_CTRL-F| CTRL-X CTRL-F complete file names
149 |i_CTRL-X_CTRL-I| CTRL-X CTRL-I complete identifiers
150 |i_CTRL-X_CTRL-K| CTRL-X CTRL-K complete identifiers from dictionary
151 |i_CTRL-X_CTRL-L| CTRL-X CTRL-L complete whole lines
152 |i_CTRL-X_CTRL-N| CTRL-X CTRL-N next completion
153 |i_CTRL-X_CTRL-P| CTRL-X CTRL-P previous completion
154 |i_CTRL-X_CTRL-T| CTRL-X CTRL-T complete identifiers from thesaurus
155 |i_CTRL-X_CTRL-Y| CTRL-X CTRL-Y scroll down
156 |i_CTRL-X_CTRL-]| CTRL-X CTRL-] complete tags
157 {not available when compiled without the +insert_expand feature}
158
159 ==============================================================================
160 2. Normal mode *normal-index*
161
162 CHAR any non-blank character
163 WORD a sequence of non-blank characters
164 N a number entered before the command
165 {motion} a cursor movement command
166 Nmove the text that is moved over with a {motion}
167 SECTION a section that possibly starts with '}' instead of '{'
168
169 note: 1 = cursor movement command; 2 = can be undone/redone
170
171 tag char note action in Normal mode ~
172 ------------------------------------------------------------------------------
173 CTRL-@ not used
174 |CTRL-A| CTRL-A 2 add N to number at/after cursor
175 |CTRL-B| CTRL-B 1 scroll N screens Backwards
176 |CTRL-C| CTRL-C interrupt current (search) command
177 |CTRL-D| CTRL-D scroll Down N lines (default: half a screen)
178 |CTRL-E| CTRL-E scroll N lines upwards (N lines Extra)
179 |CTRL-F| CTRL-F 1 scroll N screens Forward
180 |CTRL-G| CTRL-G display current file name and position
181 |<BS>| <BS> 1 same as "h"
182 |CTRL-H| CTRL-H 1 same as "h"
183 |<Tab>| <Tab> 1 go to N newer entry in jump list
184 |CTRL-I| CTRL-I 1 same as <Tab>
185 |<NL>| <NL> 1 same as "j"
186 |CTRL-J| CTRL-J 1 same as "j"
187 CTRL-K not used
188 |CTRL-L| CTRL-L redraw screen
189 |<CR>| <CR> 1 cursor to the first CHAR N lines lower
190 |CTRL-M| CTRL-M 1 same as <CR>
191 |CTRL-N| CTRL-N 1 same as "j"
192 |CTRL-O| CTRL-O 1 go to N older entry in jump list
193 |CTRL-P| CTRL-P 1 same as "k"
194 CTRL-Q (used for terminal control flow)
195 |CTRL-R| CTRL-R 2 redo changes which were undone with 'u'
196 CTRL-S (used for terminal control flow)
197 |CTRL-T| CTRL-T jump to N older Tag in tag list
198 |CTRL-U| CTRL-U scroll N lines Upwards (default: half a
199 screen)
200 |CTRL-V| CTRL-V start blockwise Visual mode
201 |CTRL-W| CTRL-W {char} window commands, see |CTRL-W|
202 |CTRL-X| CTRL-X 2 subtract N from number at/after cursor
203 |CTRL-Y| CTRL-Y scroll N lines downwards
204 |CTRL-Z| CTRL-Z suspend program (or start new shell)
205 CTRL-[ <Esc> not used
206 |CTRL-\_CTRL-N| CTRL-\ CTRL-N go to Normal mode (no-op)
207 |CTRL-\_CTRL-G| CTRL-\ CTRL-G go to mode specified with 'insertmode'
208 CTRL-\ a - z reserved for extensions
209 CTRL-\ others not used
210 |CTRL-]| CTRL-] :ta to ident under cursor
211 |CTRL-^| CTRL-^ edit Nth alternate file (equivalent to
212 ":e #N")
213 CTRL-_ not used
214
215 |<Space>| <Space> 1 same as "l"
216 |!| !{motion}{filter}
217 2 filter Nmove text through the {filter}
218 command
219 |!!| !!{filter} 2 filter N lines through the {filter} command
220 |quote| "{a-zA-Z0-9.%#:-"} use register {a-zA-Z0-9.%#:-"} for next
221 delete, yank or put (uppercase to append)
222 ({.%#:} only work with put)
223 |#| # 1 search backward for the Nth occurrence of
224 the ident under the cursor
225 |$| $ 1 cursor to the end of Nth next line
226 |%| % 1 find the next (curly/square) bracket on
227 this line and go to its match, or go to
228 matching comment bracket, or go to matching
229 preprocessor directive.
230 |N%| {count}% 1 go to N percentage in the file
231 |&| & 2 repeat last :s
232 |'| '{a-zA-Z0-9} 1 cursor to the first CHAR on the line with
233 mark {a-zA-Z0-9}
234 |''| '' 1 cursor to the first CHAR of the line where
235 the cursor was before the latest jump.
236 |'(| '( 1 cursor to the first CHAR on the line of the
237 start of the current sentence
238 |')| ') 1 cursor to the first CHAR on the line of the
239 end of the current sentence
240 |'<| '< 1 cursor to the first CHAR of the line where
241 highlighted area starts/started in the
242 current buffer.
243 |'>| '> 1 cursor to the first CHAR of the line where
244 highlighted area ends/ended in the current
245 buffer.
246 |'[| '[ 1 cursor to the first CHAR on the line of the
247 start of last operated text or start of put
248 text
249 |']| '] 1 cursor to the first CHAR on the line of the
250 end of last operated text or end of put
251 text
252 |'{| '{ 1 cursor to the first CHAR on the line of the
253 start of the current paragraph
254 |'}| '} 1 cursor to the first CHAR on the line of the
255 end of the current paragraph
256 |(| ( 1 cursor N sentences backward
257 |)| ) 1 cursor N sentences forward
258 |star| * 1 search forward for the Nth occurrence of
259 the ident under the cursor
260 |+| + 1 same as <CR>
261 |,| , 1 repeat latest f, t, F or T in opposite
262 direction N times
263 |-| - 1 cursor to the first CHAR N lines higher
264 |.| . 2 repeat last change with count replaced with
265 N
266 |/| /{pattern}<CR> 1 search forward for the Nth occurrence of
267 {pattern}
268 |/<CR>| /<CR> 1 search forward for {pattern} of last search
269 |count| 0 1 cursor to the first char of the line
270 |count| 1 prepend to command to give a count
271 |count| 2 "
272 |count| 3 "
273 |count| 4 "
274 |count| 5 "
275 |count| 6 "
276 |count| 7 "
277 |count| 8 "
278 |count| 9 "
279 |:| : 1 start entering an Ex command
280 |N:| {count}: start entering an Ex command with range
281 from current line to N-1 lines down
282 |;| ; 1 repeat latest f, t, F or T N times
283 |<| <{motion} 2 shift Nmove lines one 'shiftwidth'
284 leftwards
285 |<<| << 2 shift N lines one 'shiftwidth' leftwards
286 |=| ={motion} 2 filter Nmove lines through "indent"
287 |==| == 2 filter N lines through "indent"
288 |>| >{motion} 2 shift Nmove lines one 'shiftwidth'
289 rightwards
290 |>>| >> 2 shift N lines one 'shiftwidth' rightwards
291 |?| ?{pattern}<CR> 1 search backward for the Nth previous
292 occurrence of {pattern}
293 |?<CR>| ?<CR> 1 search backward for {pattern} of last search
294 |@| @{a-z} 2 execute the contents of register {a-z}
295 N times
296 |@:| @: repeat the previous ":" command N times
297 |@@| @@ 2 repeat the previous @{a-z} N times
298 |A| A 2 append text after the end of the line N times
299 |B| B 1 cursor N WORDS backward
300 |C| ["x]C 2 change from the cursor position to the end
301 of the line, and N-1 more lines [into
302 buffer x]; synonym for "c$"
303 |D| ["x]D 2 delete the characters under the cursor
304 until the end of the line and N-1 more
305 lines [into buffer x]; synonym for "d$"
306 |E| E 1 cursor forward to the end of WORD N
307 |F| F{char} 1 cursor to the Nth occurrence of {char} to
308 the left
309 |G| G 1 cursor to line N, default last line
310 |H| H 1 cursor to line N from top of screen
311 |I| I 2 insert text before the first CHAR on the
312 line N times
313 |J| J 2 Join N lines; default is 2
314 |K| K lookup Keyword under the cursor with
315 'keywordprg'
316 |L| L 1 cursor to line N from bottom of screen
317 |M| M 1 cursor to middle line of screen
318 |N| N 1 repeat the latest '/' or '?' N times in
319 opposite direction
320 |O| O 2 begin a new line above the cursor and
321 insert text, repeat N times
322 |P| ["x]P 2 put the text [from buffer x] before the
323 cursor N times
324 |Q| Q switch to "Ex" mode
325 |R| R 2 enter replace mode: overtype existing
326 characters, repeat the entered text N-1
327 times
328 |S| ["x]S 2 delete N lines [into buffer x] and start
329 insert; synonym for "^cc" or "0cc",
330 depending on autoindent
331 |T| T{char} 1 cursor till after Nth occurrence of {char}
332 to the left
333 |U| U 2 undo all latest changes on one line
334 |V| V start linewise Visual mode
335 |W| W 1 cursor N WORDS forward
336 |X| ["x]X 2 delete N characters before the cursor [into
337 buffer x]
338 |Y| ["x]Y yank N lines [into buffer x]; synonym for
339 "yy"
340 |ZZ| ZZ store current file if modified, and exit
341 |ZQ| ZQ exit current file always
342 |[| [{char} square bracket command (see below)
343 \ not used
344 |]| ]{char} square bracket command (see below)
345 |^| ^ 1 cursor to the first CHAR of the line
346 |_| _ 1 cursor to the first CHAR N - 1 lines lower
347 |`| `{a-zA-Z0-9} 1 cursor to the mark {a-zA-Z0-9}
348 |`(| `( 1 cursor to the start of the current sentence
349 |`)| `) 1 cursor to the end of the current sentence
350 |`<| `< 1 cursor to the start of the highlighted area
351 |`>| `> 1 cursor to the end of the highlighted area
352 |`[| `[ 1 cursor to the start of last operated text
353 or start of putted text
354 |`]| `] 1 cursor to the end of last operated text or
355 end of putted text
356 |``| `` 1 cursor to the position before latest jump
357 |`{| `{ 1 cursor to the start of the current paragraph
358 |`}| `} 1 cursor to the end of the current paragraph
359 |a| a 2 append text after the cursor N times
360 |b| b 1 cursor N words backward
361 |c| ["x]c{motion} 2 delete Nmove text [into buffer x] and start
362 insert
363 |cc| ["x]cc 2 delete N lines [into buffer x] and start
364 insert
365 |d| ["x]d{motion} 2 delete Nmove text [into buffer x]
366 |dd| ["x]dd 2 delete N lines [into buffer x]
367 |do| do 2 same as ":diffget"
368 |dp| dp 2 same as ":diffput"
369 |e| e 1 cursor forward to the end of word N
370 |f| f{char} 1 cursor to Nth occurrence of {char} to the
371 right
372 |g| g{char} extended commands, see below
373 |h| h 1 cursor N chars to the left
374 |i| i 2 insert text before the cursor N times
375 |j| j 1 cursor N lines downward
376 |k| k 1 cursor N lines upward
377 |l| l 1 cursor N chars to the right
378 |m| m{A-Za-z} set mark {A-Za-z} at cursor position
379 |n| n 1 repeat the latest '/' or '?' N times
380 |o| o 2 begin a new line below the cursor and
381 insert text, repeat N times
382 |p| ["x]p 2 put the text [from register x] after the
383 cursor N times
384 |q| q{0-9a-zA-Z"} record typed characters into named register
385 {0-9a-zA-Z"} (uppercase to append)
386 |q| q (while recording) stops recording
387 |q:| q: edit : command-line in command-line window
388 |q/| q/ edit / command-line in command-line window
389 |q?| q? edit ? command-line in command-line window
390 |r| r{char} 2 replace N chars with {char}
391 |s| ["x]s 2 (substitute) delete N characters [into
392 buffer x] and start insert
393 |t| t{char} 1 cursor till before Nth occurrence of {char}
394 to the right
395 |u| u 2 undo changes
396 |v| v start characterwise Visual mode
397 |w| w 1 cursor N words forward
398 |x| ["x]x 2 delete N characters under and after the
399 cursor [into buffer x]
400 |y| ["x]y{motion} yank Nmove text [into buffer x]
401 |yy| ["x]yy yank N lines [into buffer x]
402 |z| z{char} commands starting with 'z', see below
403 |{| { 1 cursor N paragraphs backward
404 |bar| | 1 cursor to column N
405 |}| } 1 cursor N paragraphs forward
406 |~| ~ 2 'tildeop' off: switch case of N characters
407 under cursor and move the cursor N
408 characters to the right
409 |~| ~{motion} 'tildeop' on: switch case of Nmove text
410 |<C-End>| <C-End> 1 same as "G"
411 |<C-Home>| <C-Home> 1 same as "gg"
412 |<C-Left>| <C-Left> 1 same as "b"
413 |<C-LeftMouse>| <C-LeftMouse> ":ta" to the keyword at the mouse click
414 |<C-Right>| <C-Right> 1 same as "w"
415 |<C-RightMouse>| <C-RightMouse> same as "CTRL-T"
416 |<Del>| ["x]<Del> 2 same as "x"
417 |N<Del>| {count}<Del> remove the last digit from {count}
418 |<Down>| <Down> 1 same as "j"
419 |<End>| <End> 1 same as "$"
420 |<F1>| <F1> same as <Help>
421 |<Help>| <Help> open a help window
422 |<Home>| <Home> 1 same as "0"
423 |<Insert>| <Insert> 2 same as "i"
424 |<Left>| <Left> 1 same as "h"
425 |<LeftMouse>| <LeftMouse> 1 move cursor to the mouse click position
426 |<MiddleMouse>| <MiddleMouse> 2 same as "P" at the mouse click position
427 |<PageDown>| <PageDown> same as CTRL-F
428 |<PageUp>| <PageUp> same as CTRL-B
429 |<Right>| <Right> 1 same as "l"
430 |<RightMouse>| <RightMouse> start Visual mode, move cursor to the mouse
431 click position
432 |<S-Down>| <S-Down> 1 same as CTRL-F
433 |<S-Left>| <S-Left> 1 same as "b"
434 |<S-LeftMouse>| <S-LeftMouse> same as "*" at the mouse click position
435 |<S-Right>| <S-Right> 1 same as "w"
436 |<S-RightMouse>| <S-RightMouse> same as "#" at the mouse click position
437 |<S-Up>| <S-Up> 1 same as CTRL-B
438 |<Undo>| <Undo> 2 same as "u"
439 |<Up>| <Up> 1 same as "k"
440 |<MouseDown>| <MouseDown> scroll three lines downwards
441 |<S-MouseDown>| <S-MouseDown> scroll a full page downwards
442 |<MouseUp>| <MouseUp> scroll three lines upwards
443 |<S-MouseUp>| <S-MouseUp> scroll a full page upwards
444
445 ==============================================================================
446 2.1 Text objects *objects*
447
448 These can be used after an operator or in Visual mode to select an object.
449
450 tag command action in Normal mode ~
451 ------------------------------------------------------------------------------
452 |v_a(| a( same as ab
453 |v_a)| a) same as ab
454 |v_a<| a< "a <>" from '<' to the matching '>'
455 |v_a>| a> same as a<
456 |v_aB| aB "a Block" from "[{" to "]}" (with brackets)
457 |v_aW| aW "a WORD" (with white space)
458 |v_a[| a[ "a []" from '[' to the matching ']'
459 |v_a]| a] same as a[
460 |v_ab| ab "a block" from "[(" to "])" (with braces)
461 |v_ap| ap "a paragraph" (with white space)
462 |v_as| as "a sentence" (with white space)
463 |v_aw| aw "a word" (with white space)
464 |v_a{| a{ same as aB
465 |v_a}| a} same as aB
466 |v_i(| i( same as ib
467 |v_i)| i) same as ib
468 |v_i<| i< "inner <>" from '<' to the matching '>'
469 |v_i>| i> same as i<
470 |v_iB| iB "inner Block" from "[{" and "]}"
471 |v_iW| iW "inner WORD"
472 |v_i[| i[ "inner []" from '[' to the matching ']'
473 |v_i]| i] same as i[
474 |v_ib| ib "inner block" from "[(" to "])"
475 |v_ip| ip "inner paragraph"
476 |v_is| is "inner sentence"
477 |v_iw| iw "inner word"
478 |v_i{| i{ same as iB
479 |v_i}| i} same as iB
480
481 ==============================================================================
482 2.2 Window commands *CTRL-W*
483
484 tag command action in Normal mode ~
485 ------------------------------------------------------------------------------
486 |CTRL-W_CTRL-B| CTRL-W CTRL-B same as "CTRL-W b"
487 |CTRL-W_CTRL-C| CTRL-W CTRL-C same as "CTRL-W c"
488 |CTRL-W_CTRL-D| CTRL-W CTRL-D same as "CTRL-W d"
489 |CTRL-W_CTRL-F| CTRL-W CTRL-F same as "CTRL-W f"
490 CTRL-W CTRL-G same as "CTRL-W g .."
491 |CTRL-W_CTRL-H| CTRL-W CTRL-H same as "CTRL-W h"
492 |CTRL-W_CTRL-I| CTRL-W CTRL-I same as "CTRL-W i"
493 |CTRL-W_CTRL-J| CTRL-W CTRL-J same as "CTRL-W j"
494 |CTRL-W_CTRL-K| CTRL-W CTRL-K same as "CTRL-W k"
495 |CTRL-W_CTRL-L| CTRL-W CTRL-L same as "CTRL-W l"
496 |CTRL-W_CTRL-N| CTRL-W CTRL-N same as "CTRL-W n"
497 |CTRL-W_CTRL-O| CTRL-W CTRL-O same as "CTRL-W o"
498 |CTRL-W_CTRL-P| CTRL-W CTRL-P same as "CTRL-W p"
499 |CTRL-W_CTRL-Q| CTRL-W CTRL-Q same as "CTRL-W q"
500 |CTRL-W_CTRL-R| CTRL-W CTRL-R same as "CTRL-W r"
501 |CTRL-W_CTRL-S| CTRL-W CTRL-S same as "CTRL-W s"
502 |CTRL-W_CTRL-T| CTRL-W CTRL-T same as "CTRL-W t"
503 |CTRL-W_CTRL-V| CTRL-W CTRL-V same as "CTRL-W v"
504 |CTRL-W_CTRL-W| CTRL-W CTRL-W same as "CTRL-W w"
505 |CTRL-W_CTRL-X| CTRL-W CTRL-X same as "CTRL-W x"
506 |CTRL-W_CTRL-Z| CTRL-W CTRL-Z same as "CTRL-W z"
507 |CTRL-W_CTRL-]| CTRL-W CTRL-] same as "CTRL-W ]"
508 |CTRL-W_CTRL-^| CTRL-W CTRL-^ same as "CTRL-W ^"
509 |CTRL-W_CTRL-_| CTRL-W CTRL-_ same as "CTRL-W _"
510 |CTRL-W_+| CTRL-W + increase current window height N lines
511 |CTRL-W_-| CTRL-W - decrease current window height N lines
512 |CTRL-W_<| CTRL-W < decrease current window width N columns
513 |CTRL-W_=| CTRL-W = make all windows the same height
514 |CTRL-W_>| CTRL-W > increase current window width N columns
515 |CTRL-W_H| CTRL-W H move current window to the far left
516 |CTRL-W_J| CTRL-W J move current window to the very bottom
517 |CTRL-W_K| CTRL-W K move current window to the very top
518 |CTRL-W_L| CTRL-W L move current window to the far right
519 |CTRL-W_P| CTRL-W P go to preview window
520 |CTRL-W_R| CTRL-W R rotate windows upwards N times
521 |CTRL-W_S| CTRL-W S same as "CTRL-W s"
522 |CTRL-W_W| CTRL-W W go to N previous window (wrap around)
523 |CTRL-W_]| CTRL-W ] split window and jump to tag under cursor
524 |CTRL-W_^| CTRL-W ^ split current window and edit alternate
525 file N
526 |CTRL-W__| CTRL-W _ set current window height to N (default:
527 very high)
528 |CTRL-W_b| CTRL-W b go to bottom window
529 |CTRL-W_c| CTRL-W c close current window (like |:close|)
530 |CTRL-W_d| CTRL-W d split window and jump to definition under
531 the cursor
532 |CTRL-W_f| CTRL-W f split window and edit file name under the
533 cursor
534 |CTRL-W_g_CTRL-]| CTRL-W g CTRL-] split window and do |:tjump| to tag under
535 cursor
536 |CTRL-W_g]| CTRL-W g ] split window and do |:tselect| for tag
537 under cursor
538 |CTRL-W_g}| CTRL-W g } do a |:ptjump| to the tag under the cursor
539 |CTRL-W_h| CTRL-W h go to Nth left window (stop at first window)
540 |CTRL-W_i| CTRL-W i split window and jump to declaration of
541 identifier under the cursor
542 |CTRL-W_j| CTRL-W j go N windows down (stop at last window)
543 |CTRL-W_k| CTRL-W k go N windows up (stop at first window)
544 |CTRL-W_l| CTRL-W l go to Nth right window (stop at last window)
545 |CTRL-W_n| CTRL-W n open new window, N lines high
546 |CTRL-W_o| CTRL-W o close all but current window (like |:only|)
547 |CTRL-W_p| CTRL-W p go to previous (last accessed) window
548 |CTRL-W_q| CTRL-W q quit current window (like |:quit|)
549 |CTRL-W_r| CTRL-W r rotate windows downwards N times
550 |CTRL-W_s| CTRL-W s split current window in two parts, new
551 window N lines high
552 |CTRL-W_t| CTRL-W t go to top window
553 |CTRL-W_v| CTRL-W v split current window vertically, new window
554 N lines wide
555 |CTRL-W_w| CTRL-W w go to N next window (wrap around)
556 |CTRL-W_x| CTRL-W x exchange current window with window N
557 (default: next window)
558 |CTRL-W_z| CTRL-W z close preview window
559 |CTRL-W_bar| CTRL-W | set window width to N columns
560 |CTRL-W_}| CTRL-W } show tag under cursor in preview window
561 |CTRL-W_<Down>| CTRL-W <Down> same as "CTRL-W j"
562 |CTRL-W_<Up>| CTRL-W <Up> same as "CTRL-W k"
563 |CTRL-W_<Left>| CTRL-W <Left> same as "CTRL-W h"
564 |CTRL-W_<Right>| CTRL-W <Right> same as "CTRL-W l"
565
566 ==============================================================================
567 2.3 Square bracket commands *[* *]*
568
569 tag char note action in Normal mode ~
570 ------------------------------------------------------------------------------
571 |[_CTRL-D| [ CTRL-D jump to first #define found in current and
572 included files matching the word under the
573 cursor, start searching at beginning of
574 current file
575 |[_CTRL-I| [ CTRL-I jump to first line in current and included
576 files that contains the word under the
577 cursor, start searching at beginning of
578 current file
579 |[#| [# 1 cursor to N previous unmatched #if, #else
580 or #ifdef
581 |['| [' 1 cursor to previous lowercase mark, on first
582 non-blank
583 |[(| [( 1 cursor N times back to unmatched '('
584 |[star| [* 1 same as "[/"
585 |[`| [` 1 cursor to previous lowercase mark
586 |[/| [/ 1 cursor to N previous start of a C comment
587 |[D| [D list all defines found in current and
588 included files matching the word under the
589 cursor, start searching at beginning of
590 current file
591 |[I| [I list all lines found in current and
592 included files that contain the word under
593 the cursor, start searching at beginning of
594 current file
595 |[P| [P 2 same as "[p"
596 |[[| [[ 1 cursor N sections backward
597 |[]| [] 1 cursor N SECTIONS backward
598 |[c| [c 1 cursor N times backwards to start of change
599 |[d| [d show first #define found in current and
600 included files matching the word under the
601 cursor, start searching at beginning of
602 current file
603 |[f| [f same as "gf"
604 |[i| [i show first line found in current and
605 included files that contains the word under
606 the cursor, start searching at beginning of
607 current file
608 |[p| [p 2 like "P", but adjust indent to current line
609 |[m| [m 1 cursor N times back to start of member
610 function
611 |[z| [z 1 move to start of open fold
612 |[{| [{ 1 cursor N times back to unmatched '{'
613 |[<MiddleMouse> [<MiddleMouse> 2 same as "[p"
614
615 |]_CTRL-D| ] CTRL-D jump to first #define found in current and
616 included files matching the word under the
617 cursor, start searching at cursor position
618 |]_CTRL-I| ] CTRL-I jump to first line in current and included
619 files that contains the word under the
620 cursor, start searching at cursor position
621 |]#| ]# 1 cursor to N next unmatched #endif or #else
622 |]'| ]' 1 cursor to next lowercase mark, on first
623 non-blank
624 |])| ]) 1 cursor N times forward to unmatched ')'
625 |]star| ]* 1 same as "]/"
626 |]`| ]` 1 cursor to next lowercase mark
627 |]/| ]/ 1 cursor to N next end of a C comment
628 |]D| ]D list all #defines found in current and
629 included files matching the word under the
630 cursor, start searching at cursor position
631 |]I| ]I list all lines found in current and
632 included files that contain the word under
633 the cursor, start searching at cursor
634 position
635 |]P| ]P 2 same as "[p"
636 |][| ][ 1 cursor N SECTIONS forward
637 |]]| ]] 1 cursor N sections forward
638 |]c| ]c 1 cursor N times forward to start of change
639 |]d| ]d show first #define found in current and
640 included files matching the word under the
641 cursor, start searching at cursor position
642 |]f| ]f same as "gf"
643 |]i| ]i show first line found in current and
644 included files that contains the word under
645 the cursor, start searching at cursor
646 position
647 |]p| ]p 2 like "p", but adjust indent to current line
648 |]m| ]m 1 cursor N times forward to end of member
649 function
650 |]z| ]z 1 move to end of open fold
651 |]}| ]} 1 cursor N times forward to unmatched '}'
652 |]<MiddleMouse> ]<MiddleMouse> 2 same as "]p"
653
654 ==============================================================================
655 2.4 Commands starting with 'g' *g*
656
657 tag char note action in Normal mode ~
658 ------------------------------------------------------------------------------
659 |g_CTRL-A| g CTRL-A only when compiled with MEM_PROFILE
660 defined: dump a memory profile
661 |g_CTRL-G| g CTRL-G show information about current cursor
662 position
663 |g_CTRL-H| g CTRL-H start Select block mode
664 |g_CTRL-]| g CTRL-] |:tjump| to the tag under the cursor
665 |g#| g# 1 like "#", but without using "\<" and "\>"
666 |g$| g$ 1 when 'wrap' off go to rightmost character of
667 the current line that is on the screen;
668 when 'wrap' on go to the rightmost character
669 of the current screen line
670 |g&| g& 2 repeat last ":s" on all lines
671 |g'| g'{mark} 1 like |'| but without changing the jumplist
672 |g`| g`{mark} 1 like |`| but without changing the jumplist
673 |gstar| g* 1 like "*", but without using "\<" and "\>"
674 |g0| g0 1 when 'wrap' off go to leftmost character of
675 the current line that is on the screen;
676 when 'wrap' on go to the leftmost character
677 of the current screen line
678 |g8| g8 print hex value of bytes used in UTF-8
679 character under the cursor
680 |g?| g? 2 Rot13 encoding operator
681 |g?g?| g?? 2 Rot13 encode current line
682 |g?g?| g?g? 2 Rot13 encode current line
683 |gD| gD 1 go to definition of word under the cursor
684 in current file
685 |gE| gE 1 go backwards to the end of the previous
686 WORD
687 |gH| gH start Select line mode
688 |gI| gI 2 like "I", but always start in column 1
689 |gJ| gJ 2 join lines without inserting space
690 |gP| ["x]gP 2 put the text [from register x] before the
691 cursor N times, leave the cursor after it
692 |gR| gR 2 enter Virtual Replace mode
693 |gU| gU{motion} 2 make Nmove text uppercase
694 |gV| gV don't reselect the previous Visual area
695 when executing a mapping or menu in Select
696 mode
697 |g]| g] :tselect on the tag under the cursor
698 |g^| g^ 1 when 'wrap' off go to leftmost non-white
699 character of the current line that is on
700 the screen; when 'wrap' on go to the
701 leftmost non-white character of the current
702 screen line
703 |ga| ga print ascii value of character under the
704 cursor
705 |gd| gd 1 go to definition of word under the cursor
706 in current function
707 |ge| ge 1 go backwards to the end of the previous
708 word
709 |gf| gf start editing the file whose name is under
710 the cursor
711 |gg| gg 1 cursor to line N, default first line
712 |gh| gh start Select mode
713 |gi| gi 2 like "i", but first move to the |'^| mark
714 |gj| gj 1 like "j", but when 'wrap' on go N screen
715 lines down
716 |gk| gk 1 like "k", but when 'wrap' on go N screen
717 lines up
718 |gm| gm 1 go to character at middle of the screenline
719 |go| go 1 cursor to byte N in the buffer
720 |gp| ["x]gp 2 put the text [from register x] after the
721 cursor N times, leave the cursor after it
722 |gq| gq{motion} 2 format Nmove text
723 |gr| gr{char} 2 virtual replace N chars with {char}
724 |gs| gs go to sleep for N seconds (default 1)
725 |gu| gu{motion} 2 make Nmove text lowercase
726 |gv| gv reselect the previous Visual area
727 |gw| gw{motion} 2 format Nmove text and keep cursor
728 |g~| g~{motion} 2 swap case for Nmove text
729 |g<Down>| g<Down> 1 same as "gj"
730 |g<End>| g<End> 1 same as "g$"
731 |g<Home>| g<Home> 1 same as "g0"
732 |g<LeftMouse>| g<LeftMouse> same as <C-LeftMouse>
733 g<MiddleMouse> same as <C-MiddleMouse>
734 |g<RightMouse>| g<RightMouse> same as <C-RightMouse>
735 |g<Up>| g<Up> 1 same as "gk"
736
737 ==============================================================================
738 2.5 Commands starting with 'z' *z*
739
740 tag char note action in Normal mode ~
741 ------------------------------------------------------------------------------
742 |z<CR>| z<CR> redraw, cursor line to top of window,
743 cursor on first non-blank
744 |zN<CR>| z{height}<CR> redraw, make window {height} lines high
745 |z+| z+ cursor on line N (default line below
746 window), otherwise like "z<CR>"
747 |z-| z- redraw, cursor line at bottom of window,
748 cursor on first non-blank
749 |z.| z. redraw, cursor line to center of window,
750 cursor on first non-blank
751 |zA| zA open a closed fold or close an open fold
752 recursively
753 |zC| zC close folds recursively
754 |zD| zD delete folds recursively
755 |zE| zE eliminate all folds
756 |zF| zF create a fold for N lines
757 |zM| zM set 'foldlevel' to zero
758 |zN| zN set 'foldenable'
759 |zO| zO open folds recursively
760 |zR| zR set 'foldlevel' to the deepest fold
761 |zX| zX re-apply 'foldlevel'
762 |z^| z^ cursor on line N (default line above
763 window), otherwise like "z-"
764 |za| za open a closed fold, close an open fold
765 |zb| zb redraw, cursor line at bottom of window
766 |zc| zc close a fold
767 |zd| zd delete a fold
768 |ze| ze when 'wrap' off scroll horizontally to
769 position the cursor at the end (right side)
770 of the screen
771 |zf| zf{motion} create a fold for Nmove text
772 |zh| zh when 'wrap' off scroll screen N characters
773 to the right
774 |zi| zi toggle 'foldenable'
775 |zj| zj 1 move to the start of the next fold
776 |zk| zk 1 move to the end of the previous fold
777 |zl| zl when 'wrap' off scroll screen N characters
778 to the left
779 |zm| zm subtract one from 'foldlevel'
780 |zn| zn reset 'foldenable'
781 |zo| zo open fold
782 |zr| zr add one to 'foldlevel'
783 |zs| zs when 'wrap' off scroll horizontally to
784 position the cursor at the start (left
785 side) of the screen
786 |zt| zt redraw, cursor line at top of window
787 |zv| zv open enough folds to view the cursor line
788 |zx| zx re-apply 'foldlevel' and do "zv"
789 |zz| zz redraw, cursor line at center of window
790 |z<Left>| z<Left> same as "zh"
791 |z<Right>| z<Right> same as "zl"
792
793 ==============================================================================
794 3. Visual mode *visual-index*
795
796 Most commands in Visual mode are the same as in Normal mode. The ones listed
797 here are those that are different.
798
799 tag command note action in Visual mode ~
800 ------------------------------------------------------------------------------
801 |v_CTRL-\_CTRL-N| CTRL-\ CTRL-N stop Visual mode
802 |v_CTRL-\_CTRL-G| CTRL-\ CTRL-G go to mode specified with 'insertmode'
803 |v_CTRL-G| CTRL-G toggle between Visual mode and Select mode
804 |v_<BS>| <BS> 2 Select mode: delete highlighted area
805 |v_CTRL-H| CTRL-H 2 same as <BS>
806 |v_CTRL-O| CTRL-O switch from Select to Visual mode for one
807 command
808 |v_CTRL-V| CTRL-V make Visual mode blockwise or stop Visual
809 mode
810 |v_CTRL-]| CTRL-] jump to highlighted tag
811 |v_!| !{filter} 2 filter the highlighted lines through the
812 external command {filter}
813 |v_:| : start a command-line with the highlighted
814 lines as a range
815 |v_<| < 2 shift the highlighted lines one
816 'shiftwidth' left
817 |v_=| = 2 filter the highlighted lines through the
818 external program given with the 'equalprg'
819 option
820 |v_>| > 2 shift the highlighted lines one
821 'shiftwidth' right
822 |v_b_A| A 2 block mode: append same text in all lines,
823 after the highlighted area
824 |v_C| C 2 delete the highlighted lines and start
825 insert
826 |v_D| D 2 delete the highlighted lines
827 |v_b_I| I 2 block mode: insert same text in all lines,
828 before the highlighted area
829 |v_J| J 2 join the highlighted lines
830 |v_K| K run 'keywordprg' on the highlighted area
831 |v_O| O Move horizontally to other corner of area.
832 Q does not start Ex mode
833 |v_R| R 2 delete the highlighted lines and start
834 insert
835 |v_S| S 2 delete the highlighted lines and start
836 insert
837 |v_U| U 2 make highlighted area uppercase
838 |v_V| V make Visual mode linewise or stop Visual
839 mode
840 |v_X| X 2 delete the highlighted lines
841 |v_Y| Y yank the highlighted lines
842 |v_a(| a( same as ab
843 |v_a)| a) same as ab
844 |v_a<| a< extend highlighted area with a <> block
845 |v_a>| a> same as a<
846 |v_aB| aB extend highlighted area with a {} block
847 |v_aW| aW extend highlighted area with "a WORD"
848 |v_a[| a[ extend highlighted area with a [] block
849 |v_a]| a] same as a[
850 |v_ab| ab extend highlighted area with a () block
851 |v_ap| ap extend highlighted area with a paragraph
852 |v_as| as extend highlighted area with a sentence
853 |v_aw| aw extend highlighted area with "a word"
854 |v_a{| a{ same as aB
855 |v_a}| a} same as aB
856 |v_c| c 2 delete highlighted area and start insert
857 |v_d| d 2 delete highlighted area
858 |v_gJ| gJ 2 join the highlighted lines without
859 inserting spaces
860 |v_gq| gq 2 format the highlighted lines
861 |v_gv| gv exchange current and previous highlighted
862 area
863 |v_i(| i( same as ib
864 |v_i)| i) same as ib
865 |v_i<| i< extend highlighted area with inner <> block
866 |v_i>| i> same as i<
867 |v_iB| iB extend highlighted area with inner {} block
868 |v_iW| iW extend highlighted area with "inner WORD"
869 |v_i[| i[ extend highlighted area with inner [] block
870 |v_i]| i] same as i[
871 |v_ib| ib extend highlighted area with inner () block
872 |v_ip| ip extend highlighted area with inner paragraph
873 |v_is| is extend highlighted area with inner sentence
874 |v_iw| iw extend highlighted area with "inner word"
875 |v_i{| i{ same as iB
876 |v_i}| i} same as iB
877 |v_o| o move cursor to other corner of area
878 |v_r| r 2 delete highlighted area and start insert
879 |v_s| s 2 delete highlighted area and start insert
880 |v_u| u 2 make highlighted area lowercase
881 |v_v| v make Visual mode characterwise or stop
882 Visual mode
883 |v_x| x 2 delete the highlighted area
884 |v_y| y yank the highlighted area
885 |v_~| ~ 2 swap case for the highlighted area
886
887 ==============================================================================
888 4. Command-line editing *ex-edit-index*
889
890 Get to the command-line with the ':', '!', '/' or '?' commands.
891 Normal characters are inserted at the current cursor position.
892 "Completion" below refers to context-sensitive completion. It will complete
893 file names, tags, commands etc. as appropriate.
894
895 CTRL-@ not used
896 |c_CTRL-A| CTRL-A do completion on the pattern in front of the
897 cursor and insert all matches
898 |c_CTRL-B| CTRL-B cursor to begin of command-line
899 |c_CTRL-C| CTRL-C same as <ESC>
900 |c_CTRL-D| CTRL-D list completions that match the pattern in
901 front of the cursor
902 |c_CTRL-E| CTRL-E cursor to end of command-line
903 |'cedit'| CTRL-F default value for 'cedit': opens the
904 command-line window; otherwise not used
905 CTRL-G not used
906 |c_<BS>| <BS> delete the character in front of the cursor
907 |c_digraph| {char1} <BS> {char2}
908 enter digraph when 'digraph' is on
909 |c_CTRL-H| CTRL-H same as <BS>
910 |c_<Tab>| <Tab> if 'wildchar' is <Tab>: Do completion on
911 the pattern in front of the cursor
912 |c_<S-Tab>| <S-Tab> same as CTRL-P
913 |c_wildchar| 'wildchar' Do completion on the pattern in front of the
914 cursor (default: <Tab>)
915 |c_CTRL-I| CTRL-I same as <Tab>
916 |c_<NL>| <NL> same as <CR>
917 |c_CTRL-J| CTRL-J same as <CR>
918 |c_CTRL-K| CTRL-K {char1} {char2}
919 enter digraph
920 |c_CTRL-L| CTRL-L do completion on the pattern in front of the
921 cursor and insert the longest common part
922 |c_<CR>| <CR> execute entered command
923 |c_<CR>| CTRL-M same as <CR>
924 |c_CTRL-N| CTRL-N after using 'wildchar' with multiple matches:
925 go to next match, otherwise: same as <Down>
926 CTRL-O not used
927 |c_CTRL-P| CTRL-P after using 'wildchar' with multiple matches:
928 go to previous match, otherwise: same as <Up>
929 |c_CTRL-Q| CTRL-Q same as CTRL-V, unless it's used for terminal
930 control flow
931 |c_CTRL-R| CTRL-R {0-9a-z"%#*:= CTRL-F CTRL-P CTRL-W CTRL-A}
932 insert the contents of a register or object
933 under the cursor as if typed
934 |c_CTRL-R_CTRL-R| CTRL-R CTRL-R {0-9a-z"%#*:= CTRL-F CTRL-P CTRL-W CTRL-A}
935 insert the contents of a register or object
936 under the cursor literally
937 CTRL-S (used for terminal control flow)
938 CTRL-T not used
939 |c_CTRL-U| CTRL-U remove all characters
940 |c_CTRL-V| CTRL-V insert next non-digit literally, insert three
941 digit decimal number as a single byte.
942 |c_CTRL-W| CTRL-W delete the word in front of the cursor
943 CTRL-X not used (reserved for completion)
944 CTRL-Y copy (yank) modeless selection
945 CTRL-Z not used (reserved for suspend)
946 |c_<Esc>| <Esc> abandon command-line without executing it
947 |c_<Esc>| CTRL-[ same as <Esc>
948 |c_CTRL-\_CTRL-N| CTRL-\ CTRL-N go to Normal mode, abandon command-line
949 |c_CTRL-\_CTRL-G| CTRL-\ CTRL-G go to mode specified with 'insertmode',
950 abandon command-line
951 CTRL-\ a - d reserved for extensions
952 |c_CTRL-\_e| CTRL-\ e {expr} replace the command line with the result of
953 {expr}
954 CTRL-\ f - z reserved for extensions
955 CTRL-\ others not used
956 CTRL-] not used
957 |c_CTRL-^| CTRL-^ toggle use of |:lmap| mappings
958 |c_CTRL-_| CTRL-_ when 'allowrevins' set: change language
959 (Hebrew, Farsi)
960 |c_<Del>| <Del> delete the character under the cursor
961
962 |c_<Left>| <Left> cursor left
963 |c_<S-Left>| <S-Left> cursor one word left
964 |c_<C-Left>| <C-Left> cursor one word left
965 |c_<Right>| <Right> cursor right
966 |c_<S-Right>| <S-Right> cursor one word right
967 |c_<C-Right>| <C-Right> cursor one word right
968 |c_<Up>| <Up> recall previous command-line from history that
969 matches pattern in front of the cursor
970 |c_<S-Up>| <S-Up> recall previous command-line from history
971 |c_<Down>| <Down> recall next command-line from history that
972 matches pattern in front of the cursor
973 |c_<S-Down>| <S-Down> recall next command-line from history
974 |c_<Home>| <Home> cursor to start of command-line
975 |c_<End>| <End> cursor to end of command-line
976 |c_<PageDown>| <PageDown> same as <S-Down>
977 |c_<PageUp>| <PageUp> same as <S-Up>
978 |c_<Insert>| <Insert> toggle insert/overstrike mode
979 |c_<LeftMouse>| <LeftMouse> cursor at mouse click
980
981 You found it, Arthur! *holy-grail*
982
983 ==============================================================================
984 5. EX commands *ex-cmd-index* *:index*
985
986 This is a brief but complete listing of all the ":" commands, without
987 mentioning any arguments. The optional part of the command name is inside [].
988 The commands are sorted on the non-optional part of their name.
989
990 |:!| :! filter lines or execute an external command
991 |:!!| :!! repeat last ":!" command
992 |:#| :# same as ":number"
993 |:&| :& repeat last ":substitute"
994 |:star| :* execute contents of a register
995 |:<| :< shift lines one 'shiftwidth' left
996 |:=| := print the cursor line number
997 |:>| :> shift lines one 'shiftwidth' right
998 |:@| :@ execute contents of a register
999 |:@@| :@@ repeat the previous ":@"
1000 |:Next| :N[ext] go to previous file in the argument list
1001 |:Print| :P[rint] print lines
1002 |:X| :X ask for encryption key
1003 |:append| :a[ppend] append text
1004 |:abbreviate| :ab[breviate] enter abbreviation
1005 |:abclear| :abc[lear] remove all abbreviations
1006 |:aboveleft| :abo[veleft] make split window appear left or above
1007 |:all| :al[l] open a window for each file in the argument
1008 list
1009 |:amenu| :am[enu] enter new menu item for all modes
1010 |:anoremenu| :an[oremenu] enter a new menu for all modes that will not
1011 be remapped
1012 |:args| :ar[gs] print the argument list
1013 |:argadd| :arga[dd] add items to the argument list
1014 |:argdelete| :argd[elete] delete items from the argument list
1015 |:argedit| :arge[dit] add item to the argument list and edit it
1016 |:argdo| :argdo do a command on all items in the argument list
1017 |:argglobal| :argg[lobal] define the global argument list
1018 |:arglocal| :argl[ocal] define a local argument list
1019 |:argument| :argu[ment] go to specific file in the argument list
1020 |:ascii| :as[cii] print ascii value of character under the cursor
1021 |:autocmd| :au[tocmd] enter or show autocommands
1022 |:augroup| :aug[roup] select the autocommand group to use
1023 |:aunmenu| :aun[menu] remove menu for all modes
1024 |:buffer| :b[uffer] go to specific buffer in the buffer list
1025 |:bNext| :bN[ext] go to previous buffer in the buffer list
1026 |:ball| :ba[ll] open a window for each buffer in the buffer list
1027 |:badd| :bad[d] add buffer to the buffer list
1028 |:bdelete| :bd[elete] remove a buffer from the buffer list
1029 |:behave| :be[have] set mouse and selection behavior
1030 |:belowright| :bel[owright] make split window appear right or below
1031 |:bfirst| :bf[irst] go to first buffer in the buffer list
1032 |:blast| :bl[ast] go to last buffer in the buffer list
1033 |:bmodified| :bm[odified] go to next buffer in the buffer list that has
1034 been modified
1035 |:bnext| :bn[ext] go to next buffer in the buffer list
1036 |:botright| :bo[tright] make split window appear at bottom or far right
1037 |:bprevious| :bp[revious] go to previous buffer in the buffer list
1038 |:brewind| :br[ewind] go to first buffer in the buffer list
1039 |:break| :brea[k] break out of while loop
1040 |:breakadd| :breaka[dd] add a debugger breakpoint
1041 |:breakdel| :breakd[el] delete a debugger breakpoint
1042 |:breaklist| :breakl[ist] list debugger breakpoints
1043 |:browse| :bro[wse] use file selection dialog
1044 |:bufdo| :bufdo execute command in each listed buffer
1045 |:buffers| :buffers list all files in the buffer list
1046 |:bunload| :bun[load] unload a specific buffer
1047 |:bwipeout| :bw[ipeout] really delete a buffer
1048 |:change| :c[hange] replace a line or series of lines
1049 |:cNext| :cN[ext] go to previous error
1050 |:cNfile| :cNf[ile] go to last error in previous file
1051 |:cabbrev| :ca[bbrev] like ":abbreviate" but for Command-line mode
1052 |:cabclear| :cabc[lear] clear all abbreviations for Command-line mode
1053 |:call| :cal[l] call a function
1054 |:catch| :cat[ch] part of a :try command
1055 |:cc| :cc go to specific error
1056 |:cclose| :ccl[ose] close quickfix window
1057 |:cd| :cd change directory
1058 |:center| :ce[nter] format lines at the center
1059 |:cfile| :cf[ile] read file with error messages and jump to first
1060 |:cfirst| :cfir[st] go to the specified error, default first one
1061 |:cgetfile| :cg[etfile] read file with error messages
1062 |:changes| :cha[nges] print the change list
1063 |:chdir| :chd[ir] change directory
1064 |:checkpath| :che[ckpath] list included files
1065 |:checktime| :checkt[ime] check timestamp of loaded buffers
1066 |:clist| :cl[ist] list all errors
1067 |:clast| :cla[st] go to the specified error, default last one
1068 |:close| :clo[se] close current window
1069 |:cmap| :cm[ap] like ":map" but for Command-line mode
1070 |:cmapclear| :cmapc[lear] clear all mappings for Command-line mode
1071 |:cmenu| :cme[nu] add menu for Command-line mode
1072 |:cnext| :cn[ext] go to next error
1073 |:cnewer| :cnew[er] go to newer error list
1074 |:cnfile| :cnf[ile] go to first error in next file
1075 |:cnoremap| :cno[remap] like ":noremap" but for Command-line mode
1076 |:cnoreabbrev| :cnorea[bbrev] like ":noreabbrev" but for Command-line mode
1077 |:cnoremenu| :cnoreme[nu] like ":noremenu" but for Command-line mode
1078 |:copy| :co[py] copy lines
1079 |:colder| :col[der] go to older error list
1080 |:colorscheme| :colo[rscheme] load a specific color scheme
1081 |:command| :com[mand] create user-defined command
1082 |:comclear| :comc[lear] clear all user-defined commands
1083 |:compiler| :comp[iler] do settings for a specific compiler
1084 |:continue| :con[tinue] go back to :while
1085 |:confirm| :conf[irm] prompt user when confirmation required
1086 |:copen| :cope[n] open quickfix window
1087 |:cprevious| :cp[revious] go to previous error
1088 |:cpfile| :cpf[ile] go to last error in previous file
1089 |:cquit| :cq[uit] quit Vim with an error code
1090 |:crewind| :cr[ewind] go to the specified error, default first one
1091 |:cscope| :cs[cope] execute cscope command
1092 |:cstag| :cst[ag] use cscope to jump to a tag
1093 |:cunmap| :cu[nmap] like ":unmap" but for Command-line mode
1094 |:cunabbrev| :cuna[bbrev] like ":unabbrev" but for Command-line mode
1095 |:cunmenu| :cunme[nu] remove menu for Command-line mode
1096 |:cwindow| :cw[indow] open or close quickfix window
1097 |:delete| :d[elete] delete lines
1098 |:debug| :deb[ug] run a command in debugging mode
1099 |:debuggreedy| :debugg[reedy] read debug mode commands from normal input
1100 |:delcommand| :delc[ommand] delete user-defined command
1101 |:delfunction| :delf[unction] delete a user function
1102 |:diffupdate| :dif[fupdate] update 'diff' buffers
1103 |:diffget| :diffg[et] remove differences in current buffer
1104 |:diffpatch| :diffp[atch] apply a patch and show differences
1105 |:diffput| :diffpu[t] remove differences in other buffer
1106 |:diffsplit| :diffs[plit] show differences with another file
1107 |:diffthis| :diffthis make current window a diff window
1108 |:digraphs| :dig[raphs] show or enter digraphs
1109 |:display| :di[splay] display registers
1110 |:djump| :dj[ump] jump to #define
1111 |:dlist| :dl[ist] list #defines
1112 |:doautocmd| :do[autocmd] apply autocommands to current buffer
1113 |:doautoall| :doautoa[ll] apply autocommands for all loaded buffers
1114 |:drop| :dr[op] jump to window editing file or edit file in
1115 current window
1116 |:dsearch| :ds[earch] list one #define
1117 |:dsplit| :dsp[lit] split window and jump to #define
1118 |:edit| :e[dit] edit a file
1119 |:echo| :ec[ho] echoes the result of expressions
1120 |:echoerr| :echoe[rr] like :echo, show like an error and use history
1121 |:echohl| :echoh[l] set highlighting for echo commands
1122 |:echomsg| :echom[sg] same as :echo, put message in history
1123 |:echon| :echon same as :echo, but without <EOL>
1124 |:else| :el[se] part of an :if command
1125 |:elseif| :elsei[f] part of an :if command
1126 |:emenu| :em[enu] execute a menu by name
1127 |:endif| :en[dif] end previous :if
1128 |:endfunction| :endf[unction] end of a user function
1129 |:endtry| :endt[ry] end previous :try
1130 |:endwhile| :endw[hile] end previous :while
1131 |:enew| :ene[w] edit a new, unnamed buffer
1132 |:ex| :ex same as ":edit"
1133 |:execute| :exe[cute] execute result of expressions
1134 |:exit| :exi[t] same as ":xit"
1135 |:file| :f[ile] show or set the current file name
1136 |:files| :files list all files in the buffer list
1137 |:filetype| :filet[ype] switch file type detection on/off
1138 |:find| :fin[d] find file in 'path' and edit it
1139 |:finally| :fina[lly] part of a :try command
1140 |:finish| :fini[sh] quit sourcing a Vim script
1141 |:first| :fir[st] go to the first file in the argument list
1142 |:fixdel| :fix[del] set key code of <Del>
1143 |:fold| :fo[ld] create a fold
1144 |:foldclose| :foldc[lose] close folds
1145 |:folddoopen| :foldd[oopen] execute command on lines not in a closed fold
1146 |:folddoclosed| :folddoc[losed] execute command on lines in a closed fold
1147 |:foldopen| :foldo[pen] open folds
1148 |:function| :fu[nction] define a user function
1149 |:global| :g[lobal] execute commands for matching lines
1150 |:goto| :go[to] go to byte in the buffer
1151 |:grep| :gr[ep] run 'grepprg' and jump to first match
1152 |:grepadd| :grepa[dd] like grep, but append to current list
1153 |:gui| :gu[i] start the GUI
1154 |:gvim| :gv[im] start the GUI
1155 |:hardcopy| :ha[rdcopy] send text to the printer
1156 |:help| :h[elp] open a help window
1157 |:helpfind| :helpf[ind] dialog to open a help window
1158 |:helpgrep| :helpg[rep] like ":grep" but searches help files
1159 |:helptags| :helpt[ags] generate help tags for a directory
1160 |:highlight| :hi[ghlight] specify highlighting methods
1161 |:hide| :hid[e] hide current buffer for a command
1162 |:history| :his[tory] print a history list
1163 |:insert| :i[nsert] insert text
1164 |:iabbrev| :ia[bbrev] like ":abbrev" but for Insert mode
1165 |:iabclear| :iabc[lear] like ":abclear" but for Insert mode
1166 |:if| :if execute commands when condition met
1167 |:ijump| :ij[ump] jump to definition of identifier
1168 |:ilist| :il[ist] list lines where identifier matches
1169 |:imap| :im[ap] like ":map" but for Insert mode
1170 |:imapclear| :imapc[lear] like ":mapclear" but for Insert mode
1171 |:imenu| :ime[nu] add menu for Insert mode
1172 |:inoremap| :ino[remap] like ":noremap" but for Insert mode
1173 |:inoreabbrev| :inorea[bbrev] like ":noreabbrev" but for Insert mode
1174 |:inoremenu| :inoreme[nu] like ":noremenu" but for Insert mode
1175 |:intro| :int[ro] print the introductory message
1176 |:isearch| :is[earch] list one line where identifier matches
1177 |:isplit| :isp[lit] split window and jump to definition of
1178 identifier
1179 |:iunmap| :iu[nmap] like ":unmap" but for Insert mode
1180 |:iunabbrev| :iuna[bbrev] like ":unabbrev" but for Insert mode
1181 |:iunmenu| :iunme[nu] remove menu for Insert mode
1182 |:join| :j[oin] join lines
1183 |:jumps| :ju[mps] print the jump list
1184 |:k| :k set a mark
1185 |:keepmarks| :kee[pmarks] following command keeps marks where they are
1186 |:keepjumps| :keepj[jumps] following command keeps jumplist and marks
1187 |:list| :l[ist] print lines
1188 |:last| :la[st] go to the last file in the argument list
1189 |:language| :lan[guage] set the language (locale)
1190 |:lcd| :lc[d] change directory locally
1191 |:lchdir| :lch[dir] change directory locally
1192 |:left| :le[ft] left align lines
1193 |:leftabove| :lefta[bove] make split window appear left or above
1194 |:let| :let assign a value to a variable or option
1195 |:lmap| :lm[ap] like ":map!" but includes Lang-Arg mode
1196 |:lmapclear| :lmapc[lear] like ":mapclear!" but includes Lang-Arg mode
1197 |:lnoremap| :ln[oremap] like ":noremap!" but includes Lang-Arg mode
1198 |:loadkeymap| :loadk[eymap] load the following keymaps until EOF
1199 |:loadview| :lo[adview] load view for current window from a file
1200 |:lockmarks| :loc[kmarks] following command keeps marks where they are
1201 |:ls| :ls list all buffers
1202 |:lunmap| :lu[nmap] like ":unmap!" but includes Lang-Arg mode
1203 |:move| :m[ove] move lines
1204 |:mark| :ma[rk] set a mark
1205 |:make| :mak[e] execute external command 'makeprg' and parse
1206 error messages
1207 |:map| :map show or enter a mapping
1208 |:mapclear| :mapc[lear] clear all mappings for Normal and Visual mode
1209 |:marks| :marks list all marks
1210 |:match| :mat[ch] define a match to highlight
1211 |:menu| :me[nu] enter a new menu item
1212 |:menutranslate| :menut[ranslate] add a menu translation item
1213 |:messages| :mes[sages] view previously displayed messages
1214 |:mkexrc| :mk[exrc] write current mappings and settings to a file
1215 |:mksession| :mks[ession] write session info to a file
1216 |:mkvimrc| :mkv[imrc] write current mappings and settings to a file
1217 |:mkview| :mkvie[w] write view of current window to a file
1218 |:mode| :mod[e] show or change the screen mode
1219 |:next| :n[ext] go to next file in the argument list
1220 |:new| :new create a new empty window
1221 |:nmap| :nm[ap] like ":map" but for Normal mode
1222 |:nmapclear| :nmapc[lear] clear all mappings for Normal mode
1223 |:nmenu| :nme[nu] add menu for Normal mode
1224 |:nnoremap| :nn[oremap] like ":noremap" but for Normal mode
1225 |:nnoremenu| :nnoreme[nu] like ":noremenu" but for Normal mode
1226 |:noremap| :no[remap] enter a mapping that will not be remapped
1227 |:nohlsearch| :noh[lsearch] suspend 'hlsearch' highlighting
1228 |:noreabbrev| :norea[bbrev] enter an abbreviation that will not be
1229 remapped
1230 |:noremenu| :noreme[nu] enter a menu that will not be remapped
1231 |:normal| :norm[al] execute Normal mode commands
1232 |:number| :nu[mber] print lines with line number
1233 |:nunmap| :nun[map] like ":unmap" but for Normal mode
1234 |:nunmenu| :nunme[nu] remove menu for Normal mode
1235 |:open| :o[pen] start open mode (not implemented)
1236 |:omap| :om[ap] like ":map" but for Operator-pending mode
1237 |:omapclear| :omapc[lear] remove all mappings for Operator-pending mode
1238 |:omenu| :ome[nu] add menu for Operator-pending mode
1239 |:only| :on[ly] close all windows except current one
1240 |:onoremap| :ono[remap] like ":noremap" but for Operator-pending mode
1241 |:onoremenu| :onoreme[nu] like ":noremenu" but for Operator-pending mode
1242 |:options| :opt[ions] open the options-window
1243 |:ounmap| :ou[nmap] like ":unmap" but for Operator-pending mode
1244 |:ounmenu| :ounme[nu] remove menu for Operator-pending mode
1245 |:print| :p[rint] print lines
1246 |:pclose| :pc[lose] close preview window
1247 |:pedit| :ped[it] edit file in the preview window
1248 |:perl| :pe[rl] execute Perl command
1249 |:perldo| :perld[o] execute Perl command for each line
1250 |:pop| :po[p] jump to older entry in tag stack
1251 |:popup| :pop[up] popup a menu by name
1252 |:ppop| :pp[op] ":pop" in preview window
1253 |:preserve| :pre[serve] write all text to swap file
1254 |:previous| :prev[ious] go to previous file in argument list
1255 |:promptfind| :pro[mptfind] Search dialog
1256 |:promptrepl| :promptr[epl] Search/Replace dialog
1257 |:psearch| :ps[earch] like ":ijump" but shows match in preview window
1258 |:ptag| :pt[ag] show tag in preview window
1259 |:ptNext| :ptN[ext] |:tNext| in preview window
1260 |:ptfirst| :ptf[irst] |:trewind| in preview window
1261 |:ptjump| :ptj[ump] |:tjump| and show tag in preview window
1262 |:ptlast| :ptl[ast] |:tlast| in preview window
1263 |:ptnext| :ptn[ext] |:tnext| in preview window
1264 |:ptprevious| :ptp[revious] |:tprevious| in preview window
1265 |:ptrewind| :ptr[ewind] |:trewind| in preview window
1266 |:ptselect| :pts[elect] |:tselect| and show tag in preview window
1267 |:put| :pu[t] insert contents of register in the text
1268 |:pwd| :pw[d] print current directory
1269 |:python| :py[thon] execute Python command
1270 |:pyfile| :pyf[ile] execute Python script file
1271 |:quit| :q[uit] quit current window (when one window quit Vim)
1272 |:quitall| :quita[ll] quit Vim
1273 |:qall| :qa[ll] quit Vim
1274 |:read| :r[ead] read file into the text
1275 |:recover| :rec[over] recover a file from a swap file
1276 |:redo| :red[o] redo one undone change
1277 |:redir| :redi[r] redirect messages to a file or register
1278 |:redraw| :redr[aw] force a redraw of the display
1279 |:redrawstatus| :redraws[tatus] force a redraw of the status line(s)
1280 |:registers| :reg[isters] display the contents of registers
1281 |:resize| :res[ize] change current window height
1282 |:retab| :ret[ab] change tab size
1283 |:return| :retu[rn] return from a user function
1284 |:rewind| :rew[ind] go to the first file in the argument list
1285 |:right| :ri[ght] right align text
1286 |:rightbelow| :rightb[elow] make split window appear right or below
1287 |:ruby| :rub[y] execute Ruby command
1288 |:rubydo| :rubyd[o] execute Ruby command for each line
1289 |:rubyfile| :rubyf[ile] execute Ruby script file
1290 |:runtime| :ru[ntime] source vim scripts in 'runtimepath'
1291 |:rviminfo| :rv[iminfo] read from viminfo file
1292 |:substitute| :s[ubstitute] find and replace text
1293 |:sNext| :sN[ext] split window and go to previous file in
1294 argument list
1295 |:sargument| :sa[rgument] split window and go to specific file in
1296 argument list
1297 |:sall| :sal[l] open a window for each file in argument list
1298 |:saveas| :sav[eas] save file under another name.
1299 |:sbuffer| :sb[uffer] split window and go to specific file in the
1300 buffer list
1301 |:sbNext| :sbN[ext] split window and go to previous file in the
1302 buffer list
1303 |:sball| :sba[ll] open a window for each file in the buffer list
1304 |:sbfirst| :sbf[irst] split window and go to first file in the
1305 buffer list
1306 |:sblast| :sbl[ast] split window and go to last file in buffer
1307 list
1308 |:sbmodified| :sbm[odified] split window and go to modified file in the
1309 buffer list
1310 |:sbnext| :sbn[ext] split window and go to next file in the buffer
1311 list
1312 |:sbprevious| :sbp[revious] split window and go to previous file in the
1313 buffer list
1314 |:sbrewind| :sbr[ewind] split window and go to first file in the
1315 buffer list
1316 |:scriptnames| :scrip[tnames] list names of all sourced Vim scripts
1317 |:scriptencoding| :scripte[ncoding] encoding used in sourced Vim script
1318 |:scscope| :scs[cope] split window and execute cscope command
1319 |:set| :se[t] show or set options
1320 |:setfiletype| :setf[iletype] set 'filetype', unless it was set already
1321 |:setglobal| :setg[lobal] show global values of options
1322 |:setlocal| :setl[ocal] show or set options locally
1323 |:sfind| :sf[ind] split current window and edit file in 'path'
1324 |:sfirst| :sfir[st] split window and go to first file in the
1325 argument list
1326 |:shell| :sh[ell] escape to a shell
1327 |:simalt| :sim[alt] Win32 GUI: simulate Windows ALT key
1328 |:sign| :sig[n] manipulate signs
1329 |:silent| :sil[ent] Run a command silently
1330 |:sleep| :sl[eep] do nothing for a few seconds
1331 |:slast| :sla[st] split window and go to last file in the
1332 argument list
1333 |:smagic| :sm[agic] :substitute with 'magic'
1334 |:snext| :sn[ext] split window and go to next file in the
1335 argument list
1336 |:sniff| :sni[ff] send request to sniff
1337 |:snomagic| :sno[magic] :substitute with 'nomagic'
1338 |:source| :so[urce] read Vim or Ex commands from a file
1339 |:split| :sp[lit] split current window
1340 |:sprevious| :spr[evious] split window and go to previous file in the
1341 argument list
1342 |:srewind| :sre[wind] split window and go to first file in the
1343 argument list
1344 |:stop| :st[op] suspend the editor or escape to a shell
1345 |:stag| :sta[g] split window and jump to a tag
1346 |:startinsert| :star[tinsert] start Insert mode
1347 |:stopinsert|| :stopi[nsert] stop Insert mode
1348 |:stjump| :stj[ump] do ":tjump" and split window
1349 |:stselect| :sts[elect] do ":tselect" and split window
1350 |:sunhide| :sun[hide] same as ":unhide"
1351 |:suspend| :sus[pend] same as ":stop"
1352 |:sview| :sv[iew] split window and edit file read-only
1353 |:swapname| :sw[apname] show the name of the current swap file
1354 |:syntax| :sy[ntax] syntax highlighting
1355 |:syncbind| :sync[bind] sync scroll binding
1356 |:t| :t same as ":copy"
1357 |:tNext| :tN[ext] jump to previous matching tag
1358 |:tag| :ta[g] jump to tag
1359 |:tags| :tags show the contents of the tag stack
1360 |:tcl| :tc[l] execute Tcl command
1361 |:tcldo| :tcld[o] execute Tcl command for each line
1362 |:tclfile| :tclf[ile] execute Tcl script file
1363 |:tearoff| :te[aroff] tear-off a menu
1364 |:tfirst| :tf[irst] jump to first matching tag
1365 |:throw| :th[row] throw an exception
1366 |:tjump| :tj[ump] like ":tselect", but jump directly when there
1367 is only one match
1368 |:tlast| :tl[ast] jump to last matching tag
1369 |:tmenu| :tm[enu] define menu tooltip
1370 |:tnext| :tn[ext] jump to next matching tag
1371 |:topleft| :to[pleft] make split window appear at top or far left
1372 |:tprevious| :tp[revious] jump to previous matching tag
1373 |:trewind| :tr[ewind] jump to first matching tag
1374 |:try| :try execute commands, abort on error or exception
1375 |:tselect| :ts[elect] list matching tags and select one
1376 |:tunmenu| :tu[nmenu] remove menu tooltip
1377 |:undo| :u[ndo] undo last change(s)
1378 |:unabbreviate| :una[bbreviate] remove abbreviation
1379 |:unhide| :unh[ide] open a window for each loaded file in the
1380 buffer list
1381 |:unlet| :unl[et] delete variable
1382 |:unmap| :unm[ap] remove mapping
1383 |:unmenu| :unme[nu] remove menu
1384 |:update| :up[date] write buffer if modified
1385 |:vglobal| :v[global] execute commands for not matching lines
1386 |:version| :ve[rsion] print version number and other info
1387 |:verbose| :verb[ose] execute command with 'verbose' set
1388 |:vertical| :vert[ical] make following command split vertically
1389 |:visual| :vi[sual] same as ":edit", but turns off "Ex" mode
1390 |:view| :vie[w] edit a file read-only
1391 |:vmap| :vm[ap] like ":map" but for Visual mode
1392 |:vmapclear| :vmapc[lear] remove all mappings for Visual mode
1393 |:vmenu| :vme[nu] add menu for Visual mode
1394 |:vnoremap| :vn[oremap] like ":noremap" but for Visual mode
1395 |:vnew| :vne[w] create a new empty window, vertically split
1396 |:vnoremenu| :vnoreme[nu] like ":noremenu" but for Visual mode
1397 |:vsplit| :vs[plit] split current window vertically
1398 |:vunmap| :vu[nmap] like ":unmap" but for Visual mode
1399 |:vunmenu| :vunme[nu] remove menu for Visual mode
1400 |:windo| :windo execute command in each window
1401 |:write| :w[rite] write to a file
1402 |:wNext| :wN[ext] write to a file and go to previous file in
1403 argument list
1404 |:wall| :wa[ll] write all (changed) buffers
1405 |:while| :wh[ile] execute loop for as long as condition met
1406 |:winsize| :wi[nsize] get or set window size (obsolete)
1407 |:wincmd| :winc[md] execute a Window (CTRL-W) command
1408 |:winpos| :winp[os] get or set window position
1409 |:wnext| :wn[ext] write to a file and go to next file in
1410 argument list
1411 |:wprevious| :wp[revious] write to a file and go to previous file in
1412 argument list
1413 |:wq| :wq write to a file and quit window or Vim
1414 |:wqall| :wqa[ll] write all changed buffers and quit Vim
1415 |:wsverb| :ws[verb] pass the verb to workshop over IPC
1416 |:wviminfo| :wv[iminfo] write to viminfo file
1417 |:xit| :x[it] write if buffer changed and quit window or Vim
1418 |:xall| :xa[ll] same as ":wqall"
1419 |:yank| :y[ank] yank lines into a register
1420 |:z| :z print some lines
1421 |:~| :~ repeat last ":substitute"
1422
1423 vim:tw=78:ts=8:ft=help:norl: