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