1
- *cmdline.txt* For Vim version 8.0 . Last change: 2017 Sep 17
1
+ *cmdline.txt* For Vim version 8.1 . Last change: 2018 May 14
2
2
3
3
4
4
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -175,12 +175,14 @@ CTRL-R CTRL-F *c_CTRL-R_CTRL-F* *c_<C-R>_<C-F>*
175
175
CTRL-R CTRL-P *c_CTRL-R_CTRL-P* *c_<C-R>_<C-P>*
176
176
CTRL-R CTRL-W *c_CTRL-R_CTRL-W* *c_<C-R>_<C-W>*
177
177
CTRL-R CTRL-A *c_CTRL-R_CTRL-A* *c_<C-R>_<C-A>*
178
+ CTRL-R CTRL-L *c_CTRL-R_CTRL-L* *c_<C-R>_<C-L>*
178
179
Insert the object under the cursor:
179
180
CTRL-F the Filename under the cursor
180
181
CTRL-P the Filename under the cursor, expanded with
181
182
'path' as in | gf |
182
183
CTRL-W the Word under the cursor
183
184
CTRL-A the WORD under the cursor; see | WORD |
185
+ CTRL-L the line under the cursor
184
186
185
187
When 'incsearch' is set the cursor position at the end of the
186
188
currently displayed match is used. With CTRL-W the part of
@@ -192,8 +194,8 @@ CTRL-R CTRL-A *c_CTRL-R_CTRL-A* *c_<C-R>_<C-A>*
192
194
193
195
*c_CTRL-R_CTRL-R* *c_<C-R>_<C-R>*
194
196
*c_CTRL-R_CTRL-O* *c_<C-R>_<C-O>*
195
- CTRL-R CTRL-R {0-9a-z"%#:-=. CTRL-F CTRL-P CTRL-W CTRL-A }
196
- CTRL-R CTRL-O {0-9a-z"%#:-=. CTRL-F CTRL-P CTRL-W CTRL-A }
197
+ CTRL-R CTRL-R {0-9a-z"%#:-=. CTRL-F CTRL-P CTRL-W CTRL-A CTRL-L }
198
+ CTRL-R CTRL-O {0-9a-z"%#:-=. CTRL-F CTRL-P CTRL-W CTRL-A CTRL-L }
197
199
Insert register or object under the cursor. Works like
198
200
| c_CTRL-R | but inserts the text literally. For example, if
199
201
register a contains "xy^Hz" (where ^H is a backspace),
@@ -410,14 +412,17 @@ CTRL-D List names that match the pattern in front of the cursor.
410
412
match is inserted. After the last match, the first is used
411
413
again (wrap around).
412
414
The behavior can be changed with the 'wildmode' option.
415
+ *c_<S-Tab>*
416
+ <S-Tab> Like 'wildchar' or <Tab> , but begin with the last match and
417
+ then go to the previous match.
418
+ <S-Tab> does not work everywhere.
413
419
*c_CTRL-N*
414
420
CTRL-N After using 'wildchar' which got multiple matches, go to next
415
421
match. Otherwise recall more recent command-line from history.
416
- <S-Tab> *c_CTRL-P* *c_<S-Tab> *
422
+ *c_CTRL-P*
417
423
CTRL-P After using 'wildchar' which got multiple matches, go to
418
424
previous match. Otherwise recall older command-line from
419
- history. <S-Tab> only works with the GUI, on the Amiga and
420
- with MS-DOS.
425
+ history.
421
426
*c_CTRL-A*
422
427
CTRL-A All names that match the pattern in front of the cursor are
423
428
inserted.
@@ -453,6 +458,10 @@ a previous version <Esc> was used). In the pattern standard wildcards '*' and
453
458
'?' are accepted when matching file names. '*' matches any string, '?'
454
459
matches exactly one character.
455
460
461
+ When repeating 'wildchar' or CTRL-N you cycle through the matches, eventually
462
+ ending up back to what was typed. If the first match is not what you wanted,
463
+ you can use <S-Tab> or CTRL-P to go straight back to what you typed.
464
+
456
465
The 'wildignorecase' option can be set to ignore case in filenames.
457
466
458
467
The 'wildmenu' option can be set to show the matches just above the command
@@ -839,7 +848,8 @@ Note: these are typed literally, they are not special keys!
839
848
<cfile> is replaced with the path name under the cursor (like what
840
849
| gf | uses)
841
850
<afile> When executing autocommands, is replaced with the file name
842
- for a file read or write.
851
+ of the buffer being manipulated, or the file for a read or
852
+ write.
843
853
<abuf> When executing autocommands, is replaced with the currently
844
854
effective buffer number (for ":r file" and ":so file" it is
845
855
the current buffer, the file being read/sourced is not in a
0 commit comments