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