Mercurial > vim
annotate runtime/doc/index.txt @ 18000:7a19c8d6bb9e v8.1.1996
patch 8.1.1996: more functions can be used as methods
Commit: https://github.com/vim/vim/commit/aad222c9c9a1e4fe6ae5a1fe95bb084619be0e65
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Sep 6 22:46:09 2019 +0200
patch 8.1.1996: more functions can be used as methods
Problem: More functions can be used as methods.
Solution: Make various functions usable as a method.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 06 Sep 2019 23:00:03 +0200 |
parents | 59f8948b7590 |
children | 834b7854aa3c |
rev | line source |
---|---|
17809
59f8948b7590
patch 8.1.1901: the +insert_expand feature is not always available
Bram Moolenaar <Bram@vim.org>
parents:
17758
diff
changeset
|
1 *index.txt* For Vim version 8.1. Last change: 2019 Aug 21 |
7 | 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| | |
15932 | 20 2.6. Operator-pending mode |operator-pending-index| |
7 | 21 3. Visual mode |visual-index| |
22 4. Command-line editing |ex-edit-index| | |
15932 | 23 5. Terminal-Job mode |terminal-job-index| |
24 6. EX commands |ex-cmd-index| | |
7 | 25 |
26 For an overview of options see help.txt |option-list|. | |
27 For an overview of built-in functions see |functions|. | |
28 For a list of Vim variables see |vim-variable|. | |
29 For a complete listing of all help items see |help-tags|. | |
30 | |
31 ============================================================================== | |
32 1. Insert mode *insert-index* | |
33 | |
2681 | 34 tag char action in Insert mode ~ |
7 | 35 ----------------------------------------------------------------------- |
36 |i_CTRL-@| CTRL-@ insert previously inserted text and stop | |
37 insert | |
38 |i_CTRL-A| CTRL-A insert previously inserted text | |
39 CTRL-B not used |i_CTRL-B-gone| | |
40 |i_CTRL-C| CTRL-C quit insert mode, without checking for | |
41 abbreviation, unless 'insertmode' set. | |
42 |i_CTRL-D| CTRL-D delete one shiftwidth of indent in the current | |
43 line | |
44 |i_CTRL-E| CTRL-E insert the character which is below the cursor | |
45 CTRL-F not used (but by default it's in 'cinkeys' to | |
46 re-indent the current line) | |
47 |i_CTRL-G_j| CTRL-G CTRL-J line down, to column where inserting started | |
48 |i_CTRL-G_j| CTRL-G j line down, to column where inserting started | |
49 |i_CTRL-G_j| CTRL-G <Down> line down, to column where inserting started | |
50 |i_CTRL-G_k| CTRL-G CTRL-K line up, to column where inserting started | |
51 |i_CTRL-G_k| CTRL-G k line up, to column where inserting started | |
52 |i_CTRL-G_k| CTRL-G <Up> line up, to column where inserting started | |
53 |i_CTRL-G_u| CTRL-G u start new undoable edit | |
8951
0bdeaf7092bc
commit https://github.com/vim/vim/commit/aa3b15dbebf333282503d6031e2f9ba6ee4398ed
Christian Brabandt <cb@256bit.org>
parents:
8673
diff
changeset
|
54 |i_CTRL-G_U| CTRL-G U don't break undo with next cursor movement |
7 | 55 |i_<BS>| <BS> delete character before the cursor |
56 |i_digraph| {char1}<BS>{char2} | |
57 enter digraph (only when 'digraph' option set) | |
58 |i_CTRL-H| CTRL-H same as <BS> | |
59 |i_<Tab>| <Tab> insert a <Tab> character | |
60 |i_CTRL-I| CTRL-I same as <Tab> | |
61 |i_<NL>| <NL> same as <CR> | |
62 |i_CTRL-J| CTRL-J same as <CR> | |
63 |i_CTRL-K| CTRL-K {char1} {char2} | |
64 enter digraph | |
65 |i_CTRL-L| CTRL-L when 'insertmode' set: Leave Insert mode | |
66 |i_<CR>| <CR> begin new line | |
67 |i_CTRL-M| CTRL-M same as <CR> | |
68 |i_CTRL-N| CTRL-N find next match for keyword in front of the | |
69 cursor | |
70 |i_CTRL-O| CTRL-O execute a single command and return to insert | |
71 mode | |
72 |i_CTRL-P| CTRL-P find previous match for keyword in front of | |
73 the cursor | |
74 |i_CTRL-Q| CTRL-Q same as CTRL-V, unless used for terminal | |
75 control flow | |
76 |i_CTRL-R| CTRL-R {0-9a-z"%#*:=} | |
77 insert the contents of a register | |
78 |i_CTRL-R_CTRL-R| CTRL-R CTRL-R {0-9a-z"%#*:=} | |
79 insert the contents of a register literally | |
80 |i_CTRL-R_CTRL-O| CTRL-R CTRL-O {0-9a-z"%#*:=} | |
81 insert the contents of a register literally | |
82 and don't auto-indent | |
83 |i_CTRL-R_CTRL-P| CTRL-R CTRL-P {0-9a-z"%#*:=} | |
84 insert the contents of a register literally | |
85 and fix indent. | |
86 CTRL-S (used for terminal control flow) | |
87 |i_CTRL-T| CTRL-T insert one shiftwidth of indent in current | |
88 line | |
89 |i_CTRL-U| CTRL-U delete all entered characters in the current | |
90 line | |
91 |i_CTRL-V| CTRL-V {char} insert next non-digit literally | |
92 |i_CTRL-V_digit| CTRL-V {number} insert three digit decimal number as a single | |
93 byte. | |
94 |i_CTRL-W| CTRL-W delete word before the cursor | |
12 | 95 |i_CTRL-X| CTRL-X {mode} enter CTRL-X sub mode, see |i_CTRL-X_index| |
7 | 96 |i_CTRL-Y| CTRL-Y insert the character which is above the cursor |
97 |i_CTRL-Z| CTRL-Z when 'insertmode' set: suspend Vim | |
98 |i_<Esc>| <Esc> end insert mode (unless 'insertmode' set) | |
99 |i_CTRL-[| CTRL-[ same as <Esc> | |
4098 | 100 |i_CTRL-\_CTRL-N| CTRL-\ CTRL-N go to Normal mode |
101 |i_CTRL-\_CTRL-G| CTRL-\ CTRL-G go to mode specified with 'insertmode' | |
7 | 102 CTRL-\ a - z reserved for extensions |
103 CTRL-\ others not used | |
104 |i_CTRL-]| CTRL-] trigger abbreviation | |
105 |i_CTRL-^| CTRL-^ toggle use of |:lmap| mappings | |
106 |i_CTRL-_| CTRL-_ When 'allowrevins' set: change language | |
107 (Hebrew, Farsi) {only when compiled with | |
2570
71b56b4e7785
Make the references to features in the help more consistent. (Sylvain Hitier)
Bram Moolenaar <bram@vim.org>
parents:
2561
diff
changeset
|
108 the |+rightleft| feature} |
7 | 109 |
110 <Space> to '~' not used, except '0' and '^' followed by | |
111 CTRL-D | |
112 | |
113 |i_0_CTRL-D| 0 CTRL-D delete all indent in the current line | |
114 |i_^_CTRL-D| ^ CTRL-D delete all indent in the current line, restore | |
115 it in the next line | |
116 | |
117 |i_<Del>| <Del> delete character under the cursor | |
118 | |
119 Meta characters (0x80 to 0xff, 128 to 255) | |
120 not used | |
121 | |
122 |i_<Left>| <Left> cursor one character left | |
123 |i_<S-Left>| <S-Left> cursor one word left | |
124 |i_<C-Left>| <C-Left> cursor one word left | |
125 |i_<Right>| <Right> cursor one character right | |
126 |i_<S-Right>| <S-Right> cursor one word right | |
127 |i_<C-Right>| <C-Right> cursor one word right | |
128 |i_<Up>| <Up> cursor one line up | |
129 |i_<S-Up>| <S-Up> same as <PageUp> | |
130 |i_<Down>| <Down> cursor one line down | |
131 |i_<S-Down>| <S-Down> same as <PageDown> | |
132 |i_<Home>| <Home> cursor to start of line | |
133 |i_<C-Home>| <C-Home> cursor to start of file | |
134 |i_<End>| <End> cursor past end of line | |
135 |i_<C-End>| <C-End> cursor past end of file | |
9 | 136 |i_<PageUp>| <PageUp> one screenful backward |
137 |i_<PageDown>| <PageDown> one screenful forward | |
7 | 138 |i_<F1>| <F1> same as <Help> |
139 |i_<Help>| <Help> stop insert mode and display help window | |
140 |i_<Insert>| <Insert> toggle Insert/Replace mode | |
141 |i_<LeftMouse>| <LeftMouse> cursor at mouse click | |
2409
0ca06a92adfb
Add support for horizontal scroll wheel. (Bjorn Winckler)
Bram Moolenaar <bram@vim.org>
parents:
2368
diff
changeset
|
142 |i_<ScrollWheelDown>| <ScrollWheelDown> move window three lines down |
0ca06a92adfb
Add support for horizontal scroll wheel. (Bjorn Winckler)
Bram Moolenaar <bram@vim.org>
parents:
2368
diff
changeset
|
143 |i_<S-ScrollWheelDown>| <S-ScrollWheelDown> move window one page down |
0ca06a92adfb
Add support for horizontal scroll wheel. (Bjorn Winckler)
Bram Moolenaar <bram@vim.org>
parents:
2368
diff
changeset
|
144 |i_<ScrollWheelUp>| <ScrollWheelUp> move window three lines up |
0ca06a92adfb
Add support for horizontal scroll wheel. (Bjorn Winckler)
Bram Moolenaar <bram@vim.org>
parents:
2368
diff
changeset
|
145 |i_<S-ScrollWheelUp>| <S-ScrollWheelUp> move window one page up |
0ca06a92adfb
Add support for horizontal scroll wheel. (Bjorn Winckler)
Bram Moolenaar <bram@vim.org>
parents:
2368
diff
changeset
|
146 |i_<ScrollWheelLeft>| <ScrollWheelLeft> move window six columns left |
4098 | 147 |i_<S-ScrollWheelLeft>| <S-ScrollWheelLeft> move window one page left |
2409
0ca06a92adfb
Add support for horizontal scroll wheel. (Bjorn Winckler)
Bram Moolenaar <bram@vim.org>
parents:
2368
diff
changeset
|
148 |i_<ScrollWheelRight>| <ScrollWheelRight> move window six columns right |
0ca06a92adfb
Add support for horizontal scroll wheel. (Bjorn Winckler)
Bram Moolenaar <bram@vim.org>
parents:
2368
diff
changeset
|
149 |i_<S-ScrollWheelRight>| <S-ScrollWheelRight> move window one page right |
7 | 150 |
12 | 151 commands in CTRL-X submode *i_CTRL-X_index* |
7 | 152 |
153 |i_CTRL-X_CTRL-D| CTRL-X CTRL-D complete defined identifiers | |
154 |i_CTRL-X_CTRL-E| CTRL-X CTRL-E scroll up | |
155 |i_CTRL-X_CTRL-F| CTRL-X CTRL-F complete file names | |
156 |i_CTRL-X_CTRL-I| CTRL-X CTRL-I complete identifiers | |
157 |i_CTRL-X_CTRL-K| CTRL-X CTRL-K complete identifiers from dictionary | |
158 |i_CTRL-X_CTRL-L| CTRL-X CTRL-L complete whole lines | |
159 |i_CTRL-X_CTRL-N| CTRL-X CTRL-N next completion | |
522 | 160 |i_CTRL-X_CTRL-O| CTRL-X CTRL-O omni completion |
7 | 161 |i_CTRL-X_CTRL-P| CTRL-X CTRL-P previous completion |
475 | 162 |i_CTRL-X_CTRL-S| CTRL-X CTRL-S spelling suggestions |
7 | 163 |i_CTRL-X_CTRL-T| CTRL-X CTRL-T complete identifiers from thesaurus |
164 |i_CTRL-X_CTRL-Y| CTRL-X CTRL-Y scroll down | |
12 | 165 |i_CTRL-X_CTRL-U| CTRL-X CTRL-U complete with 'completefunc' |
166 |i_CTRL-X_CTRL-V| CTRL-X CTRL-V complete like in : command line | |
7 | 167 |i_CTRL-X_CTRL-]| CTRL-X CTRL-] complete tags |
475 | 168 |i_CTRL-X_s| CTRL-X s spelling suggestions |
7 | 169 |
15932 | 170 commands in completion mode (see |popupmenu-keys|) |
171 | |
172 |complete_CTRL-E| CTRL-E stop completion and go back to original text | |
173 |complete_CTRL-Y| CTRL-Y accept selected match and stop completion | |
174 CTRL-L insert one character from the current match | |
175 <CR> insert currently selected match | |
176 <BS> delete one character and redo search | |
177 CTRL-H same as <BS> | |
178 <Up> select the previous match | |
179 <Down> select the next match | |
180 <PageUp> select a match several entries back | |
181 <PageDown> select a match several entries forward | |
182 other stop completion and insert the typed character | |
183 | |
7 | 184 ============================================================================== |
185 2. Normal mode *normal-index* | |
186 | |
187 CHAR any non-blank character | |
188 WORD a sequence of non-blank characters | |
189 N a number entered before the command | |
190 {motion} a cursor movement command | |
191 Nmove the text that is moved over with a {motion} | |
192 SECTION a section that possibly starts with '}' instead of '{' | |
193 | |
194 note: 1 = cursor movement command; 2 = can be undone/redone | |
195 | |
196 tag char note action in Normal mode ~ | |
197 ------------------------------------------------------------------------------ | |
198 CTRL-@ not used | |
199 |CTRL-A| CTRL-A 2 add N to number at/after cursor | |
200 |CTRL-B| CTRL-B 1 scroll N screens Backwards | |
201 |CTRL-C| CTRL-C interrupt current (search) command | |
202 |CTRL-D| CTRL-D scroll Down N lines (default: half a screen) | |
203 |CTRL-E| CTRL-E scroll N lines upwards (N lines Extra) | |
204 |CTRL-F| CTRL-F 1 scroll N screens Forward | |
205 |CTRL-G| CTRL-G display current file name and position | |
206 |<BS>| <BS> 1 same as "h" | |
207 |CTRL-H| CTRL-H 1 same as "h" | |
208 |<Tab>| <Tab> 1 go to N newer entry in jump list | |
209 |CTRL-I| CTRL-I 1 same as <Tab> | |
210 |<NL>| <NL> 1 same as "j" | |
211 |CTRL-J| CTRL-J 1 same as "j" | |
212 CTRL-K not used | |
213 |CTRL-L| CTRL-L redraw screen | |
214 |<CR>| <CR> 1 cursor to the first CHAR N lines lower | |
215 |CTRL-M| CTRL-M 1 same as <CR> | |
216 |CTRL-N| CTRL-N 1 same as "j" | |
217 |CTRL-O| CTRL-O 1 go to N older entry in jump list | |
218 |CTRL-P| CTRL-P 1 same as "k" | |
219 CTRL-Q (used for terminal control flow) | |
220 |CTRL-R| CTRL-R 2 redo changes which were undone with 'u' | |
221 CTRL-S (used for terminal control flow) | |
222 |CTRL-T| CTRL-T jump to N older Tag in tag list | |
223 |CTRL-U| CTRL-U scroll N lines Upwards (default: half a | |
224 screen) | |
225 |CTRL-V| CTRL-V start blockwise Visual mode | |
226 |CTRL-W| CTRL-W {char} window commands, see |CTRL-W| | |
227 |CTRL-X| CTRL-X 2 subtract N from number at/after cursor | |
228 |CTRL-Y| CTRL-Y scroll N lines downwards | |
229 |CTRL-Z| CTRL-Z suspend program (or start new shell) | |
230 CTRL-[ <Esc> not used | |
4098 | 231 |CTRL-\_CTRL-N| CTRL-\ CTRL-N go to Normal mode (no-op) |
232 |CTRL-\_CTRL-G| CTRL-\ CTRL-G go to mode specified with 'insertmode' | |
7 | 233 CTRL-\ a - z reserved for extensions |
234 CTRL-\ others not used | |
235 |CTRL-]| CTRL-] :ta to ident under cursor | |
236 |CTRL-^| CTRL-^ edit Nth alternate file (equivalent to | |
237 ":e #N") | |
238 CTRL-_ not used | |
239 | |
240 |<Space>| <Space> 1 same as "l" | |
241 |!| !{motion}{filter} | |
242 2 filter Nmove text through the {filter} | |
243 command | |
244 |!!| !!{filter} 2 filter N lines through the {filter} command | |
245 |quote| "{a-zA-Z0-9.%#:-"} use register {a-zA-Z0-9.%#:-"} for next | |
246 delete, yank or put (uppercase to append) | |
247 ({.%#:} only work with put) | |
248 |#| # 1 search backward for the Nth occurrence of | |
249 the ident under the cursor | |
250 |$| $ 1 cursor to the end of Nth next line | |
251 |%| % 1 find the next (curly/square) bracket on | |
252 this line and go to its match, or go to | |
253 matching comment bracket, or go to matching | |
254 preprocessor directive. | |
255 |N%| {count}% 1 go to N percentage in the file | |
256 |&| & 2 repeat last :s | |
257 |'| '{a-zA-Z0-9} 1 cursor to the first CHAR on the line with | |
258 mark {a-zA-Z0-9} | |
259 |''| '' 1 cursor to the first CHAR of the line where | |
260 the cursor was before the latest jump. | |
261 |'(| '( 1 cursor to the first CHAR on the line of the | |
262 start of the current sentence | |
263 |')| ') 1 cursor to the first CHAR on the line of the | |
264 end of the current sentence | |
265 |'<| '< 1 cursor to the first CHAR of the line where | |
266 highlighted area starts/started in the | |
267 current buffer. | |
268 |'>| '> 1 cursor to the first CHAR of the line where | |
269 highlighted area ends/ended in the current | |
270 buffer. | |
271 |'[| '[ 1 cursor to the first CHAR on the line of the | |
272 start of last operated text or start of put | |
273 text | |
274 |']| '] 1 cursor to the first CHAR on the line of the | |
275 end of last operated text or end of put | |
276 text | |
277 |'{| '{ 1 cursor to the first CHAR on the line of the | |
278 start of the current paragraph | |
279 |'}| '} 1 cursor to the first CHAR on the line of the | |
280 end of the current paragraph | |
281 |(| ( 1 cursor N sentences backward | |
282 |)| ) 1 cursor N sentences forward | |
283 |star| * 1 search forward for the Nth occurrence of | |
284 the ident under the cursor | |
285 |+| + 1 same as <CR> | |
286 |,| , 1 repeat latest f, t, F or T in opposite | |
287 direction N times | |
288 |-| - 1 cursor to the first CHAR N lines higher | |
289 |.| . 2 repeat last change with count replaced with | |
290 N | |
291 |/| /{pattern}<CR> 1 search forward for the Nth occurrence of | |
292 {pattern} | |
293 |/<CR>| /<CR> 1 search forward for {pattern} of last search | |
294 |count| 0 1 cursor to the first char of the line | |
295 |count| 1 prepend to command to give a count | |
296 |count| 2 " | |
297 |count| 3 " | |
298 |count| 4 " | |
299 |count| 5 " | |
300 |count| 6 " | |
301 |count| 7 " | |
302 |count| 8 " | |
303 |count| 9 " | |
304 |:| : 1 start entering an Ex command | |
305 |N:| {count}: start entering an Ex command with range | |
306 from current line to N-1 lines down | |
307 |;| ; 1 repeat latest f, t, F or T N times | |
308 |<| <{motion} 2 shift Nmove lines one 'shiftwidth' | |
309 leftwards | |
310 |<<| << 2 shift N lines one 'shiftwidth' leftwards | |
311 |=| ={motion} 2 filter Nmove lines through "indent" | |
312 |==| == 2 filter N lines through "indent" | |
313 |>| >{motion} 2 shift Nmove lines one 'shiftwidth' | |
314 rightwards | |
315 |>>| >> 2 shift N lines one 'shiftwidth' rightwards | |
316 |?| ?{pattern}<CR> 1 search backward for the Nth previous | |
317 occurrence of {pattern} | |
318 |?<CR>| ?<CR> 1 search backward for {pattern} of last search | |
319 |@| @{a-z} 2 execute the contents of register {a-z} | |
320 N times | |
321 |@:| @: repeat the previous ":" command N times | |
322 |@@| @@ 2 repeat the previous @{a-z} N times | |
323 |A| A 2 append text after the end of the line N times | |
324 |B| B 1 cursor N WORDS backward | |
325 |C| ["x]C 2 change from the cursor position to the end | |
326 of the line, and N-1 more lines [into | |
11400
0f8713fe20dc
Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents:
11062
diff
changeset
|
327 register x]; synonym for "c$" |
7 | 328 |D| ["x]D 2 delete the characters under the cursor |
329 until the end of the line and N-1 more | |
11400
0f8713fe20dc
Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents:
11062
diff
changeset
|
330 lines [into register x]; synonym for "d$" |
7 | 331 |E| E 1 cursor forward to the end of WORD N |
332 |F| F{char} 1 cursor to the Nth occurrence of {char} to | |
333 the left | |
334 |G| G 1 cursor to line N, default last line | |
335 |H| H 1 cursor to line N from top of screen | |
336 |I| I 2 insert text before the first CHAR on the | |
337 line N times | |
338 |J| J 2 Join N lines; default is 2 | |
339 |K| K lookup Keyword under the cursor with | |
340 'keywordprg' | |
341 |L| L 1 cursor to line N from bottom of screen | |
342 |M| M 1 cursor to middle line of screen | |
343 |N| N 1 repeat the latest '/' or '?' N times in | |
344 opposite direction | |
345 |O| O 2 begin a new line above the cursor and | |
346 insert text, repeat N times | |
11400
0f8713fe20dc
Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents:
11062
diff
changeset
|
347 |P| ["x]P 2 put the text [from register x] before the |
7 | 348 cursor N times |
349 |Q| Q switch to "Ex" mode | |
350 |R| R 2 enter replace mode: overtype existing | |
351 characters, repeat the entered text N-1 | |
352 times | |
11400
0f8713fe20dc
Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents:
11062
diff
changeset
|
353 |S| ["x]S 2 delete N lines [into register x] and start |
36 | 354 insert; synonym for "cc". |
7 | 355 |T| T{char} 1 cursor till after Nth occurrence of {char} |
356 to the left | |
357 |U| U 2 undo all latest changes on one line | |
358 |V| V start linewise Visual mode | |
359 |W| W 1 cursor N WORDS forward | |
360 |X| ["x]X 2 delete N characters before the cursor [into | |
11400
0f8713fe20dc
Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents:
11062
diff
changeset
|
361 register x] |
0f8713fe20dc
Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents:
11062
diff
changeset
|
362 |Y| ["x]Y yank N lines [into register x]; synonym for |
7 | 363 "yy" |
364 |ZZ| ZZ store current file if modified, and exit | |
365 |ZQ| ZQ exit current file always | |
570 | 366 |[| [{char} square bracket command (see |[| below) |
7 | 367 \ not used |
570 | 368 |]| ]{char} square bracket command (see |]| below) |
7 | 369 |^| ^ 1 cursor to the first CHAR of the line |
370 |_| _ 1 cursor to the first CHAR N - 1 lines lower | |
371 |`| `{a-zA-Z0-9} 1 cursor to the mark {a-zA-Z0-9} | |
372 |`(| `( 1 cursor to the start of the current sentence | |
373 |`)| `) 1 cursor to the end of the current sentence | |
374 |`<| `< 1 cursor to the start of the highlighted area | |
375 |`>| `> 1 cursor to the end of the highlighted area | |
376 |`[| `[ 1 cursor to the start of last operated text | |
377 or start of putted text | |
378 |`]| `] 1 cursor to the end of last operated text or | |
379 end of putted text | |
380 |``| `` 1 cursor to the position before latest jump | |
381 |`{| `{ 1 cursor to the start of the current paragraph | |
382 |`}| `} 1 cursor to the end of the current paragraph | |
383 |a| a 2 append text after the cursor N times | |
384 |b| b 1 cursor N words backward | |
11400
0f8713fe20dc
Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents:
11062
diff
changeset
|
385 |c| ["x]c{motion} 2 delete Nmove text [into register x] and |
0f8713fe20dc
Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents:
11062
diff
changeset
|
386 start insert |
0f8713fe20dc
Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents:
11062
diff
changeset
|
387 |cc| ["x]cc 2 delete N lines [into register x] and start |
7 | 388 insert |
11400
0f8713fe20dc
Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents:
11062
diff
changeset
|
389 |d| ["x]d{motion} 2 delete Nmove text [into register x] |
0f8713fe20dc
Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents:
11062
diff
changeset
|
390 |dd| ["x]dd 2 delete N lines [into register x] |
7 | 391 |do| do 2 same as ":diffget" |
392 |dp| dp 2 same as ":diffput" | |
393 |e| e 1 cursor forward to the end of word N | |
394 |f| f{char} 1 cursor to Nth occurrence of {char} to the | |
395 right | |
570 | 396 |g| g{char} extended commands, see |g| below |
7 | 397 |h| h 1 cursor N chars to the left |
398 |i| i 2 insert text before the cursor N times | |
399 |j| j 1 cursor N lines downward | |
400 |k| k 1 cursor N lines upward | |
401 |l| l 1 cursor N chars to the right | |
402 |m| m{A-Za-z} set mark {A-Za-z} at cursor position | |
403 |n| n 1 repeat the latest '/' or '?' N times | |
404 |o| o 2 begin a new line below the cursor and | |
405 insert text, repeat N times | |
406 |p| ["x]p 2 put the text [from register x] after the | |
407 cursor N times | |
408 |q| q{0-9a-zA-Z"} record typed characters into named register | |
409 {0-9a-zA-Z"} (uppercase to append) | |
410 |q| q (while recording) stops recording | |
411 |q:| q: edit : command-line in command-line window | |
412 |q/| q/ edit / command-line in command-line window | |
413 |q?| q? edit ? command-line in command-line window | |
414 |r| r{char} 2 replace N chars with {char} | |
415 |s| ["x]s 2 (substitute) delete N characters [into | |
11400
0f8713fe20dc
Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents:
11062
diff
changeset
|
416 register x] and start insert |
7 | 417 |t| t{char} 1 cursor till before Nth occurrence of {char} |
418 to the right | |
419 |u| u 2 undo changes | |
420 |v| v start characterwise Visual mode | |
421 |w| w 1 cursor N words forward | |
422 |x| ["x]x 2 delete N characters under and after the | |
11400
0f8713fe20dc
Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents:
11062
diff
changeset
|
423 cursor [into register x] |
0f8713fe20dc
Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents:
11062
diff
changeset
|
424 |y| ["x]y{motion} yank Nmove text [into register x] |
0f8713fe20dc
Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents:
11062
diff
changeset
|
425 |yy| ["x]yy yank N lines [into register x] |
570 | 426 |z| z{char} commands starting with 'z', see |z| below |
7 | 427 |{| { 1 cursor N paragraphs backward |
428 |bar| | 1 cursor to column N | |
429 |}| } 1 cursor N paragraphs forward | |
430 |~| ~ 2 'tildeop' off: switch case of N characters | |
431 under cursor and move the cursor N | |
432 characters to the right | |
433 |~| ~{motion} 'tildeop' on: switch case of Nmove text | |
434 |<C-End>| <C-End> 1 same as "G" | |
435 |<C-Home>| <C-Home> 1 same as "gg" | |
436 |<C-Left>| <C-Left> 1 same as "b" | |
437 |<C-LeftMouse>| <C-LeftMouse> ":ta" to the keyword at the mouse click | |
438 |<C-Right>| <C-Right> 1 same as "w" | |
439 |<C-RightMouse>| <C-RightMouse> same as "CTRL-T" | |
440 |<Del>| ["x]<Del> 2 same as "x" | |
441 |N<Del>| {count}<Del> remove the last digit from {count} | |
442 |<Down>| <Down> 1 same as "j" | |
443 |<End>| <End> 1 same as "$" | |
444 |<F1>| <F1> same as <Help> | |
445 |<Help>| <Help> open a help window | |
446 |<Home>| <Home> 1 same as "0" | |
447 |<Insert>| <Insert> 2 same as "i" | |
448 |<Left>| <Left> 1 same as "h" | |
449 |<LeftMouse>| <LeftMouse> 1 move cursor to the mouse click position | |
4098 | 450 |<MiddleMouse>| <MiddleMouse> 2 same as "gP" at the mouse click position |
7 | 451 |<PageDown>| <PageDown> same as CTRL-F |
452 |<PageUp>| <PageUp> same as CTRL-B | |
453 |<Right>| <Right> 1 same as "l" | |
454 |<RightMouse>| <RightMouse> start Visual mode, move cursor to the mouse | |
455 click position | |
456 |<S-Down>| <S-Down> 1 same as CTRL-F | |
457 |<S-Left>| <S-Left> 1 same as "b" | |
458 |<S-LeftMouse>| <S-LeftMouse> same as "*" at the mouse click position | |
459 |<S-Right>| <S-Right> 1 same as "w" | |
460 |<S-RightMouse>| <S-RightMouse> same as "#" at the mouse click position | |
461 |<S-Up>| <S-Up> 1 same as CTRL-B | |
462 |<Undo>| <Undo> 2 same as "u" | |
463 |<Up>| <Up> 1 same as "k" | |
2409
0ca06a92adfb
Add support for horizontal scroll wheel. (Bjorn Winckler)
Bram Moolenaar <bram@vim.org>
parents:
2368
diff
changeset
|
464 |<ScrollWheelDown>| <ScrollWheelDown> move window three lines down |
0ca06a92adfb
Add support for horizontal scroll wheel. (Bjorn Winckler)
Bram Moolenaar <bram@vim.org>
parents:
2368
diff
changeset
|
465 |<S-ScrollWheelDown>| <S-ScrollWheelDown> move window one page down |
0ca06a92adfb
Add support for horizontal scroll wheel. (Bjorn Winckler)
Bram Moolenaar <bram@vim.org>
parents:
2368
diff
changeset
|
466 |<ScrollWheelUp>| <ScrollWheelUp> move window three lines up |
0ca06a92adfb
Add support for horizontal scroll wheel. (Bjorn Winckler)
Bram Moolenaar <bram@vim.org>
parents:
2368
diff
changeset
|
467 |<S-ScrollWheelUp>| <S-ScrollWheelUp> move window one page up |
0ca06a92adfb
Add support for horizontal scroll wheel. (Bjorn Winckler)
Bram Moolenaar <bram@vim.org>
parents:
2368
diff
changeset
|
468 |<ScrollWheelLeft>| <ScrollWheelLeft> move window six columns left |
0ca06a92adfb
Add support for horizontal scroll wheel. (Bjorn Winckler)
Bram Moolenaar <bram@vim.org>
parents:
2368
diff
changeset
|
469 |<S-ScrollWheelLeft>| <S-ScrollWheelLeft> move window one page left |
0ca06a92adfb
Add support for horizontal scroll wheel. (Bjorn Winckler)
Bram Moolenaar <bram@vim.org>
parents:
2368
diff
changeset
|
470 |<ScrollWheelRight>| <ScrollWheelRight> move window six columns right |
0ca06a92adfb
Add support for horizontal scroll wheel. (Bjorn Winckler)
Bram Moolenaar <bram@vim.org>
parents:
2368
diff
changeset
|
471 |<S-ScrollWheelRight>| <S-ScrollWheelRight> move window one page right |
7 | 472 |
473 ============================================================================== | |
474 2.1 Text objects *objects* | |
475 | |
476 These can be used after an operator or in Visual mode to select an object. | |
477 | |
2681 | 478 tag command action in op-pending and Visual mode ~ |
7 | 479 ------------------------------------------------------------------------------ |
12 | 480 |v_aquote| a" double quoted string |
481 |v_a'| a' single quoted string | |
7 | 482 |v_a(| a( same as ab |
483 |v_a)| a) same as ab | |
484 |v_a<| a< "a <>" from '<' to the matching '>' | |
485 |v_a>| a> same as a< | |
486 |v_aB| aB "a Block" from "[{" to "]}" (with brackets) | |
487 |v_aW| aW "a WORD" (with white space) | |
488 |v_a[| a[ "a []" from '[' to the matching ']' | |
489 |v_a]| a] same as a[ | |
12 | 490 |v_a`| a` string in backticks |
7 | 491 |v_ab| ab "a block" from "[(" to "])" (with braces) |
492 |v_ap| ap "a paragraph" (with white space) | |
493 |v_as| as "a sentence" (with white space) | |
1618 | 494 |v_at| at "a tag block" (with white space) |
7 | 495 |v_aw| aw "a word" (with white space) |
496 |v_a{| a{ same as aB | |
497 |v_a}| a} same as aB | |
12 | 498 |v_iquote| i" double quoted string without the quotes |
499 |v_i'| i' single quoted string without the quotes | |
7 | 500 |v_i(| i( same as ib |
501 |v_i)| i) same as ib | |
502 |v_i<| i< "inner <>" from '<' to the matching '>' | |
503 |v_i>| i> same as i< | |
504 |v_iB| iB "inner Block" from "[{" and "]}" | |
505 |v_iW| iW "inner WORD" | |
506 |v_i[| i[ "inner []" from '[' to the matching ']' | |
507 |v_i]| i] same as i[ | |
12 | 508 |v_i`| i` string in backticks without the backticks |
7 | 509 |v_ib| ib "inner block" from "[(" to "])" |
510 |v_ip| ip "inner paragraph" | |
511 |v_is| is "inner sentence" | |
1618 | 512 |v_it| it "inner tag block" |
7 | 513 |v_iw| iw "inner word" |
514 |v_i{| i{ same as iB | |
515 |v_i}| i} same as iB | |
516 | |
517 ============================================================================== | |
518 2.2 Window commands *CTRL-W* | |
519 | |
520 tag command action in Normal mode ~ | |
521 ------------------------------------------------------------------------------ | |
522 |CTRL-W_CTRL-B| CTRL-W CTRL-B same as "CTRL-W b" | |
523 |CTRL-W_CTRL-C| CTRL-W CTRL-C same as "CTRL-W c" | |
524 |CTRL-W_CTRL-D| CTRL-W CTRL-D same as "CTRL-W d" | |
525 |CTRL-W_CTRL-F| CTRL-W CTRL-F same as "CTRL-W f" | |
526 CTRL-W CTRL-G same as "CTRL-W g .." | |
527 |CTRL-W_CTRL-H| CTRL-W CTRL-H same as "CTRL-W h" | |
528 |CTRL-W_CTRL-I| CTRL-W CTRL-I same as "CTRL-W i" | |
529 |CTRL-W_CTRL-J| CTRL-W CTRL-J same as "CTRL-W j" | |
530 |CTRL-W_CTRL-K| CTRL-W CTRL-K same as "CTRL-W k" | |
531 |CTRL-W_CTRL-L| CTRL-W CTRL-L same as "CTRL-W l" | |
532 |CTRL-W_CTRL-N| CTRL-W CTRL-N same as "CTRL-W n" | |
533 |CTRL-W_CTRL-O| CTRL-W CTRL-O same as "CTRL-W o" | |
534 |CTRL-W_CTRL-P| CTRL-W CTRL-P same as "CTRL-W p" | |
535 |CTRL-W_CTRL-Q| CTRL-W CTRL-Q same as "CTRL-W q" | |
536 |CTRL-W_CTRL-R| CTRL-W CTRL-R same as "CTRL-W r" | |
537 |CTRL-W_CTRL-S| CTRL-W CTRL-S same as "CTRL-W s" | |
538 |CTRL-W_CTRL-T| CTRL-W CTRL-T same as "CTRL-W t" | |
539 |CTRL-W_CTRL-V| CTRL-W CTRL-V same as "CTRL-W v" | |
540 |CTRL-W_CTRL-W| CTRL-W CTRL-W same as "CTRL-W w" | |
541 |CTRL-W_CTRL-X| CTRL-W CTRL-X same as "CTRL-W x" | |
542 |CTRL-W_CTRL-Z| CTRL-W CTRL-Z same as "CTRL-W z" | |
543 |CTRL-W_CTRL-]| CTRL-W CTRL-] same as "CTRL-W ]" | |
544 |CTRL-W_CTRL-^| CTRL-W CTRL-^ same as "CTRL-W ^" | |
545 |CTRL-W_CTRL-_| CTRL-W CTRL-_ same as "CTRL-W _" | |
546 |CTRL-W_+| CTRL-W + increase current window height N lines | |
547 |CTRL-W_-| CTRL-W - decrease current window height N lines | |
11763
21f3930dfe6e
Documentation updates.
Christian Brabandt <cb@256bit.org>
parents:
11659
diff
changeset
|
548 |CTRL-W_:| CTRL-W : same as |:|, edit a command line |
7 | 549 |CTRL-W_<| CTRL-W < decrease current window width N columns |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
550 |CTRL-W_=| CTRL-W = make all windows the same height & width |
7 | 551 |CTRL-W_>| CTRL-W > increase current window width N columns |
552 |CTRL-W_H| CTRL-W H move current window to the far left | |
553 |CTRL-W_J| CTRL-W J move current window to the very bottom | |
554 |CTRL-W_K| CTRL-W K move current window to the very top | |
555 |CTRL-W_L| CTRL-W L move current window to the far right | |
556 |CTRL-W_P| CTRL-W P go to preview window | |
557 |CTRL-W_R| CTRL-W R rotate windows upwards N times | |
558 |CTRL-W_S| CTRL-W S same as "CTRL-W s" | |
826 | 559 |CTRL-W_T| CTRL-W T move current window to a new tab page |
7 | 560 |CTRL-W_W| CTRL-W W go to N previous window (wrap around) |
561 |CTRL-W_]| CTRL-W ] split window and jump to tag under cursor | |
562 |CTRL-W_^| CTRL-W ^ split current window and edit alternate | |
563 file N | |
564 |CTRL-W__| CTRL-W _ set current window height to N (default: | |
565 very high) | |
566 |CTRL-W_b| CTRL-W b go to bottom window | |
567 |CTRL-W_c| CTRL-W c close current window (like |:close|) | |
568 |CTRL-W_d| CTRL-W d split window and jump to definition under | |
569 the cursor | |
570 |CTRL-W_f| CTRL-W f split window and edit file name under the | |
571 cursor | |
681 | 572 |CTRL-W_F| CTRL-W F split window and edit file name under the |
573 cursor and jump to the line number | |
574 following the file name. | |
7 | 575 |CTRL-W_g_CTRL-]| CTRL-W g CTRL-] split window and do |:tjump| to tag under |
576 cursor | |
577 |CTRL-W_g]| CTRL-W g ] split window and do |:tselect| for tag | |
578 under cursor | |
579 |CTRL-W_g}| CTRL-W g } do a |:ptjump| to the tag under the cursor | |
820 | 580 |CTRL-W_gf| CTRL-W g f edit file name under the cursor in a new |
581 tab page | |
839 | 582 |CTRL-W_gF| CTRL-W g F edit file name under the cursor in a new |
583 tab page and jump to the line number | |
584 following the file name. | |
16023 | 585 |CTRL-W_gt| CTRL-W g t same as `gt`: go to next tab page |
586 |CTRL-W_gT| CTRL-W g T same as `gT`: go to previous tab page | |
7 | 587 |CTRL-W_h| CTRL-W h go to Nth left window (stop at first window) |
588 |CTRL-W_i| CTRL-W i split window and jump to declaration of | |
589 identifier under the cursor | |
590 |CTRL-W_j| CTRL-W j go N windows down (stop at last window) | |
591 |CTRL-W_k| CTRL-W k go N windows up (stop at first window) | |
592 |CTRL-W_l| CTRL-W l go to Nth right window (stop at last window) | |
593 |CTRL-W_n| CTRL-W n open new window, N lines high | |
594 |CTRL-W_o| CTRL-W o close all but current window (like |:only|) | |
595 |CTRL-W_p| CTRL-W p go to previous (last accessed) window | |
596 |CTRL-W_q| CTRL-W q quit current window (like |:quit|) | |
597 |CTRL-W_r| CTRL-W r rotate windows downwards N times | |
598 |CTRL-W_s| CTRL-W s split current window in two parts, new | |
599 window N lines high | |
600 |CTRL-W_t| CTRL-W t go to top window | |
601 |CTRL-W_v| CTRL-W v split current window vertically, new window | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
602 N columns wide |
7 | 603 |CTRL-W_w| CTRL-W w go to N next window (wrap around) |
604 |CTRL-W_x| CTRL-W x exchange current window with window N | |
605 (default: next window) | |
606 |CTRL-W_z| CTRL-W z close preview window | |
607 |CTRL-W_bar| CTRL-W | set window width to N columns | |
608 |CTRL-W_}| CTRL-W } show tag under cursor in preview window | |
609 |CTRL-W_<Down>| CTRL-W <Down> same as "CTRL-W j" | |
610 |CTRL-W_<Up>| CTRL-W <Up> same as "CTRL-W k" | |
611 |CTRL-W_<Left>| CTRL-W <Left> same as "CTRL-W h" | |
612 |CTRL-W_<Right>| CTRL-W <Right> same as "CTRL-W l" | |
613 | |
614 ============================================================================== | |
615 2.3 Square bracket commands *[* *]* | |
616 | |
617 tag char note action in Normal mode ~ | |
618 ------------------------------------------------------------------------------ | |
619 |[_CTRL-D| [ CTRL-D jump to first #define found in current and | |
620 included files matching the word under the | |
621 cursor, start searching at beginning of | |
622 current file | |
623 |[_CTRL-I| [ CTRL-I jump to first line in current and included | |
624 files that contains the word under the | |
625 cursor, start searching at beginning of | |
626 current file | |
627 |[#| [# 1 cursor to N previous unmatched #if, #else | |
628 or #ifdef | |
629 |['| [' 1 cursor to previous lowercase mark, on first | |
630 non-blank | |
631 |[(| [( 1 cursor N times back to unmatched '(' | |
632 |[star| [* 1 same as "[/" | |
633 |[`| [` 1 cursor to previous lowercase mark | |
634 |[/| [/ 1 cursor to N previous start of a C comment | |
635 |[D| [D list all defines found in current and | |
636 included files matching the word under the | |
637 cursor, start searching at beginning of | |
638 current file | |
639 |[I| [I list all lines found in current and | |
640 included files that contain the word under | |
641 the cursor, start searching at beginning of | |
642 current file | |
643 |[P| [P 2 same as "[p" | |
644 |[[| [[ 1 cursor N sections backward | |
645 |[]| [] 1 cursor N SECTIONS backward | |
646 |[c| [c 1 cursor N times backwards to start of change | |
647 |[d| [d show first #define found in current and | |
648 included files matching the word under the | |
649 cursor, start searching at beginning of | |
650 current file | |
651 |[f| [f same as "gf" | |
652 |[i| [i show first line found in current and | |
653 included files that contains the word under | |
654 the cursor, start searching at beginning of | |
655 current file | |
656 |[m| [m 1 cursor N times back to start of member | |
657 function | |
1118 | 658 |[p| [p 2 like "P", but adjust indent to current line |
659 |[s| [s 1 move to the previous misspelled word | |
7 | 660 |[z| [z 1 move to start of open fold |
661 |[{| [{ 1 cursor N times back to unmatched '{' | |
4098 | 662 |[<MiddleMouse>| [<MiddleMouse> 2 same as "[p" |
7 | 663 |
664 |]_CTRL-D| ] CTRL-D jump to first #define found in current and | |
665 included files matching the word under the | |
666 cursor, start searching at cursor position | |
667 |]_CTRL-I| ] CTRL-I jump to first line in current and included | |
668 files that contains the word under the | |
669 cursor, start searching at cursor position | |
670 |]#| ]# 1 cursor to N next unmatched #endif or #else | |
671 |]'| ]' 1 cursor to next lowercase mark, on first | |
672 non-blank | |
673 |])| ]) 1 cursor N times forward to unmatched ')' | |
674 |]star| ]* 1 same as "]/" | |
675 |]`| ]` 1 cursor to next lowercase mark | |
676 |]/| ]/ 1 cursor to N next end of a C comment | |
677 |]D| ]D list all #defines found in current and | |
678 included files matching the word under the | |
679 cursor, start searching at cursor position | |
680 |]I| ]I list all lines found in current and | |
681 included files that contain the word under | |
682 the cursor, start searching at cursor | |
683 position | |
684 |]P| ]P 2 same as "[p" | |
685 |][| ][ 1 cursor N SECTIONS forward | |
686 |]]| ]] 1 cursor N sections forward | |
687 |]c| ]c 1 cursor N times forward to start of change | |
688 |]d| ]d show first #define found in current and | |
689 included files matching the word under the | |
690 cursor, start searching at cursor position | |
691 |]f| ]f same as "gf" | |
692 |]i| ]i show first line found in current and | |
693 included files that contains the word under | |
694 the cursor, start searching at cursor | |
695 position | |
696 |]m| ]m 1 cursor N times forward to end of member | |
697 function | |
1118 | 698 |]p| ]p 2 like "p", but adjust indent to current line |
699 |]s| ]s 1 move to next misspelled word | |
7 | 700 |]z| ]z 1 move to end of open fold |
701 |]}| ]} 1 cursor N times forward to unmatched '}' | |
4098 | 702 |]<MiddleMouse>| ]<MiddleMouse> 2 same as "]p" |
7 | 703 |
704 ============================================================================== | |
705 2.4 Commands starting with 'g' *g* | |
706 | |
707 tag char note action in Normal mode ~ | |
708 ------------------------------------------------------------------------------ | |
709 |g_CTRL-A| g CTRL-A only when compiled with MEM_PROFILE | |
710 defined: dump a memory profile | |
711 |g_CTRL-G| g CTRL-G show information about current cursor | |
712 position | |
713 |g_CTRL-H| g CTRL-H start Select block mode | |
714 |g_CTRL-]| g CTRL-] |:tjump| to the tag under the cursor | |
715 |g#| g# 1 like "#", but without using "\<" and "\>" | |
716 |g$| g$ 1 when 'wrap' off go to rightmost character of | |
717 the current line that is on the screen; | |
718 when 'wrap' on go to the rightmost character | |
719 of the current screen line | |
720 |g&| g& 2 repeat last ":s" on all lines | |
721 |g'| g'{mark} 1 like |'| but without changing the jumplist | |
722 |g`| g`{mark} 1 like |`| but without changing the jumplist | |
723 |gstar| g* 1 like "*", but without using "\<" and "\>" | |
6647 | 724 |g+| g+ go to newer text state N times |
725 |g,| g, 1 go to N newer position in change list | |
726 |g-| g- go to older text state N times | |
7 | 727 |g0| g0 1 when 'wrap' off go to leftmost character of |
728 the current line that is on the screen; | |
729 when 'wrap' on go to the leftmost character | |
730 of the current screen line | |
731 |g8| g8 print hex value of bytes used in UTF-8 | |
732 character under the cursor | |
6647 | 733 |g;| g; 1 go to N older position in change list |
447 | 734 |g<| g< display previous command output |
7 | 735 |g?| g? 2 Rot13 encoding operator |
736 |g?g?| g?? 2 Rot13 encode current line | |
737 |g?g?| g?g? 2 Rot13 encode current line | |
738 |gD| gD 1 go to definition of word under the cursor | |
739 in current file | |
740 |gE| gE 1 go backwards to the end of the previous | |
741 WORD | |
742 |gH| gH start Select line mode | |
743 |gI| gI 2 like "I", but always start in column 1 | |
744 |gJ| gJ 2 join lines without inserting space | |
3713 | 745 |gN| gN 1,2 find the previous match with the last used |
746 search pattern and Visually select it | |
7 | 747 |gP| ["x]gP 2 put the text [from register x] before the |
748 cursor N times, leave the cursor after it | |
2681 | 749 |gQ| gQ switch to "Ex" mode with Vim editing |
7 | 750 |gR| gR 2 enter Virtual Replace mode |
4358 | 751 |gT| gT go to the previous tab page |
7 | 752 |gU| gU{motion} 2 make Nmove text uppercase |
753 |gV| gV don't reselect the previous Visual area | |
754 when executing a mapping or menu in Select | |
755 mode | |
756 |g]| g] :tselect on the tag under the cursor | |
757 |g^| g^ 1 when 'wrap' off go to leftmost non-white | |
758 character of the current line that is on | |
759 the screen; when 'wrap' on go to the | |
760 leftmost non-white character of the current | |
761 screen line | |
6647 | 762 |g_| g_ 1 cursor to the last CHAR N - 1 lines lower |
7 | 763 |ga| ga print ascii value of character under the |
764 cursor | |
765 |gd| gd 1 go to definition of word under the cursor | |
766 in current function | |
767 |ge| ge 1 go backwards to the end of the previous | |
768 word | |
769 |gf| gf start editing the file whose name is under | |
770 the cursor | |
681 | 771 |gF| gF start editing the file whose name is under |
772 the cursor and jump to the line number | |
773 following the filename. | |
7 | 774 |gg| gg 1 cursor to line N, default first line |
775 |gh| gh start Select mode | |
776 |gi| gi 2 like "i", but first move to the |'^| mark | |
777 |gj| gj 1 like "j", but when 'wrap' on go N screen | |
778 lines down | |
779 |gk| gk 1 like "k", but when 'wrap' on go N screen | |
780 lines up | |
3701 | 781 |gn| gn 1,2 find the next match with the last used |
782 search pattern and Visually select it | |
7 | 783 |gm| gm 1 go to character at middle of the screenline |
784 |go| go 1 cursor to byte N in the buffer | |
785 |gp| ["x]gp 2 put the text [from register x] after the | |
786 cursor N times, leave the cursor after it | |
787 |gq| gq{motion} 2 format Nmove text | |
788 |gr| gr{char} 2 virtual replace N chars with {char} | |
789 |gs| gs go to sleep for N seconds (default 1) | |
4358 | 790 |gt| gt go to the next tab page |
7 | 791 |gu| gu{motion} 2 make Nmove text lowercase |
792 |gv| gv reselect the previous Visual area | |
793 |gw| gw{motion} 2 format Nmove text and keep cursor | |
1118 | 794 |netrw-gx| gx execute application for file name under the |
795 cursor (only with |netrw| plugin) | |
856 | 796 |g@| g@{motion} call 'operatorfunc' |
7 | 797 |g~| g~{motion} 2 swap case for Nmove text |
798 |g<Down>| g<Down> 1 same as "gj" | |
799 |g<End>| g<End> 1 same as "g$" | |
800 |g<Home>| g<Home> 1 same as "g0" | |
801 |g<LeftMouse>| g<LeftMouse> same as <C-LeftMouse> | |
802 g<MiddleMouse> same as <C-MiddleMouse> | |
803 |g<RightMouse>| g<RightMouse> same as <C-RightMouse> | |
804 |g<Up>| g<Up> 1 same as "gk" | |
805 | |
806 ============================================================================== | |
807 2.5 Commands starting with 'z' *z* | |
808 | |
809 tag char note action in Normal mode ~ | |
810 ------------------------------------------------------------------------------ | |
811 |z<CR>| z<CR> redraw, cursor line to top of window, | |
812 cursor on first non-blank | |
813 |zN<CR>| z{height}<CR> redraw, make window {height} lines high | |
814 |z+| z+ cursor on line N (default line below | |
815 window), otherwise like "z<CR>" | |
816 |z-| z- redraw, cursor line at bottom of window, | |
817 cursor on first non-blank | |
818 |z.| z. redraw, cursor line to center of window, | |
819 cursor on first non-blank | |
616 | 820 |z=| z= give spelling suggestions |
7 | 821 |zA| zA open a closed fold or close an open fold |
822 recursively | |
823 |zC| zC close folds recursively | |
824 |zD| zD delete folds recursively | |
825 |zE| zE eliminate all folds | |
826 |zF| zF create a fold for N lines | |
584 | 827 |zG| zG mark word as good spelled word |
4992 | 828 |zH| zH when 'wrap' off scroll half a screenwidth |
829 to the right | |
830 |zL| zL when 'wrap' off scroll half a screenwidth | |
831 to the left | |
7 | 832 |zM| zM set 'foldlevel' to zero |
833 |zN| zN set 'foldenable' | |
834 |zO| zO open folds recursively | |
835 |zR| zR set 'foldlevel' to the deepest fold | |
584 | 836 |zW| zW mark word as wrong (bad) spelled word |
7 | 837 |zX| zX re-apply 'foldlevel' |
838 |z^| z^ cursor on line N (default line above | |
839 window), otherwise like "z-" | |
840 |za| za open a closed fold, close an open fold | |
841 |zb| zb redraw, cursor line at bottom of window | |
842 |zc| zc close a fold | |
843 |zd| zd delete a fold | |
844 |ze| ze when 'wrap' off scroll horizontally to | |
845 position the cursor at the end (right side) | |
846 of the screen | |
847 |zf| zf{motion} create a fold for Nmove text | |
584 | 848 |zg| zg mark word as good spelled word |
7 | 849 |zh| zh when 'wrap' off scroll screen N characters |
850 to the right | |
851 |zi| zi toggle 'foldenable' | |
852 |zj| zj 1 move to the start of the next fold | |
853 |zk| zk 1 move to the end of the previous fold | |
854 |zl| zl when 'wrap' off scroll screen N characters | |
855 to the left | |
856 |zm| zm subtract one from 'foldlevel' | |
857 |zn| zn reset 'foldenable' | |
858 |zo| zo open fold | |
859 |zr| zr add one to 'foldlevel' | |
860 |zs| zs when 'wrap' off scroll horizontally to | |
861 position the cursor at the start (left | |
862 side) of the screen | |
863 |zt| zt redraw, cursor line at top of window | |
16553
0e473e9e70c2
patch 8.1.1280: remarks about functionality not in Vi clutters the help
Bram Moolenaar <Bram@vim.org>
parents:
16543
diff
changeset
|
864 |zuw| zuw undo |zw| |
0e473e9e70c2
patch 8.1.1280: remarks about functionality not in Vi clutters the help
Bram Moolenaar <Bram@vim.org>
parents:
16543
diff
changeset
|
865 |zug| zug undo |zg| |
0e473e9e70c2
patch 8.1.1280: remarks about functionality not in Vi clutters the help
Bram Moolenaar <Bram@vim.org>
parents:
16543
diff
changeset
|
866 |zuW| zuW undo |zW| |
0e473e9e70c2
patch 8.1.1280: remarks about functionality not in Vi clutters the help
Bram Moolenaar <Bram@vim.org>
parents:
16543
diff
changeset
|
867 |zuG| zuG undo |zG| |
7 | 868 |zv| zv open enough folds to view the cursor line |
584 | 869 |zw| zw mark word as wrong (bad) spelled word |
7 | 870 |zx| zx re-apply 'foldlevel' and do "zv" |
871 |zz| zz redraw, cursor line at center of window | |
872 |z<Left>| z<Left> same as "zh" | |
873 |z<Right>| z<Right> same as "zl" | |
874 | |
875 ============================================================================== | |
15932 | 876 2.6 Operator-pending mode *operator-pending-index* |
877 | |
878 These can be used after an operator, but before a {motion} has been entered. | |
879 | |
16023 | 880 tag char action in Operator-pending mode ~ |
15932 | 881 ----------------------------------------------------------------------- |
882 |o_v| v force operator to work characterwise | |
883 |o_V| V force operator to work linewise | |
884 |o_CTRL-V| CTRL-V force operator to work blockwise | |
885 | |
886 ============================================================================== | |
7 | 887 3. Visual mode *visual-index* |
888 | |
236 | 889 Most commands in Visual mode are the same as in Normal mode. The ones listed |
7 | 890 here are those that are different. |
891 | |
892 tag command note action in Visual mode ~ | |
893 ------------------------------------------------------------------------------ | |
894 |v_CTRL-\_CTRL-N| CTRL-\ CTRL-N stop Visual mode | |
895 |v_CTRL-\_CTRL-G| CTRL-\ CTRL-G go to mode specified with 'insertmode' | |
8951
0bdeaf7092bc
commit https://github.com/vim/vim/commit/aa3b15dbebf333282503d6031e2f9ba6ee4398ed
Christian Brabandt <cb@256bit.org>
parents:
8673
diff
changeset
|
896 |v_CTRL-A| CTRL-A 2 add N to number in highlighted text |
42 | 897 |v_CTRL-C| CTRL-C stop Visual mode |
7 | 898 |v_CTRL-G| CTRL-G toggle between Visual mode and Select mode |
899 |v_<BS>| <BS> 2 Select mode: delete highlighted area | |
900 |v_CTRL-H| CTRL-H 2 same as <BS> | |
901 |v_CTRL-O| CTRL-O switch from Select to Visual mode for one | |
902 command | |
903 |v_CTRL-V| CTRL-V make Visual mode blockwise or stop Visual | |
904 mode | |
8951
0bdeaf7092bc
commit https://github.com/vim/vim/commit/aa3b15dbebf333282503d6031e2f9ba6ee4398ed
Christian Brabandt <cb@256bit.org>
parents:
8673
diff
changeset
|
905 |v_CTRL-X| CTRL-X 2 subtract N from number in highlighted text |
42 | 906 |v_<Esc>| <Esc> stop Visual mode |
7 | 907 |v_CTRL-]| CTRL-] jump to highlighted tag |
908 |v_!| !{filter} 2 filter the highlighted lines through the | |
909 external command {filter} | |
910 |v_:| : start a command-line with the highlighted | |
911 lines as a range | |
912 |v_<| < 2 shift the highlighted lines one | |
913 'shiftwidth' left | |
914 |v_=| = 2 filter the highlighted lines through the | |
915 external program given with the 'equalprg' | |
916 option | |
917 |v_>| > 2 shift the highlighted lines one | |
918 'shiftwidth' right | |
919 |v_b_A| A 2 block mode: append same text in all lines, | |
920 after the highlighted area | |
921 |v_C| C 2 delete the highlighted lines and start | |
922 insert | |
923 |v_D| D 2 delete the highlighted lines | |
924 |v_b_I| I 2 block mode: insert same text in all lines, | |
925 before the highlighted area | |
926 |v_J| J 2 join the highlighted lines | |
927 |v_K| K run 'keywordprg' on the highlighted area | |
928 |v_O| O Move horizontally to other corner of area. | |
929 Q does not start Ex mode | |
930 |v_R| R 2 delete the highlighted lines and start | |
931 insert | |
932 |v_S| S 2 delete the highlighted lines and start | |
933 insert | |
934 |v_U| U 2 make highlighted area uppercase | |
935 |v_V| V make Visual mode linewise or stop Visual | |
936 mode | |
937 |v_X| X 2 delete the highlighted lines | |
938 |v_Y| Y yank the highlighted lines | |
1618 | 939 |v_aquote| a" extend highlighted area with a double |
940 quoted string | |
941 |v_a'| a' extend highlighted area with a single | |
942 quoted string | |
7 | 943 |v_a(| a( same as ab |
944 |v_a)| a) same as ab | |
945 |v_a<| a< extend highlighted area with a <> block | |
946 |v_a>| a> same as a< | |
947 |v_aB| aB extend highlighted area with a {} block | |
948 |v_aW| aW extend highlighted area with "a WORD" | |
949 |v_a[| a[ extend highlighted area with a [] block | |
950 |v_a]| a] same as a[ | |
1618 | 951 |v_a`| a` extend highlighted area with a backtick |
952 quoted string | |
7 | 953 |v_ab| ab extend highlighted area with a () block |
954 |v_ap| ap extend highlighted area with a paragraph | |
955 |v_as| as extend highlighted area with a sentence | |
1618 | 956 |v_at| at extend highlighted area with a tag block |
7 | 957 |v_aw| aw extend highlighted area with "a word" |
958 |v_a{| a{ same as aB | |
959 |v_a}| a} same as aB | |
960 |v_c| c 2 delete highlighted area and start insert | |
961 |v_d| d 2 delete highlighted area | |
8951
0bdeaf7092bc
commit https://github.com/vim/vim/commit/aa3b15dbebf333282503d6031e2f9ba6ee4398ed
Christian Brabandt <cb@256bit.org>
parents:
8673
diff
changeset
|
962 |v_g_CTRL-A| g CTRL-A 2 add N to number in highlighted text |
0bdeaf7092bc
commit https://github.com/vim/vim/commit/aa3b15dbebf333282503d6031e2f9ba6ee4398ed
Christian Brabandt <cb@256bit.org>
parents:
8673
diff
changeset
|
963 |v_g_CTRL-X| g CTRL-X 2 subtract N from number in highlighted text |
7 | 964 |v_gJ| gJ 2 join the highlighted lines without |
965 inserting spaces | |
966 |v_gq| gq 2 format the highlighted lines | |
967 |v_gv| gv exchange current and previous highlighted | |
968 area | |
1618 | 969 |v_iquote| i" extend highlighted area with a double |
970 quoted string (without quotes) | |
971 |v_i'| i' extend highlighted area with a single | |
972 quoted string (without quotes) | |
7 | 973 |v_i(| i( same as ib |
974 |v_i)| i) same as ib | |
975 |v_i<| i< extend highlighted area with inner <> block | |
976 |v_i>| i> same as i< | |
977 |v_iB| iB extend highlighted area with inner {} block | |
978 |v_iW| iW extend highlighted area with "inner WORD" | |
979 |v_i[| i[ extend highlighted area with inner [] block | |
980 |v_i]| i] same as i[ | |
1618 | 981 |v_i`| i` extend highlighted area with a backtick |
982 quoted string (without the backticks) | |
7 | 983 |v_ib| ib extend highlighted area with inner () block |
984 |v_ip| ip extend highlighted area with inner paragraph | |
985 |v_is| is extend highlighted area with inner sentence | |
1618 | 986 |v_it| it extend highlighted area with inner tag block |
7 | 987 |v_iw| iw extend highlighted area with "inner word" |
988 |v_i{| i{ same as iB | |
989 |v_i}| i} same as iB | |
990 |v_o| o move cursor to other corner of area | |
13735 | 991 |v_r| r 2 replace highlighted area with a character |
7 | 992 |v_s| s 2 delete highlighted area and start insert |
993 |v_u| u 2 make highlighted area lowercase | |
994 |v_v| v make Visual mode characterwise or stop | |
995 Visual mode | |
996 |v_x| x 2 delete the highlighted area | |
997 |v_y| y yank the highlighted area | |
998 |v_~| ~ 2 swap case for the highlighted area | |
999 | |
1000 ============================================================================== | |
1001 4. Command-line editing *ex-edit-index* | |
1002 | |
1003 Get to the command-line with the ':', '!', '/' or '?' commands. | |
1004 Normal characters are inserted at the current cursor position. | |
1005 "Completion" below refers to context-sensitive completion. It will complete | |
1006 file names, tags, commands etc. as appropriate. | |
1007 | |
16023 | 1008 tag command action in Command-line editing mode ~ |
2681 | 1009 ------------------------------------------------------------------------------ |
7 | 1010 CTRL-@ not used |
1011 |c_CTRL-A| CTRL-A do completion on the pattern in front of the | |
1012 cursor and insert all matches | |
1013 |c_CTRL-B| CTRL-B cursor to begin of command-line | |
2681 | 1014 |c_CTRL-C| CTRL-C same as <Esc> |
7 | 1015 |c_CTRL-D| CTRL-D list completions that match the pattern in |
1016 front of the cursor | |
1017 |c_CTRL-E| CTRL-E cursor to end of command-line | |
1018 |'cedit'| CTRL-F default value for 'cedit': opens the | |
1019 command-line window; otherwise not used | |
10004
8061455d9179
commit https://github.com/vim/vim/commit/818078ddfbb8cc2546f697c5675a251d095722ec
Christian Brabandt <cb@256bit.org>
parents:
9975
diff
changeset
|
1020 |c_CTRL-G| CTRL-G next match when 'incsearch' is active |
7 | 1021 |c_<BS>| <BS> delete the character in front of the cursor |
1022 |c_digraph| {char1} <BS> {char2} | |
1023 enter digraph when 'digraph' is on | |
1024 |c_CTRL-H| CTRL-H same as <BS> | |
1025 |c_<Tab>| <Tab> if 'wildchar' is <Tab>: Do completion on | |
1026 the pattern in front of the cursor | |
1027 |c_<S-Tab>| <S-Tab> same as CTRL-P | |
1028 |c_wildchar| 'wildchar' Do completion on the pattern in front of the | |
1029 cursor (default: <Tab>) | |
1030 |c_CTRL-I| CTRL-I same as <Tab> | |
1031 |c_<NL>| <NL> same as <CR> | |
1032 |c_CTRL-J| CTRL-J same as <CR> | |
1033 |c_CTRL-K| CTRL-K {char1} {char2} | |
1034 enter digraph | |
1035 |c_CTRL-L| CTRL-L do completion on the pattern in front of the | |
1036 cursor and insert the longest common part | |
1037 |c_<CR>| <CR> execute entered command | |
10244
876fbdd84e52
commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents:
10198
diff
changeset
|
1038 |c_CTRL-M| CTRL-M same as <CR> |
7 | 1039 |c_CTRL-N| CTRL-N after using 'wildchar' with multiple matches: |
11062 | 1040 go to next match, otherwise: recall older |
1041 command-line from history. | |
7 | 1042 CTRL-O not used |
1043 |c_CTRL-P| CTRL-P after using 'wildchar' with multiple matches: | |
11062 | 1044 go to previous match, otherwise: recall older |
1045 command-line from history. | |
7 | 1046 |c_CTRL-Q| CTRL-Q same as CTRL-V, unless it's used for terminal |
1047 control flow | |
16086 | 1048 |c_CTRL-R| CTRL-R {regname} |
7 | 1049 insert the contents of a register or object |
1050 under the cursor as if typed | |
16086 | 1051 |c_CTRL-R_CTRL-R| CTRL-R CTRL-R {regname} |
1052 |c_CTRL-R_CTRL-O| CTRL-R CTRL-O {regname} | |
7 | 1053 insert the contents of a register or object |
1054 under the cursor literally | |
1055 CTRL-S (used for terminal control flow) | |
10004
8061455d9179
commit https://github.com/vim/vim/commit/818078ddfbb8cc2546f697c5675a251d095722ec
Christian Brabandt <cb@256bit.org>
parents:
9975
diff
changeset
|
1056 |c_CTRL-T| CTRL-T previous match when 'incsearch' is active |
7 | 1057 |c_CTRL-U| CTRL-U remove all characters |
1058 |c_CTRL-V| CTRL-V insert next non-digit literally, insert three | |
1059 digit decimal number as a single byte. | |
1060 |c_CTRL-W| CTRL-W delete the word in front of the cursor | |
1061 CTRL-X not used (reserved for completion) | |
1062 CTRL-Y copy (yank) modeless selection | |
1063 CTRL-Z not used (reserved for suspend) | |
1064 |c_<Esc>| <Esc> abandon command-line without executing it | |
10244
876fbdd84e52
commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents:
10198
diff
changeset
|
1065 |c_CTRL-[| CTRL-[ same as <Esc> |
4098 | 1066 |c_CTRL-\_CTRL-N| CTRL-\ CTRL-N go to Normal mode, abandon command-line |
1067 |c_CTRL-\_CTRL-G| CTRL-\ CTRL-G go to mode specified with 'insertmode', | |
7 | 1068 abandon command-line |
1069 CTRL-\ a - d reserved for extensions | |
1070 |c_CTRL-\_e| CTRL-\ e {expr} replace the command line with the result of | |
1071 {expr} | |
1072 CTRL-\ f - z reserved for extensions | |
1073 CTRL-\ others not used | |
1118 | 1074 |c_CTRL-]| CTRL-] trigger abbreviation |
7 | 1075 |c_CTRL-^| CTRL-^ toggle use of |:lmap| mappings |
1076 |c_CTRL-_| CTRL-_ when 'allowrevins' set: change language | |
1077 (Hebrew, Farsi) | |
1078 |c_<Del>| <Del> delete the character under the cursor | |
1079 | |
1080 |c_<Left>| <Left> cursor left | |
1081 |c_<S-Left>| <S-Left> cursor one word left | |
1082 |c_<C-Left>| <C-Left> cursor one word left | |
1083 |c_<Right>| <Right> cursor right | |
1084 |c_<S-Right>| <S-Right> cursor one word right | |
1085 |c_<C-Right>| <C-Right> cursor one word right | |
1086 |c_<Up>| <Up> recall previous command-line from history that | |
1087 matches pattern in front of the cursor | |
1088 |c_<S-Up>| <S-Up> recall previous command-line from history | |
1089 |c_<Down>| <Down> recall next command-line from history that | |
1090 matches pattern in front of the cursor | |
1091 |c_<S-Down>| <S-Down> recall next command-line from history | |
1092 |c_<Home>| <Home> cursor to start of command-line | |
1093 |c_<End>| <End> cursor to end of command-line | |
1094 |c_<PageDown>| <PageDown> same as <S-Down> | |
1095 |c_<PageUp>| <PageUp> same as <S-Up> | |
1096 |c_<Insert>| <Insert> toggle insert/overstrike mode | |
1097 |c_<LeftMouse>| <LeftMouse> cursor at mouse click | |
1098 | |
15932 | 1099 ============================================================================== |
1100 5. Terminal-Job mode *terminal-job-index* | |
1101 | |
1102 Most Normal mode commands except for window commands (|CTRL-W|) do not work in | |
1103 a terminal window. Switch to Terminal-Normal mode to use them. | |
1104 This assumes 'termwinkey' is not set. | |
1105 | |
16023 | 1106 tag char action in Terminal-Job mode ~ |
15932 | 1107 ----------------------------------------------------------------------- |
1108 |t_CTRL-\_CTRL-N| CTRL-\ CTRL-N switch to Terminal-Normal mode | |
16023 | 1109 |t_CTRL-W_N| CTRL-W N switch to Terminal-Normal mode |
1110 |t_CTRL-W_:| CTRL-W : enter an Ex command | |
1111 |t_CTRL-W_.| CTRL-W . type CTRL-W in the terminal | |
15932 | 1112 CTRL-W CTRL-\ send a CTRL-\ to the job in the terminal |
16380 | 1113 |t_CTRL-W_quote| CTRL-W " {0-9a-z"%#*:=} |
15932 | 1114 paste register in the terminal |
1115 |t_CTRL-W_CTRL-C| CTRL-W CTRL-C forcefully ends the job | |
16380 | 1116 |t_CTRL-W_CTRL-W| CTRL-W CTRL-W move focus to the next window |
16023 | 1117 |t_CTRL-W_gt| CTRL-W gt go to next tabpage, same as `gt` |
1118 |t_CTRL-W_gT| CTRL-W gT go to previous tabpage, same as `gT` | |
15932 | 1119 |
7557
502ca0a62fd8
commit https://github.com/vim/vim/commit/acb4f221c715a333f4c49a2235a8006c6ac6e4d5
Christian Brabandt <cb@256bit.org>
parents:
7477
diff
changeset
|
1120 You found it, Arthur! *holy-grail* *:smile* |
7 | 1121 |
1122 ============================================================================== | |
15932 | 1123 6. EX commands *ex-cmd-index* *:index* |
7 | 1124 |
1125 This is a brief but complete listing of all the ":" commands, without | |
1126 mentioning any arguments. The optional part of the command name is inside []. | |
1127 The commands are sorted on the non-optional part of their name. | |
1128 | |
16023 | 1129 tag command action ~ |
2681 | 1130 ------------------------------------------------------------------------------ |
7 | 1131 |:!| :! filter lines or execute an external command |
1132 |:!!| :!! repeat last ":!" command | |
1133 |:#| :# same as ":number" | |
1134 |:&| :& repeat last ":substitute" | |
1135 |:star| :* execute contents of a register | |
1136 |:<| :< shift lines one 'shiftwidth' left | |
1137 |:=| := print the cursor line number | |
1138 |:>| :> shift lines one 'shiftwidth' right | |
1139 |:@| :@ execute contents of a register | |
1140 |:@@| :@@ repeat the previous ":@" | |
1141 |:Next| :N[ext] go to previous file in the argument list | |
1142 |:Print| :P[rint] print lines | |
1143 |:X| :X ask for encryption key | |
1144 |:append| :a[ppend] append text | |
1145 |:abbreviate| :ab[breviate] enter abbreviation | |
1146 |:abclear| :abc[lear] remove all abbreviations | |
1147 |:aboveleft| :abo[veleft] make split window appear left or above | |
1148 |:all| :al[l] open a window for each file in the argument | |
1149 list | |
1150 |:amenu| :am[enu] enter new menu item for all modes | |
1151 |:anoremenu| :an[oremenu] enter a new menu for all modes that will not | |
1152 be remapped | |
1153 |:args| :ar[gs] print the argument list | |
1154 |:argadd| :arga[dd] add items to the argument list | |
1155 |:argdelete| :argd[elete] delete items from the argument list | |
1156 |:argedit| :arge[dit] add item to the argument list and edit it | |
1157 |:argdo| :argdo do a command on all items in the argument list | |
1158 |:argglobal| :argg[lobal] define the global argument list | |
1159 |:arglocal| :argl[ocal] define a local argument list | |
1160 |:argument| :argu[ment] go to specific file in the argument list | |
1161 |:ascii| :as[cii] print ascii value of character under the cursor | |
1162 |:autocmd| :au[tocmd] enter or show autocommands | |
1163 |:augroup| :aug[roup] select the autocommand group to use | |
1164 |:aunmenu| :aun[menu] remove menu for all modes | |
1165 |:buffer| :b[uffer] go to specific buffer in the buffer list | |
1166 |:bNext| :bN[ext] go to previous buffer in the buffer list | |
1167 |:ball| :ba[ll] open a window for each buffer in the buffer list | |
1168 |:badd| :bad[d] add buffer to the buffer list | |
1169 |:bdelete| :bd[elete] remove a buffer from the buffer list | |
1170 |:behave| :be[have] set mouse and selection behavior | |
1171 |:belowright| :bel[owright] make split window appear right or below | |
1172 |:bfirst| :bf[irst] go to first buffer in the buffer list | |
1173 |:blast| :bl[ast] go to last buffer in the buffer list | |
1174 |:bmodified| :bm[odified] go to next buffer in the buffer list that has | |
1175 been modified | |
1176 |:bnext| :bn[ext] go to next buffer in the buffer list | |
1177 |:botright| :bo[tright] make split window appear at bottom or far right | |
1178 |:bprevious| :bp[revious] go to previous buffer in the buffer list | |
1179 |:brewind| :br[ewind] go to first buffer in the buffer list | |
1180 |:break| :brea[k] break out of while loop | |
1181 |:breakadd| :breaka[dd] add a debugger breakpoint | |
1182 |:breakdel| :breakd[el] delete a debugger breakpoint | |
1183 |:breaklist| :breakl[ist] list debugger breakpoints | |
1184 |:browse| :bro[wse] use file selection dialog | |
1185 |:bufdo| :bufdo execute command in each listed buffer | |
1186 |:buffers| :buffers list all files in the buffer list | |
1187 |:bunload| :bun[load] unload a specific buffer | |
1188 |:bwipeout| :bw[ipeout] really delete a buffer | |
1189 |:change| :c[hange] replace a line or series of lines | |
1190 |:cNext| :cN[ext] go to previous error | |
1191 |:cNfile| :cNf[ile] go to last error in previous file | |
1192 |:cabbrev| :ca[bbrev] like ":abbreviate" but for Command-line mode | |
1193 |:cabclear| :cabc[lear] clear all abbreviations for Command-line mode | |
16505
28e3ba82d8c8
patch 8.1.1256: cannot navigate through errors relative to the cursor
Bram Moolenaar <Bram@vim.org>
parents:
16427
diff
changeset
|
1194 |:cabove| :cabo[ve] go to error above current line |
5734 | 1195 |:caddbuffer| :cad[dbuffer] add errors from buffer |
1196 |:caddexpr| :cadde[xpr] add errors from expr | |
625 | 1197 |:caddfile| :caddf[ile] add error message to current quickfix list |
16543
1d2b3bb35414
patch 8.1.1275: cannot navigate to errors before/after the cursor
Bram Moolenaar <Bram@vim.org>
parents:
16505
diff
changeset
|
1198 |:cafter| :caf[ter] go to error after current cursor |
7 | 1199 |:call| :cal[l] call a function |
1200 |:catch| :cat[ch] part of a :try command | |
16543
1d2b3bb35414
patch 8.1.1275: cannot navigate to errors before/after the cursor
Bram Moolenaar <Bram@vim.org>
parents:
16505
diff
changeset
|
1201 |:cbefore| :cbef[ore] go to error before current cursor |
1d2b3bb35414
patch 8.1.1275: cannot navigate to errors before/after the cursor
Bram Moolenaar <Bram@vim.org>
parents:
16505
diff
changeset
|
1202 |:cbelow| :cbel[ow] go to error below current line |
9458
374afcf9d11d
commit https://github.com/vim/vim/commit/537ef08408c50e0c4104d57f74993b3b0ed9560d
Christian Brabandt <cb@256bit.org>
parents:
9286
diff
changeset
|
1203 |:cbottom| :cbo[ttom] scroll to the bottom of the quickfix window |
41 | 1204 |:cbuffer| :cb[uffer] parse error messages and jump to first error |
7 | 1205 |:cc| :cc go to specific error |
1206 |:cclose| :ccl[ose] close quickfix window | |
1207 |:cd| :cd change directory | |
7092
64e30831fa42
commit https://github.com/vim/vim/commit/aa23b379421aa214e6543b06c974594a25799b09
Christian Brabandt <cb@256bit.org>
parents:
6647
diff
changeset
|
1208 |:cdo| :cdo execute command in each valid error list entry |
64e30831fa42
commit https://github.com/vim/vim/commit/aa23b379421aa214e6543b06c974594a25799b09
Christian Brabandt <cb@256bit.org>
parents:
6647
diff
changeset
|
1209 |:cfdo| :cfd[o] execute command in each file in error list |
7 | 1210 |:center| :ce[nter] format lines at the center |
446 | 1211 |:cexpr| :cex[pr] read errors from expr and jump to first |
7 | 1212 |:cfile| :cf[ile] read file with error messages and jump to first |
1213 |:cfirst| :cfir[st] go to the specified error, default first one | |
799 | 1214 |:cgetbuffer| :cgetb[uffer] get errors from buffer |
796 | 1215 |:cgetexpr| :cgete[xpr] get errors from expr |
7 | 1216 |:cgetfile| :cg[etfile] read file with error messages |
4186 | 1217 |:changes| :changes print the change list |
7 | 1218 |:chdir| :chd[ir] change directory |
1219 |:checkpath| :che[ckpath] list included files | |
1220 |:checktime| :checkt[ime] check timestamp of loaded buffers | |
9555
9560a5b782ee
commit https://github.com/vim/vim/commit/42ebd066422d73cdb7bda6a1dc828a3dd022dec8
Christian Brabandt <cb@256bit.org>
parents:
9458
diff
changeset
|
1221 |:chistory| :chi[story] list the error lists |
9286
64035abb986b
commit https://github.com/vim/vim/commit/c95a302a4c42ec8230473cd4a5e0064d0a143aa8
Christian Brabandt <cb@256bit.org>
parents:
8951
diff
changeset
|
1222 |:clast| :cla[st] go to the specified error, default last one |
64035abb986b
commit https://github.com/vim/vim/commit/c95a302a4c42ec8230473cd4a5e0064d0a143aa8
Christian Brabandt <cb@256bit.org>
parents:
8951
diff
changeset
|
1223 |:clearjumps| :cle[arjumps] clear the jump list |
7 | 1224 |:clist| :cl[ist] list all errors |
1225 |:close| :clo[se] close current window | |
1226 |:cmap| :cm[ap] like ":map" but for Command-line mode | |
1227 |:cmapclear| :cmapc[lear] clear all mappings for Command-line mode | |
1228 |:cmenu| :cme[nu] add menu for Command-line mode | |
1229 |:cnext| :cn[ext] go to next error | |
1230 |:cnewer| :cnew[er] go to newer error list | |
1231 |:cnfile| :cnf[ile] go to first error in next file | |
1232 |:cnoremap| :cno[remap] like ":noremap" but for Command-line mode | |
1233 |:cnoreabbrev| :cnorea[bbrev] like ":noreabbrev" but for Command-line mode | |
1234 |:cnoremenu| :cnoreme[nu] like ":noremenu" but for Command-line mode | |
1235 |:copy| :co[py] copy lines | |
1236 |:colder| :col[der] go to older error list | |
1237 |:colorscheme| :colo[rscheme] load a specific color scheme | |
1238 |:command| :com[mand] create user-defined command | |
1239 |:comclear| :comc[lear] clear all user-defined commands | |
1240 |:compiler| :comp[iler] do settings for a specific compiler | |
1241 |:continue| :con[tinue] go back to :while | |
1242 |:confirm| :conf[irm] prompt user when confirmation required | |
17161 | 1243 |:const| :cons[t] create a variable as a constant |
7 | 1244 |:copen| :cope[n] open quickfix window |
1245 |:cprevious| :cp[revious] go to previous error | |
1246 |:cpfile| :cpf[ile] go to last error in previous file | |
1247 |:cquit| :cq[uit] quit Vim with an error code | |
1248 |:crewind| :cr[ewind] go to the specified error, default first one | |
7557
502ca0a62fd8
commit https://github.com/vim/vim/commit/acb4f221c715a333f4c49a2235a8006c6ac6e4d5
Christian Brabandt <cb@256bit.org>
parents:
7477
diff
changeset
|
1249 |:cscope| :cs[cope] execute cscope command |
7 | 1250 |:cstag| :cst[ag] use cscope to jump to a tag |
1251 |:cunmap| :cu[nmap] like ":unmap" but for Command-line mode | |
1252 |:cunabbrev| :cuna[bbrev] like ":unabbrev" but for Command-line mode | |
1253 |:cunmenu| :cunme[nu] remove menu for Command-line mode | |
1254 |:cwindow| :cw[indow] open or close quickfix window | |
1255 |:delete| :d[elete] delete lines | |
24 | 1256 |:delmarks| :delm[arks] delete marks |
7 | 1257 |:debug| :deb[ug] run a command in debugging mode |
1258 |:debuggreedy| :debugg[reedy] read debug mode commands from normal input | |
1259 |:delcommand| :delc[ommand] delete user-defined command | |
1260 |:delfunction| :delf[unction] delete a user function | |
1261 |:diffupdate| :dif[fupdate] update 'diff' buffers | |
1262 |:diffget| :diffg[et] remove differences in current buffer | |
16 | 1263 |:diffoff| :diffo[ff] switch off diff mode |
7 | 1264 |:diffpatch| :diffp[atch] apply a patch and show differences |
1265 |:diffput| :diffpu[t] remove differences in other buffer | |
1266 |:diffsplit| :diffs[plit] show differences with another file | |
1267 |:diffthis| :diffthis make current window a diff window | |
1268 |:digraphs| :dig[raphs] show or enter digraphs | |
1269 |:display| :di[splay] display registers | |
1270 |:djump| :dj[ump] jump to #define | |
5400 | 1271 |:dl| :dl short for |:delete| with the 'l' flag |
9887
b4da19b7539f
commit https://github.com/vim/vim/commit/dc1f1645cb495fa6bfbe216d7359f23539a0e25d
Christian Brabandt <cb@256bit.org>
parents:
9555
diff
changeset
|
1272 |:del| :del[ete]l short for |:delete| with the 'l' flag |
5220 | 1273 |:dlist| :dli[st] list #defines |
7 | 1274 |:doautocmd| :do[autocmd] apply autocommands to current buffer |
1275 |:doautoall| :doautoa[ll] apply autocommands for all loaded buffers | |
5400 | 1276 |:dp| :d[elete]p short for |:delete| with the 'p' flag |
7 | 1277 |:drop| :dr[op] jump to window editing file or edit file in |
1278 current window | |
1279 |:dsearch| :ds[earch] list one #define | |
1280 |:dsplit| :dsp[lit] split window and jump to #define | |
1281 |:edit| :e[dit] edit a file | |
771 | 1282 |:earlier| :ea[rlier] go to older change, undo |
7 | 1283 |:echo| :ec[ho] echoes the result of expressions |
1284 |:echoerr| :echoe[rr] like :echo, show like an error and use history | |
1285 |:echohl| :echoh[l] set highlighting for echo commands | |
1286 |:echomsg| :echom[sg] same as :echo, put message in history | |
1287 |:echon| :echon same as :echo, but without <EOL> | |
1288 |:else| :el[se] part of an :if command | |
1289 |:elseif| :elsei[f] part of an :if command | |
1290 |:emenu| :em[enu] execute a menu by name | |
1291 |:endif| :en[dif] end previous :if | |
392 | 1292 |:endfor| :endfo[r] end previous :for |
7 | 1293 |:endfunction| :endf[unction] end of a user function |
1294 |:endtry| :endt[ry] end previous :try | |
1295 |:endwhile| :endw[hile] end previous :while | |
1296 |:enew| :ene[w] edit a new, unnamed buffer | |
1297 |:ex| :ex same as ":edit" | |
1298 |:execute| :exe[cute] execute result of expressions | |
1299 |:exit| :exi[t] same as ":xit" | |
40 | 1300 |:exusage| :exu[sage] overview of Ex commands |
7 | 1301 |:file| :f[ile] show or set the current file name |
1302 |:files| :files list all files in the buffer list | |
1303 |:filetype| :filet[ype] switch file type detection on/off | |
9975
03fa8a51e9dc
commit https://github.com/vim/vim/commit/e4a3bcf28d92d0bde9ca227ccb40d401038185e5
Christian Brabandt <cb@256bit.org>
parents:
9887
diff
changeset
|
1304 |:filter| :filt[er] filter output of following command |
7 | 1305 |:find| :fin[d] find file in 'path' and edit it |
1306 |:finally| :fina[lly] part of a :try command | |
1307 |:finish| :fini[sh] quit sourcing a Vim script | |
1308 |:first| :fir[st] go to the first file in the argument list | |
1309 |:fixdel| :fix[del] set key code of <Del> | |
1310 |:fold| :fo[ld] create a fold | |
1311 |:foldclose| :foldc[lose] close folds | |
1312 |:folddoopen| :foldd[oopen] execute command on lines not in a closed fold | |
1313 |:folddoclosed| :folddoc[losed] execute command on lines in a closed fold | |
1314 |:foldopen| :foldo[pen] open folds | |
392 | 1315 |:for| :for for loop |
7 | 1316 |:function| :fu[nction] define a user function |
1317 |:global| :g[lobal] execute commands for matching lines | |
1318 |:goto| :go[to] go to byte in the buffer | |
1319 |:grep| :gr[ep] run 'grepprg' and jump to first match | |
392 | 1320 |:grepadd| :grepa[dd] like :grep, but append to current list |
7 | 1321 |:gui| :gu[i] start the GUI |
1322 |:gvim| :gv[im] start the GUI | |
1323 |:hardcopy| :ha[rdcopy] send text to the printer | |
1324 |:help| :h[elp] open a help window | |
6228 | 1325 |:helpclose| :helpc[lose] close one help window |
7 | 1326 |:helpfind| :helpf[ind] dialog to open a help window |
1327 |:helpgrep| :helpg[rep] like ":grep" but searches help files | |
1328 |:helptags| :helpt[ags] generate help tags for a directory | |
1329 |:highlight| :hi[ghlight] specify highlighting methods | |
1330 |:hide| :hid[e] hide current buffer for a command | |
1331 |:history| :his[tory] print a history list | |
1332 |:insert| :i[nsert] insert text | |
1333 |:iabbrev| :ia[bbrev] like ":abbrev" but for Insert mode | |
1334 |:iabclear| :iabc[lear] like ":abclear" but for Insert mode | |
1335 |:if| :if execute commands when condition met | |
1336 |:ijump| :ij[ump] jump to definition of identifier | |
1337 |:ilist| :il[ist] list lines where identifier matches | |
1338 |:imap| :im[ap] like ":map" but for Insert mode | |
1339 |:imapclear| :imapc[lear] like ":mapclear" but for Insert mode | |
1340 |:imenu| :ime[nu] add menu for Insert mode | |
1341 |:inoremap| :ino[remap] like ":noremap" but for Insert mode | |
1342 |:inoreabbrev| :inorea[bbrev] like ":noreabbrev" but for Insert mode | |
1343 |:inoremenu| :inoreme[nu] like ":noremenu" but for Insert mode | |
1344 |:intro| :int[ro] print the introductory message | |
1345 |:isearch| :is[earch] list one line where identifier matches | |
1346 |:isplit| :isp[lit] split window and jump to definition of | |
1347 identifier | |
1348 |:iunmap| :iu[nmap] like ":unmap" but for Insert mode | |
1349 |:iunabbrev| :iuna[bbrev] like ":unabbrev" but for Insert mode | |
1350 |:iunmenu| :iunme[nu] remove menu for Insert mode | |
1351 |:join| :j[oin] join lines | |
1352 |:jumps| :ju[mps] print the jump list | |
1353 |:k| :k set a mark | |
392 | 1354 |:keepalt| :keepa[lt] following command keeps the alternate file |
7 | 1355 |:keepmarks| :kee[pmarks] following command keeps marks where they are |
3082 | 1356 |:keepjumps| :keepj[umps] following command keeps jumplist and marks |
5487 | 1357 |:keeppatterns| :keepp[atterns] following command keeps search pattern history |
643 | 1358 |:lNext| :lN[ext] go to previous entry in location list |
1359 |:lNfile| :lNf[ile] go to last entry in previous file | |
7 | 1360 |:list| :l[ist] print lines |
16505
28e3ba82d8c8
patch 8.1.1256: cannot navigate through errors relative to the cursor
Bram Moolenaar <Bram@vim.org>
parents:
16427
diff
changeset
|
1361 |:labove| :lab[ove] go to location above current line |
643 | 1362 |:laddexpr| :lad[dexpr] add locations from expr |
655 | 1363 |:laddbuffer| :laddb[uffer] add locations from buffer |
643 | 1364 |:laddfile| :laddf[ile] add locations to current location list |
16543
1d2b3bb35414
patch 8.1.1275: cannot navigate to errors before/after the cursor
Bram Moolenaar <Bram@vim.org>
parents:
16505
diff
changeset
|
1365 |:lafter| :laf[ter] go to location after current cursor |
7 | 1366 |:last| :la[st] go to the last file in the argument list |
1367 |:language| :lan[guage] set the language (locale) | |
771 | 1368 |:later| :lat[er] go to newer change, redo |
16543
1d2b3bb35414
patch 8.1.1275: cannot navigate to errors before/after the cursor
Bram Moolenaar <Bram@vim.org>
parents:
16505
diff
changeset
|
1369 |:lbefore| :lbef[ore] go to location before current cursor |
1d2b3bb35414
patch 8.1.1275: cannot navigate to errors before/after the cursor
Bram Moolenaar <Bram@vim.org>
parents:
16505
diff
changeset
|
1370 |:lbelow| :lbel[ow] go to location below current line |
9458
374afcf9d11d
commit https://github.com/vim/vim/commit/537ef08408c50e0c4104d57f74993b3b0ed9560d
Christian Brabandt <cb@256bit.org>
parents:
9286
diff
changeset
|
1371 |:lbottom| :lbo[ttom] scroll to the bottom of the location window |
643 | 1372 |:lbuffer| :lb[uffer] parse locations and jump to first location |
7 | 1373 |:lcd| :lc[d] change directory locally |
1374 |:lchdir| :lch[dir] change directory locally | |
643 | 1375 |:lclose| :lcl[ose] close location window |
7557
502ca0a62fd8
commit https://github.com/vim/vim/commit/acb4f221c715a333f4c49a2235a8006c6ac6e4d5
Christian Brabandt <cb@256bit.org>
parents:
7477
diff
changeset
|
1376 |:lcscope| :lcs[cope] like ":cscope" but uses location list |
7092
64e30831fa42
commit https://github.com/vim/vim/commit/aa23b379421aa214e6543b06c974594a25799b09
Christian Brabandt <cb@256bit.org>
parents:
6647
diff
changeset
|
1377 |:ldo| :ld[o] execute command in valid location list entries |
64e30831fa42
commit https://github.com/vim/vim/commit/aa23b379421aa214e6543b06c974594a25799b09
Christian Brabandt <cb@256bit.org>
parents:
6647
diff
changeset
|
1378 |:lfdo| :lfd[o] execute command in each file in location list |
7 | 1379 |:left| :le[ft] left align lines |
1380 |:leftabove| :lefta[bove] make split window appear left or above | |
1381 |:let| :let assign a value to a variable or option | |
643 | 1382 |:lexpr| :lex[pr] read locations from expr and jump to first |
1383 |:lfile| :lf[ile] read file with locations and jump to first | |
1384 |:lfirst| :lfir[st] go to the specified location, default first one | |
799 | 1385 |:lgetbuffer| :lgetb[uffer] get locations from buffer |
796 | 1386 |:lgetexpr| :lgete[xpr] get locations from expr |
643 | 1387 |:lgetfile| :lg[etfile] read file with locations |
655 | 1388 |:lgrep| :lgr[ep] run 'grepprg' and jump to first match |
1389 |:lgrepadd| :lgrepa[dd] like :grep, but append to current list | |
659 | 1390 |:lhelpgrep| :lh[elpgrep] like ":helpgrep" but uses location list |
9555
9560a5b782ee
commit https://github.com/vim/vim/commit/42ebd066422d73cdb7bda6a1dc828a3dd022dec8
Christian Brabandt <cb@256bit.org>
parents:
9458
diff
changeset
|
1391 |:lhistory| :lhi[story] list the location lists |
643 | 1392 |:ll| :ll go to specific location |
1393 |:llast| :lla[st] go to the specified location, default last one | |
1394 |:llist| :lli[st] list all locations | |
655 | 1395 |:lmake| :lmak[e] execute external command 'makeprg' and parse |
1396 error messages | |
7 | 1397 |:lmap| :lm[ap] like ":map!" but includes Lang-Arg mode |
1398 |:lmapclear| :lmapc[lear] like ":mapclear!" but includes Lang-Arg mode | |
645 | 1399 |:lnext| :lne[xt] go to next location |
643 | 1400 |:lnewer| :lnew[er] go to newer location list |
1401 |:lnfile| :lnf[ile] go to first location in next file | |
7 | 1402 |:lnoremap| :ln[oremap] like ":noremap!" but includes Lang-Arg mode |
1403 |:loadkeymap| :loadk[eymap] load the following keymaps until EOF | |
1404 |:loadview| :lo[adview] load view for current window from a file | |
1405 |:lockmarks| :loc[kmarks] following command keeps marks where they are | |
152 | 1406 |:lockvar| :lockv[ar] lock variables |
643 | 1407 |:lolder| :lol[der] go to older location list |
1408 |:lopen| :lope[n] open location window | |
1409 |:lprevious| :lp[revious] go to previous location | |
1410 |:lpfile| :lpf[ile] go to last location in previous file | |
1411 |:lrewind| :lr[ewind] go to the specified location, default first one | |
7 | 1412 |:ls| :ls list all buffers |
649 | 1413 |:ltag| :lt[ag] jump to tag and add matching tags to the |
1414 location list | |
7 | 1415 |:lunmap| :lu[nmap] like ":unmap!" but includes Lang-Arg mode |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2282
diff
changeset
|
1416 |:lua| :lua execute |Lua| command |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2282
diff
changeset
|
1417 |:luado| :luad[o] execute Lua command for each line |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2282
diff
changeset
|
1418 |:luafile| :luaf[ile] execute |Lua| script file |
655 | 1419 |:lvimgrep| :lv[imgrep] search for pattern in files |
1420 |:lvimgrepadd| :lvimgrepa[dd] like :vimgrep, but append to current list | |
643 | 1421 |:lwindow| :lw[indow] open or close location window |
7 | 1422 |:move| :m[ove] move lines |
1423 |:mark| :ma[rk] set a mark | |
1424 |:make| :mak[e] execute external command 'makeprg' and parse | |
1425 error messages | |
1426 |:map| :map show or enter a mapping | |
1427 |:mapclear| :mapc[lear] clear all mappings for Normal and Visual mode | |
1428 |:marks| :marks list all marks | |
1429 |:match| :mat[ch] define a match to highlight | |
1430 |:menu| :me[nu] enter a new menu item | |
7557
502ca0a62fd8
commit https://github.com/vim/vim/commit/acb4f221c715a333f4c49a2235a8006c6ac6e4d5
Christian Brabandt <cb@256bit.org>
parents:
7477
diff
changeset
|
1431 |:menutranslate| :menut[ranslate] add a menu translation item |
7 | 1432 |:messages| :mes[sages] view previously displayed messages |
1433 |:mkexrc| :mk[exrc] write current mappings and settings to a file | |
1434 |:mksession| :mks[ession] write session info to a file | |
329 | 1435 |:mkspell| :mksp[ell] produce .spl spell file |
7 | 1436 |:mkvimrc| :mkv[imrc] write current mappings and settings to a file |
1437 |:mkview| :mkvie[w] write view of current window to a file | |
1438 |:mode| :mod[e] show or change the screen mode | |
15 | 1439 |:mzscheme| :mz[scheme] execute MzScheme command |
1440 |:mzfile| :mzf[ile] execute MzScheme script file | |
2210 | 1441 |:nbclose| :nbc[lose] close the current Netbeans session |
392 | 1442 |:nbkey| :nb[key] pass a key to Netbeans |
2210 | 1443 |:nbstart| :nbs[art] start a new Netbeans session |
7 | 1444 |:next| :n[ext] go to next file in the argument list |
1445 |:new| :new create a new empty window | |
1446 |:nmap| :nm[ap] like ":map" but for Normal mode | |
1447 |:nmapclear| :nmapc[lear] clear all mappings for Normal mode | |
1448 |:nmenu| :nme[nu] add menu for Normal mode | |
1449 |:nnoremap| :nn[oremap] like ":noremap" but for Normal mode | |
1450 |:nnoremenu| :nnoreme[nu] like ":noremenu" but for Normal mode | |
5763 | 1451 |:noautocmd| :noa[utocmd] following commands don't trigger autocommands |
7 | 1452 |:noremap| :no[remap] enter a mapping that will not be remapped |
1453 |:nohlsearch| :noh[lsearch] suspend 'hlsearch' highlighting | |
1454 |:noreabbrev| :norea[bbrev] enter an abbreviation that will not be | |
1455 remapped | |
1456 |:noremenu| :noreme[nu] enter a menu that will not be remapped | |
1457 |:normal| :norm[al] execute Normal mode commands | |
5763 | 1458 |:noswapfile| :nos[wapfile] following commands don't create a swap file |
7 | 1459 |:number| :nu[mber] print lines with line number |
1460 |:nunmap| :nun[map] like ":unmap" but for Normal mode | |
1461 |:nunmenu| :nunme[nu] remove menu for Normal mode | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1462 |:oldfiles| :ol[dfiles] list files that have marks in the viminfo file |
7 | 1463 |:open| :o[pen] start open mode (not implemented) |
1464 |:omap| :om[ap] like ":map" but for Operator-pending mode | |
1465 |:omapclear| :omapc[lear] remove all mappings for Operator-pending mode | |
1466 |:omenu| :ome[nu] add menu for Operator-pending mode | |
674 | 1467 |:only| :on[ly] close all windows except the current one |
7 | 1468 |:onoremap| :ono[remap] like ":noremap" but for Operator-pending mode |
1469 |:onoremenu| :onoreme[nu] like ":noremenu" but for Operator-pending mode | |
1470 |:options| :opt[ions] open the options-window | |
1471 |:ounmap| :ou[nmap] like ":unmap" but for Operator-pending mode | |
1472 |:ounmenu| :ounme[nu] remove menu for Operator-pending mode | |
2282
a888ed7ba375
Make updating text for conceal mode simpler. A few compiler warning fixes.
Bram Moolenaar <bram@vim.org>
parents:
2225
diff
changeset
|
1473 |:ownsyntax| :ow[nsyntax] set new local syntax highlight for this window |
8392
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
8303
diff
changeset
|
1474 |:packadd| :pa[ckadd] add a plugin from 'packpath' |
8673
ed7251c3e2d3
commit https://github.com/vim/vim/commit/e18c0b39815c5a746887a509c2cd9f11fadaba07
Christian Brabandt <cb@256bit.org>
parents:
8392
diff
changeset
|
1475 |:packloadall| :packl[oadall] load all packages under 'packpath' |
7 | 1476 |:pclose| :pc[lose] close preview window |
1477 |:pedit| :ped[it] edit file in the preview window | |
1478 |:perl| :pe[rl] execute Perl command | |
170 | 1479 |:print| :p[rint] print lines |
392 | 1480 |:profdel| :profd[el] stop profiling a function or script |
170 | 1481 |:profile| :prof[ile] profiling functions and scripts |
1618 | 1482 |:promptfind| :pro[mptfind] open GUI dialog for searching |
1483 |:promptrepl| :promptr[epl] open GUI dialog for search/replace | |
7 | 1484 |:perldo| :perld[o] execute Perl command for each line |
1485 |:pop| :po[p] jump to older entry in tag stack | |
4186 | 1486 |:popup| :popu[p] popup a menu by name |
7 | 1487 |:ppop| :pp[op] ":pop" in preview window |
1488 |:preserve| :pre[serve] write all text to swap file | |
1489 |:previous| :prev[ious] go to previous file in argument list | |
1490 |:psearch| :ps[earch] like ":ijump" but shows match in preview window | |
1491 |:ptag| :pt[ag] show tag in preview window | |
1492 |:ptNext| :ptN[ext] |:tNext| in preview window | |
1493 |:ptfirst| :ptf[irst] |:trewind| in preview window | |
1494 |:ptjump| :ptj[ump] |:tjump| and show tag in preview window | |
1495 |:ptlast| :ptl[ast] |:tlast| in preview window | |
1496 |:ptnext| :ptn[ext] |:tnext| in preview window | |
1497 |:ptprevious| :ptp[revious] |:tprevious| in preview window | |
1498 |:ptrewind| :ptr[ewind] |:trewind| in preview window | |
1499 |:ptselect| :pts[elect] |:tselect| and show tag in preview window | |
1500 |:put| :pu[t] insert contents of register in the text | |
1501 |:pwd| :pw[d] print current directory | |
2350
06feaf4fe36a
Rename some "python3" symbols to "py3", as the command name.
Bram Moolenaar <bram@vim.org>
parents:
2345
diff
changeset
|
1502 |:py3| :py3 execute Python 3 command |
2366
7a57fe6a5157
Fix that :py3file was not working.
Bram Moolenaar <bram@vim.org>
parents:
2365
diff
changeset
|
1503 |:python3| :python3 same as :py3 |
4437 | 1504 |:py3do| :py3d[o] execute Python 3 command for each line |
2368 | 1505 |:py3file| :py3f[ile] execute Python 3 script file |
7 | 1506 |:python| :py[thon] execute Python command |
4437 | 1507 |:pydo| :pyd[o] execute Python command for each line |
7 | 1508 |:pyfile| :pyf[ile] execute Python script file |
10722
7598ce51bf2a
patch 8.0.0251: not easy to select Python 2 or 3
Christian Brabandt <cb@256bit.org>
parents:
10244
diff
changeset
|
1509 |:pyx| :pyx execute |python_x| command |
7598ce51bf2a
patch 8.0.0251: not easy to select Python 2 or 3
Christian Brabandt <cb@256bit.org>
parents:
10244
diff
changeset
|
1510 |:pythonx| :pythonx same as :pyx |
7598ce51bf2a
patch 8.0.0251: not easy to select Python 2 or 3
Christian Brabandt <cb@256bit.org>
parents:
10244
diff
changeset
|
1511 |:pyxdo| :pyxd[o] execute |python_x| command for each line |
7598ce51bf2a
patch 8.0.0251: not easy to select Python 2 or 3
Christian Brabandt <cb@256bit.org>
parents:
10244
diff
changeset
|
1512 |:pyxfile| :pyxf[ile] execute |python_x| script file |
7 | 1513 |:quit| :q[uit] quit current window (when one window quit Vim) |
1514 |:quitall| :quita[ll] quit Vim | |
1515 |:qall| :qa[ll] quit Vim | |
1516 |:read| :r[ead] read file into the text | |
1517 |:recover| :rec[over] recover a file from a swap file | |
1518 |:redo| :red[o] redo one undone change | |
1519 |:redir| :redi[r] redirect messages to a file or register | |
15512 | 1520 |:redraw| :redr[aw] force a redraw of the display |
1521 |:redrawstatus| :redraws[tatus] force a redraw of the status line(s) | |
1522 |:redrawtabline| :redrawt[abline] force a redraw of the tabline | |
7 | 1523 |:registers| :reg[isters] display the contents of registers |
1524 |:resize| :res[ize] change current window height | |
1525 |:retab| :ret[ab] change tab size | |
1526 |:return| :retu[rn] return from a user function | |
1527 |:rewind| :rew[ind] go to the first file in the argument list | |
1528 |:right| :ri[ght] right align text | |
1529 |:rightbelow| :rightb[elow] make split window appear right or below | |
1530 |:ruby| :rub[y] execute Ruby command | |
1531 |:rubydo| :rubyd[o] execute Ruby command for each line | |
1532 |:rubyfile| :rubyf[ile] execute Ruby script file | |
2225 | 1533 |:rundo| :rund[o] read undo information from a file |
7 | 1534 |:runtime| :ru[ntime] source vim scripts in 'runtimepath' |
1535 |:rviminfo| :rv[iminfo] read from viminfo file | |
1536 |:substitute| :s[ubstitute] find and replace text | |
1537 |:sNext| :sN[ext] split window and go to previous file in | |
1538 argument list | |
392 | 1539 |:sandbox| :san[dbox] execute a command in the sandbox |
7 | 1540 |:sargument| :sa[rgument] split window and go to specific file in |
1541 argument list | |
1542 |:sall| :sal[l] open a window for each file in argument list | |
1543 |:saveas| :sav[eas] save file under another name. | |
1544 |:sbuffer| :sb[uffer] split window and go to specific file in the | |
1545 buffer list | |
1546 |:sbNext| :sbN[ext] split window and go to previous file in the | |
1547 buffer list | |
1548 |:sball| :sba[ll] open a window for each file in the buffer list | |
1549 |:sbfirst| :sbf[irst] split window and go to first file in the | |
1550 buffer list | |
1551 |:sblast| :sbl[ast] split window and go to last file in buffer | |
1552 list | |
1553 |:sbmodified| :sbm[odified] split window and go to modified file in the | |
1554 buffer list | |
1555 |:sbnext| :sbn[ext] split window and go to next file in the buffer | |
1556 list | |
1557 |:sbprevious| :sbp[revious] split window and go to previous file in the | |
1558 buffer list | |
1559 |:sbrewind| :sbr[ewind] split window and go to first file in the | |
1560 buffer list | |
6476 | 1561 |:scriptnames| :scr[iptnames] list names of all sourced Vim scripts |
16267 | 1562 |:scriptencoding| :scripte[ncoding] encoding used in sourced Vim script |
1563 |:scriptversion| :scriptv[ersion] version of Vim script used | |
598 | 1564 |:scscope| :scs[cope] split window and execute cscope command |
7 | 1565 |:set| :se[t] show or set options |
1566 |:setfiletype| :setf[iletype] set 'filetype', unless it was set already | |
1567 |:setglobal| :setg[lobal] show global values of options | |
1568 |:setlocal| :setl[ocal] show or set options locally | |
1569 |:sfind| :sf[ind] split current window and edit file in 'path' | |
1570 |:sfirst| :sfir[st] split window and go to first file in the | |
1571 argument list | |
1572 |:shell| :sh[ell] escape to a shell | |
1573 |:simalt| :sim[alt] Win32 GUI: simulate Windows ALT key | |
1574 |:sign| :sig[n] manipulate signs | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1575 |:silent| :sil[ent] run a command silently |
7 | 1576 |:sleep| :sl[eep] do nothing for a few seconds |
1577 |:slast| :sla[st] split window and go to last file in the | |
1578 argument list | |
1579 |:smagic| :sm[agic] :substitute with 'magic' | |
4186 | 1580 |:smap| :smap like ":map" but for Select mode |
788 | 1581 |:smapclear| :smapc[lear] remove all mappings for Select mode |
1582 |:smenu| :sme[nu] add menu for Select mode | |
7557
502ca0a62fd8
commit https://github.com/vim/vim/commit/acb4f221c715a333f4c49a2235a8006c6ac6e4d5
Christian Brabandt <cb@256bit.org>
parents:
7477
diff
changeset
|
1583 |:smile| :smi[le] make the user happy |
7 | 1584 |:snext| :sn[ext] split window and go to next file in the |
1585 argument list | |
1586 |:snomagic| :sno[magic] :substitute with 'nomagic' | |
788 | 1587 |:snoremap| :snor[emap] like ":noremap" but for Select mode |
1588 |:snoremenu| :snoreme[nu] like ":noremenu" but for Select mode | |
280 | 1589 |:sort| :sor[t] sort lines |
7 | 1590 |:source| :so[urce] read Vim or Ex commands from a file |
350 | 1591 |:spelldump| :spelld[ump] split window and fill with all correct words |
329 | 1592 |:spellgood| :spe[llgood] add good word for spelling |
714 | 1593 |:spellinfo| :spelli[nfo] show info about loaded spell files |
17758 | 1594 |:spellrare| :spellra[re] add rare word for spelling |
584 | 1595 |:spellrepall| :spellr[epall] replace all bad words like last |z=| |
710 | 1596 |:spellundo| :spellu[ndo] remove good or bad word |
329 | 1597 |:spellwrong| :spellw[rong] add spelling mistake |
7 | 1598 |:split| :sp[lit] split current window |
1599 |:sprevious| :spr[evious] split window and go to previous file in the | |
1600 argument list | |
1601 |:srewind| :sre[wind] split window and go to first file in the | |
1602 argument list | |
1603 |:stop| :st[op] suspend the editor or escape to a shell | |
1604 |:stag| :sta[g] split window and jump to a tag | |
1605 |:startinsert| :star[tinsert] start Insert mode | |
7557
502ca0a62fd8
commit https://github.com/vim/vim/commit/acb4f221c715a333f4c49a2235a8006c6ac6e4d5
Christian Brabandt <cb@256bit.org>
parents:
7477
diff
changeset
|
1606 |:startgreplace| :startg[replace] start Virtual Replace mode |
14 | 1607 |:startreplace| :startr[eplace] start Replace mode |
1618 | 1608 |:stopinsert| :stopi[nsert] stop Insert mode |
7 | 1609 |:stjump| :stj[ump] do ":tjump" and split window |
1610 |:stselect| :sts[elect] do ":tselect" and split window | |
1611 |:sunhide| :sun[hide] same as ":unhide" | |
788 | 1612 |:sunmap| :sunm[ap] like ":unmap" but for Select mode |
1613 |:sunmenu| :sunme[nu] remove menu for Select mode | |
7 | 1614 |:suspend| :sus[pend] same as ":stop" |
1615 |:sview| :sv[iew] split window and edit file read-only | |
1616 |:swapname| :sw[apname] show the name of the current swap file | |
1617 |:syntax| :sy[ntax] syntax highlighting | |
4780 | 1618 |:syntime| :synti[me] measure syntax highlighting speed |
7 | 1619 |:syncbind| :sync[bind] sync scroll binding |
1620 |:t| :t same as ":copy" | |
1621 |:tNext| :tN[ext] jump to previous matching tag | |
682 | 1622 |:tabNext| :tabN[ext] go to previous tab page |
674 | 1623 |:tabclose| :tabc[lose] close current tab page |
710 | 1624 |:tabdo| :tabdo execute command in each tab page |
674 | 1625 |:tabedit| :tabe[dit] edit a file in a new tab page |
1626 |:tabfind| :tabf[ind] find file in 'path', edit it in a new tab page | |
7707
41768bcebc9b
commit https://github.com/vim/vim/commit/13d5aeef56e3140a8eb8f40c7062aa1c5700f76e
Christian Brabandt <cb@256bit.org>
parents:
7557
diff
changeset
|
1627 |:tabfirst| :tabfir[st] go to first tab page |
41768bcebc9b
commit https://github.com/vim/vim/commit/13d5aeef56e3140a8eb8f40c7062aa1c5700f76e
Christian Brabandt <cb@256bit.org>
parents:
7557
diff
changeset
|
1628 |:tablast| :tabl[ast] go to last tab page |
682 | 1629 |:tabmove| :tabm[ove] move tab page to other position |
1630 |:tabnew| :tabnew edit a file in a new tab page | |
1631 |:tabnext| :tabn[ext] go to next tab page | |
674 | 1632 |:tabonly| :tabo[nly] close all tab pages except the current one |
682 | 1633 |:tabprevious| :tabp[revious] go to previous tab page |
7707
41768bcebc9b
commit https://github.com/vim/vim/commit/13d5aeef56e3140a8eb8f40c7062aa1c5700f76e
Christian Brabandt <cb@256bit.org>
parents:
7557
diff
changeset
|
1634 |:tabrewind| :tabr[ewind] go to first tab page |
674 | 1635 |:tabs| :tabs list the tab pages and what they contain |
682 | 1636 |:tab| :tab create new tab when opening new window |
7 | 1637 |:tag| :ta[g] jump to tag |
1638 |:tags| :tags show the contents of the tag stack | |
16427
8c3a1bd270bb
patch 8.1.1218: cannot set a directory for a tab page
Bram Moolenaar <Bram@vim.org>
parents:
16380
diff
changeset
|
1639 |:tcd| :tcd change directory for tab page |
8c3a1bd270bb
patch 8.1.1218: cannot set a directory for a tab page
Bram Moolenaar <Bram@vim.org>
parents:
16380
diff
changeset
|
1640 |:tchdir| :tch[dir] change directory for tab page |
7 | 1641 |:tcl| :tc[l] execute Tcl command |
1642 |:tcldo| :tcld[o] execute Tcl command for each line | |
1643 |:tclfile| :tclf[ile] execute Tcl script file | |
1644 |:tearoff| :te[aroff] tear-off a menu | |
11659
49c12c93abf3
Updated runtime files and translations.
Christian Brabandt <cb@256bit.org>
parents:
11400
diff
changeset
|
1645 |:terminal| :ter[minal] open a terminal window |
7 | 1646 |:tfirst| :tf[irst] jump to first matching tag |
1647 |:throw| :th[row] throw an exception | |
1648 |:tjump| :tj[ump] like ":tselect", but jump directly when there | |
1649 is only one match | |
1650 |:tlast| :tl[ast] jump to last matching tag | |
14952
405309f9dd13
patch 8.1.0487: no menus specifically for the terminal window
Bram Moolenaar <Bram@vim.org>
parents:
14421
diff
changeset
|
1651 |:tlmenu| :tlm[enu] add menu for Terminal-Job mode |
405309f9dd13
patch 8.1.0487: no menus specifically for the terminal window
Bram Moolenaar <Bram@vim.org>
parents:
14421
diff
changeset
|
1652 |:tlnoremenu| :tln[oremenu] like ":noremenu" but for Terminal-Job mode |
405309f9dd13
patch 8.1.0487: no menus specifically for the terminal window
Bram Moolenaar <Bram@vim.org>
parents:
14421
diff
changeset
|
1653 |:tlunmenu| :tlu[nmenu] remove menu for Terminal-Job mode |
12499 | 1654 |:tmapclear| :tmapc[lear] remove all mappings for Terminal-Job mode |
1655 |:tmap| :tma[p] like ":map" but for Terminal-Job mode | |
7 | 1656 |:tmenu| :tm[enu] define menu tooltip |
1657 |:tnext| :tn[ext] jump to next matching tag | |
12499 | 1658 |:tnoremap| :tno[remap] like ":noremap" but for Terminal-Job mode |
7 | 1659 |:topleft| :to[pleft] make split window appear at top or far left |
1660 |:tprevious| :tp[revious] jump to previous matching tag | |
1661 |:trewind| :tr[ewind] jump to first matching tag | |
1662 |:try| :try execute commands, abort on error or exception | |
1663 |:tselect| :ts[elect] list matching tags and select one | |
12499 | 1664 |:tunmap| :tunma[p] like ":unmap" but for Terminal-Job mode |
7 | 1665 |:tunmenu| :tu[nmenu] remove menu tooltip |
1666 |:undo| :u[ndo] undo last change(s) | |
695 | 1667 |:undojoin| :undoj[oin] join next change with previous undo block |
771 | 1668 |:undolist| :undol[ist] list leafs of the undo tree |
7 | 1669 |:unabbreviate| :una[bbreviate] remove abbreviation |
1670 |:unhide| :unh[ide] open a window for each loaded file in the | |
1671 buffer list | |
1672 |:unlet| :unl[et] delete variable | |
152 | 1673 |:unlockvar| :unlo[ckvar] unlock variables |
7 | 1674 |:unmap| :unm[ap] remove mapping |
1675 |:unmenu| :unme[nu] remove menu | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
1676 |:unsilent| :uns[ilent] run a command not silently |
7 | 1677 |:update| :up[date] write buffer if modified |
1678 |:vglobal| :v[global] execute commands for not matching lines | |
1679 |:version| :ve[rsion] print version number and other info | |
1680 |:verbose| :verb[ose] execute command with 'verbose' set | |
1681 |:vertical| :vert[ical] make following command split vertically | |
392 | 1682 |:vimgrep| :vim[grep] search for pattern in files |
1683 |:vimgrepadd| :vimgrepa[dd] like :vimgrep, but append to current list | |
7 | 1684 |:visual| :vi[sual] same as ":edit", but turns off "Ex" mode |
40 | 1685 |:viusage| :viu[sage] overview of Normal mode commands |
7 | 1686 |:view| :vie[w] edit a file read-only |
788 | 1687 |:vmap| :vm[ap] like ":map" but for Visual+Select mode |
1688 |:vmapclear| :vmapc[lear] remove all mappings for Visual+Select mode | |
1689 |:vmenu| :vme[nu] add menu for Visual+Select mode | |
7 | 1690 |:vnew| :vne[w] create a new empty window, vertically split |
788 | 1691 |:vnoremap| :vn[oremap] like ":noremap" but for Visual+Select mode |
1692 |:vnoremenu| :vnoreme[nu] like ":noremenu" but for Visual+Select mode | |
7 | 1693 |:vsplit| :vs[plit] split current window vertically |
788 | 1694 |:vunmap| :vu[nmap] like ":unmap" but for Visual+Select mode |
1695 |:vunmenu| :vunme[nu] remove menu for Visual+Select mode | |
7 | 1696 |:windo| :windo execute command in each window |
1697 |:write| :w[rite] write to a file | |
1698 |:wNext| :wN[ext] write to a file and go to previous file in | |
1699 argument list | |
1700 |:wall| :wa[ll] write all (changed) buffers | |
1701 |:while| :wh[ile] execute loop for as long as condition met | |
1702 |:winsize| :wi[nsize] get or set window size (obsolete) | |
1703 |:wincmd| :winc[md] execute a Window (CTRL-W) command | |
1704 |:winpos| :winp[os] get or set window position | |
1705 |:wnext| :wn[ext] write to a file and go to next file in | |
1706 argument list | |
1707 |:wprevious| :wp[revious] write to a file and go to previous file in | |
1708 argument list | |
1709 |:wq| :wq write to a file and quit window or Vim | |
1710 |:wqall| :wqa[ll] write all changed buffers and quit Vim | |
2225 | 1711 |:wundo| :wu[ndo] write undo information to a file |
7 | 1712 |:wviminfo| :wv[iminfo] write to viminfo file |
1713 |:xit| :x[it] write if buffer changed and quit window or Vim | |
1714 |:xall| :xa[ll] same as ":wqall" | |
788 | 1715 |:xmapclear| :xmapc[lear] remove all mappings for Visual mode |
1716 |:xmap| :xm[ap] like ":map" but for Visual mode | |
1717 |:xmenu| :xme[nu] add menu for Visual mode | |
16608
0422b14bce58
patch 8.1.1307: cannot reconnect to the X server after it restarted
Bram Moolenaar <Bram@vim.org>
parents:
16553
diff
changeset
|
1718 |:xrestore| :xr[estore] restores the X server connection |
788 | 1719 |:xnoremap| :xn[oremap] like ":noremap" but for Visual mode |
1720 |:xnoremenu| :xnoreme[nu] like ":noremenu" but for Visual mode | |
1721 |:xunmap| :xu[nmap] like ":unmap" but for Visual mode | |
1722 |:xunmenu| :xunme[nu] remove menu for Visual mode | |
7 | 1723 |:yank| :y[ank] yank lines into a register |
1724 |:z| :z print some lines | |
1725 |:~| :~ repeat last ":substitute" | |
1726 | |
788 | 1727 |
14421 | 1728 vim:tw=78:ts=8:noet:ft=help:norl: |