2017-11-02 05:03:24 +03:00
|
|
|
= Keys
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-11-02 05:03:24 +03:00
|
|
|
== Key Syntax
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-01-25 03:14:11 +03:00
|
|
|
Usual keys are written using their ascii character, including capital
|
|
|
|
keys. Non printable keys use an alternate name, written between *<*
|
|
|
|
and *>*, such as *<esc>* or *<del>*. Modified keys are written between
|
|
|
|
*<* and *>* as well, with the modifier specified as either *c* for
|
2018-03-15 15:02:27 +03:00
|
|
|
Control, *a* for Alt, or *s* for Shift, followed by a *-* and the key (either
|
|
|
|
its name or ascii character), for example *<c-x>*, *<a-space>*, *<c-a-w>*.
|
2017-01-25 03:14:11 +03:00
|
|
|
|
2017-11-06 12:08:59 +03:00
|
|
|
In order to bind some keys to arbitrary ones, refer to <<mapping#,`:doc mapping`>>
|
2017-03-07 17:39:40 +03:00
|
|
|
|
2017-11-02 05:03:24 +03:00
|
|
|
== Insert mode
|
|
|
|
|
2016-02-03 20:15:35 +03:00
|
|
|
*<esc>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
leave insert mode
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*<backspace>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
delete characters before cursors
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*<del>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
delete characters under cursors
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*<left>*, *<right>*, *<up>*, *<down>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
move the cursors in given direction
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*<home>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
move cursors to line begin
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*<end>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
move cursors to end of line
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2018-03-05 10:47:28 +03:00
|
|
|
*<c-r>*::
|
|
|
|
insert contents of the register given by next key
|
|
|
|
|
|
|
|
*<c-v>*::
|
|
|
|
insert next keystroke directly into the buffer, without interpreting it
|
|
|
|
|
|
|
|
*<c-u>*::
|
|
|
|
commit changes up to now as a single undo group
|
|
|
|
|
|
|
|
*<a-;>*::
|
|
|
|
escape to normal mode for a single command
|
|
|
|
|
|
|
|
== Insert mode completion
|
|
|
|
|
|
|
|
The `completers` option controls automatic completion, which kicks in when
|
|
|
|
the value specified in the `idle_timeout` option is reached.
|
|
|
|
|
|
|
|
*<c-o>*::
|
2018-08-27 23:02:15 +03:00
|
|
|
toggle automatic completion
|
2018-03-05 10:47:28 +03:00
|
|
|
|
2016-02-03 20:15:35 +03:00
|
|
|
*<c-n>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
select next completion candidate
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*<c-p>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
select previous completion candidate
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*<c-x>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
explicit insert completion query, followed by:
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-11-02 12:37:39 +03:00
|
|
|
*f*:::
|
|
|
|
explicit file completion
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-11-02 12:37:39 +03:00
|
|
|
*w*:::
|
|
|
|
explicit word completion (current buffer)
|
2017-10-24 23:41:13 +03:00
|
|
|
|
2017-11-02 12:37:39 +03:00
|
|
|
*W*:::
|
|
|
|
explicit word completion (all buffers)
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-11-02 12:37:39 +03:00
|
|
|
*l*:::
|
2018-03-05 10:47:28 +03:00
|
|
|
explicit line completion (current buffer)
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2018-03-05 10:47:28 +03:00
|
|
|
*L*:::
|
|
|
|
explicit line completion (all buffers)
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-11-02 05:03:24 +03:00
|
|
|
== Using Counts
|
2017-02-19 16:18:00 +03:00
|
|
|
|
2019-02-01 20:19:50 +03:00
|
|
|
In normal mode, commands can be prefixed with a numeric `count`, which can control
|
2017-02-19 16:18:00 +03:00
|
|
|
the command behaviour.
|
|
|
|
|
2017-04-21 13:32:47 +03:00
|
|
|
For example, *3W* selects 3 consecutive words and *3w* select the third word on
|
2018-05-07 10:33:17 +03:00
|
|
|
the right of the end of each selection.
|
2017-02-19 16:18:00 +03:00
|
|
|
|
2017-11-02 05:03:24 +03:00
|
|
|
== Disabling Hooks
|
2017-02-19 16:18:00 +03:00
|
|
|
|
|
|
|
Any normal mode command can be prefixed with *\* which will disable hook execution
|
|
|
|
for the duration for the command (including the duration of modes the command could
|
|
|
|
move to, so *\i* will disable hooks for the whole insert session).
|
|
|
|
|
|
|
|
As autoindentation is implemented in terms of hooks, this can be used to disable
|
|
|
|
it when pasting text.
|
|
|
|
|
2017-11-02 05:03:24 +03:00
|
|
|
== Movement
|
|
|
|
|
2016-02-11 00:03:49 +03:00
|
|
|
'word' is a sequence of alphanumeric characters or underscore, and 'WORD'
|
2018-03-15 15:02:27 +03:00
|
|
|
is a sequence of non whitespace characters. Generally, a movement on it own
|
2018-05-07 10:33:17 +03:00
|
|
|
will move each selection to cover the text moved over, while holding down
|
|
|
|
the Shift modifier and moving will extend each selection instead.
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2018-03-15 15:02:27 +03:00
|
|
|
*h*, *<left>*::
|
2018-05-07 10:33:17 +03:00
|
|
|
select the character on the left of the end of each selection
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2018-03-15 15:02:27 +03:00
|
|
|
*j*, *<down>*::
|
2018-05-07 10:33:17 +03:00
|
|
|
select the character below the end of each selection
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2018-03-15 15:02:27 +03:00
|
|
|
*k*, *<up>*::
|
2018-05-07 10:33:17 +03:00
|
|
|
select the character above the end of each selection
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2018-03-15 15:02:27 +03:00
|
|
|
*l*, *<right>*::
|
2018-05-07 10:33:17 +03:00
|
|
|
select the character on the right of the end of each selection
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*w*::
|
2018-05-07 10:33:17 +03:00
|
|
|
select the word and following whitespaces on the right of the end of each selection
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*b*::
|
2018-05-07 10:33:17 +03:00
|
|
|
select preceding whitespaces and the word on the left of the end of each selection
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*e*::
|
2018-05-07 10:33:17 +03:00
|
|
|
select preceding whitespaces and the word on the right of the end of each selection
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*<a-[wbe]>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
same as [wbe] but select WORD instead of word
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*f*::
|
2017-11-02 12:37:39 +03:00
|
|
|
select to the next occurrence of given character
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*t*::
|
2017-11-02 12:37:39 +03:00
|
|
|
select until the next occurrence of given character
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*<a-[ft]>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
same as [ft] but in the other direction
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2018-06-02 18:16:32 +03:00
|
|
|
*<a-.>*::
|
|
|
|
repeat last object or *f*/*t* selection command
|
|
|
|
|
2016-02-03 20:15:35 +03:00
|
|
|
*m*::
|
2018-09-23 19:43:22 +03:00
|
|
|
select to the next sequence enclosed by matching character, see the
|
|
|
|
`matching_pairs` option in <<options#,`:doc options`>>
|
2018-09-30 09:41:17 +03:00
|
|
|
|
|
|
|
*M*::
|
|
|
|
extend the current selection to the next sequence enclosed by matching
|
|
|
|
character, see the `matching_pairs` option in <<options#,`:doc options`>>
|
|
|
|
|
|
|
|
*<a-m>*::
|
|
|
|
select to the previous sequence enclosed by matching character, see the
|
|
|
|
`matching_pairs` option in <<options#,`:doc options`>>
|
|
|
|
|
|
|
|
*<a-M>*::
|
|
|
|
extend the current selection to the previous sequence enclosed by matching
|
|
|
|
character, see the `matching_pairs` option in <<options#,`:doc options`>>
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*x*::
|
2018-05-07 10:33:17 +03:00
|
|
|
select line on which the end of each selection lies (or next line when end lies
|
2017-11-02 12:37:39 +03:00
|
|
|
on an end-of-line)
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*<a-x>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
expand selections to contain full lines (including end-of-lines)
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*<a-X>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
trim selections to only contain full lines (not including last
|
|
|
|
end-of-line)
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*%*::
|
2017-11-02 12:37:39 +03:00
|
|
|
select whole buffer
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2018-03-15 15:02:27 +03:00
|
|
|
*<a-h>*, *<home>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
select to line begin
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2018-03-15 15:02:27 +03:00
|
|
|
*<a-l>*, *<end>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
select to line end
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-10-04 13:47:56 +03:00
|
|
|
*pageup, <c-b>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
scroll one page up
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-10-04 13:47:56 +03:00
|
|
|
*pagedown, <c-f>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
scroll one page down
|
2017-10-04 13:47:56 +03:00
|
|
|
|
|
|
|
*<c-u>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
scroll half a page up
|
2017-10-04 13:47:56 +03:00
|
|
|
|
|
|
|
*<c-d>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
scroll half a page down
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*;*::
|
2017-11-02 12:37:39 +03:00
|
|
|
reduce selections to their cursor
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*<a-;>*::
|
2018-05-07 10:33:17 +03:00
|
|
|
flip the direction of each selection
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*<a-:>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
ensure selections are in forward direction (cursor after anchor)
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-11-02 05:03:24 +03:00
|
|
|
== Changes
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2018-05-24 17:04:06 +03:00
|
|
|
Yanking (copying) and pasting use the *"* register by default (See <<registers#,`:doc registers`>>)
|
|
|
|
|
2016-02-03 20:15:35 +03:00
|
|
|
*i*::
|
2018-05-07 10:33:17 +03:00
|
|
|
enter insert mode before selections
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*a*::
|
2018-05-07 10:33:17 +03:00
|
|
|
enter insert mode after selections
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*d*::
|
2018-05-07 10:33:17 +03:00
|
|
|
yank and delete selections
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*c*::
|
2018-05-07 10:33:17 +03:00
|
|
|
yank and delete selections and enter insert mode
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*.*::
|
2017-11-02 12:37:39 +03:00
|
|
|
repeat last insert mode change (*i*, *a*, or *c*, including the
|
|
|
|
inserted text)
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-07-11 07:49:29 +03:00
|
|
|
*<a-d>*::
|
2018-05-07 10:33:17 +03:00
|
|
|
delete selections (not yanking)
|
2017-07-11 07:49:29 +03:00
|
|
|
|
|
|
|
*<a-c>*::
|
2018-05-07 10:33:17 +03:00
|
|
|
delete selections and enter insert mode (not yanking)
|
2017-07-11 07:49:29 +03:00
|
|
|
|
2016-02-03 20:15:35 +03:00
|
|
|
*I*::
|
2018-05-07 10:33:17 +03:00
|
|
|
enter insert mode at the beginning of the lines containing
|
|
|
|
the start of each selection
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*A*::
|
2018-05-07 10:33:17 +03:00
|
|
|
enter insert mode at the end of the lines containing
|
|
|
|
the end of each selection
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*o*::
|
2019-02-01 20:19:50 +03:00
|
|
|
enter insert mode in a new line (or in a given `count` of new lines)
|
2018-05-07 10:33:17 +03:00
|
|
|
below the end of each selection
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*O*::
|
2019-02-01 20:19:50 +03:00
|
|
|
enter insert mode in a new line (or in a given `count` of new lines)
|
2018-05-07 10:33:17 +03:00
|
|
|
above the beginning of each selection
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-07-10 12:55:19 +03:00
|
|
|
*<a-o>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
add an empty line below cursor
|
2017-07-10 12:55:19 +03:00
|
|
|
|
|
|
|
*<a-O>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
add an empty line above cursor
|
2017-07-10 12:55:19 +03:00
|
|
|
|
2016-02-03 20:15:35 +03:00
|
|
|
*y*::
|
2017-11-02 12:37:39 +03:00
|
|
|
yank selections
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*p*::
|
2018-05-07 10:33:17 +03:00
|
|
|
paste after the end of each selection
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*P*::
|
2018-05-07 10:33:17 +03:00
|
|
|
paste before the beginning of each selection
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*<a-p>*::
|
2018-05-07 10:33:17 +03:00
|
|
|
paste all after the end of each selection, and select each pasted string
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*<a-P>*::
|
2018-05-07 10:33:17 +03:00
|
|
|
paste all before the start of each selection, and select each pasted string
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*R*::
|
2018-05-07 10:33:17 +03:00
|
|
|
replace selections with yanked text
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-07-09 13:00:28 +03:00
|
|
|
*<a-R>*::
|
2018-05-07 10:33:17 +03:00
|
|
|
replace selections with every yanked text
|
2017-07-09 13:00:28 +03:00
|
|
|
|
2016-02-03 20:15:35 +03:00
|
|
|
*r*::
|
2017-11-02 12:37:39 +03:00
|
|
|
replace each character with the next entered one
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*<a-j>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
join selected lines
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*<a-J>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
join selected lines and select spaces inserted in place of line breaks
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2018-09-29 20:41:41 +03:00
|
|
|
*<a-_>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
merge contiguous selections together (works across lines as well)
|
2016-08-29 11:48:40 +03:00
|
|
|
|
2016-02-03 20:15:35 +03:00
|
|
|
*>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
indent selected lines
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2016-03-12 12:13:49 +03:00
|
|
|
*<a\->>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
indent selected lines, including empty lines
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*<*::
|
2017-11-02 12:37:39 +03:00
|
|
|
deindent selected lines
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*<a-<>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
deindent selected lines, do not remove incomplete indent (3 leading
|
|
|
|
spaces when indent is 4)
|
2016-02-11 00:03:49 +03:00
|
|
|
|
2016-02-03 20:15:35 +03:00
|
|
|
*u*::
|
2017-11-02 12:37:39 +03:00
|
|
|
undo last change
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2016-07-26 09:26:13 +03:00
|
|
|
*<a-u>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
move backward in history
|
2016-07-26 09:26:13 +03:00
|
|
|
|
2016-02-03 20:15:35 +03:00
|
|
|
*U*::
|
2017-11-02 12:37:39 +03:00
|
|
|
redo last change
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2016-07-26 09:26:13 +03:00
|
|
|
*<a-U>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
move forward in history
|
2016-07-26 09:26:13 +03:00
|
|
|
|
2016-02-03 20:15:35 +03:00
|
|
|
*&*::
|
2018-05-07 10:33:17 +03:00
|
|
|
align selections, align the cursor of each selection by inserting spaces
|
|
|
|
before the first character of each selection
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*<a-&>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
copy indent, copy the indentation of the main selection (or the
|
2019-02-01 20:19:50 +03:00
|
|
|
`count` one if a `count` is given) to all other ones
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*`*::
|
2017-11-02 12:37:39 +03:00
|
|
|
to lower case
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*~*::
|
2017-11-02 12:37:39 +03:00
|
|
|
to upper case
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*<a-`>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
swap case
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*@*::
|
2018-05-07 10:33:17 +03:00
|
|
|
convert tabs to spaces in each selection, uses the buffer tabstop
|
2019-02-01 20:19:50 +03:00
|
|
|
option or the `count` parameter for tabstop
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*<a-@>*::
|
2018-05-07 10:33:17 +03:00
|
|
|
convert spaces to tabs in each selection, uses the buffer tabstop
|
2019-02-01 20:19:50 +03:00
|
|
|
option or the `count` parameter for tabstop
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2018-02-13 16:35:10 +03:00
|
|
|
*_*::
|
2018-09-24 16:39:18 +03:00
|
|
|
unselect whitespace surrounding each selection, drop those that only
|
|
|
|
contain whitespace
|
2018-02-13 16:35:10 +03:00
|
|
|
|
2018-03-25 03:34:38 +03:00
|
|
|
*<a-)>*::
|
2019-02-01 20:19:50 +03:00
|
|
|
rotate selections content, if specified, the `count` groups selections,
|
2017-11-02 12:37:39 +03:00
|
|
|
so the following command
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2016-03-12 12:13:49 +03:00
|
|
|
----------
|
2018-04-19 19:55:41 +03:00
|
|
|
3<a-)>
|
2016-03-12 12:13:49 +03:00
|
|
|
----------
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-11-02 12:37:39 +03:00
|
|
|
rotate (1, 2, 3) and (3, 4, 6) independently
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2018-03-25 03:34:38 +03:00
|
|
|
*<a-(>*::
|
|
|
|
rotate selections content backward
|
|
|
|
|
2018-05-24 17:04:06 +03:00
|
|
|
== Changes through external programs
|
|
|
|
|
|
|
|
Shell expansions are available, (See <<expansions#shell-expansions,`:doc expansions shell-expansions`>>)
|
|
|
|
The default command comes from the *|* register by default (See <<registers#,`:doc registers`>>)
|
|
|
|
|
|
|
|
*|*::
|
|
|
|
pipe each selection through the given external filter program and
|
|
|
|
replace the selection with its output.
|
|
|
|
|
|
|
|
*<a-|>*::
|
|
|
|
pipe each selection through the given external filter program and
|
|
|
|
ignore its output.
|
|
|
|
|
|
|
|
*!*::
|
|
|
|
insert command output before each selection.
|
|
|
|
|
|
|
|
*<a-!>*::
|
|
|
|
append command output after each selection.
|
|
|
|
|
|
|
|
== Searching
|
|
|
|
|
|
|
|
Searches use the */* register by default (See <<registers#,`:doc registers`>>)
|
|
|
|
|
|
|
|
*/*::
|
|
|
|
select next match after each selection
|
|
|
|
|
|
|
|
*<a-/>*::
|
|
|
|
select previous match before each selection
|
|
|
|
|
|
|
|
*?*::
|
|
|
|
extend to next match after each selection
|
|
|
|
|
|
|
|
*<a-?>*::
|
|
|
|
extend to previous match before each selection
|
|
|
|
|
|
|
|
*n*::
|
|
|
|
select next match after the main selection
|
|
|
|
|
|
|
|
*N*::
|
|
|
|
add a new selection with next match after the main selection
|
|
|
|
|
|
|
|
*<a-n>*::
|
|
|
|
select previous match before the main selection
|
|
|
|
|
|
|
|
*<a-N>*::
|
|
|
|
add a new selection with previous match before the main selection
|
|
|
|
|
|
|
|
***::
|
|
|
|
set the search pattern to the main selection (automatically
|
|
|
|
detects word boundaries)
|
|
|
|
|
|
|
|
*<a-***>*::
|
|
|
|
set the search pattern to the main selection (verbatim, no smart
|
|
|
|
detection)
|
|
|
|
|
2017-11-10 20:06:38 +03:00
|
|
|
== Goto commands
|
2017-01-23 02:53:08 +03:00
|
|
|
|
2017-06-15 15:14:05 +03:00
|
|
|
*g*, *G*::
|
2019-02-01 20:19:50 +03:00
|
|
|
When a `count` is specified, *G* only extends the selection to the given line,
|
2017-11-02 12:37:39 +03:00
|
|
|
*g* sends the anchor to the given line and a menu is then displayed which waits
|
|
|
|
for one of the following additional keys:
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-11-02 12:37:39 +03:00
|
|
|
*h*:::
|
|
|
|
go to line begin
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-11-02 12:37:39 +03:00
|
|
|
*l*:::
|
|
|
|
go to line end
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-11-02 12:37:39 +03:00
|
|
|
*i*:::
|
|
|
|
go to non blank line start
|
2017-01-23 02:53:08 +03:00
|
|
|
|
2017-11-02 12:37:39 +03:00
|
|
|
*g*, *k*:::
|
|
|
|
go to the first line
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-11-02 12:37:39 +03:00
|
|
|
*j*:::
|
|
|
|
go to the last line
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-11-02 12:37:39 +03:00
|
|
|
*e*:::
|
|
|
|
go to last char of last line
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-11-02 12:37:39 +03:00
|
|
|
*t*:::
|
|
|
|
go to the first displayed line
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-11-02 12:37:39 +03:00
|
|
|
*c*:::
|
|
|
|
go to the middle displayed line
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-11-02 12:37:39 +03:00
|
|
|
*b*:::
|
|
|
|
go to the last displayed line
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-11-02 12:37:39 +03:00
|
|
|
*a*:::
|
|
|
|
go to the previous (alternate) buffer
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-11-02 12:37:39 +03:00
|
|
|
*f*:::
|
|
|
|
open the file whose name is selected
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-11-02 12:37:39 +03:00
|
|
|
*.*:::
|
|
|
|
go to last buffer modification position
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-11-02 05:03:24 +03:00
|
|
|
== View commands
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-06-15 15:14:05 +03:00
|
|
|
*v*, *V*::
|
2017-11-02 12:37:39 +03:00
|
|
|
*V* enters lock view mode (which will be left when the <esc> is hit),
|
|
|
|
and *v* modifies the current view; a menu is then displayed which waits
|
|
|
|
for one of the following additional keys:
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-11-02 12:37:39 +03:00
|
|
|
*v*, *c*:::
|
|
|
|
center the main selection in the window (vertically)
|
2017-10-06 18:49:13 +03:00
|
|
|
|
2017-11-02 12:37:39 +03:00
|
|
|
*m*:::
|
|
|
|
center the main selection in the window (horizontally)
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-11-02 12:37:39 +03:00
|
|
|
*t*:::
|
|
|
|
scroll to put the main selection on the top line of the window
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-11-02 12:37:39 +03:00
|
|
|
*b*:::
|
|
|
|
scroll to put the main selection on the bottom line of the window
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-11-02 12:37:39 +03:00
|
|
|
*h*:::
|
2019-02-01 20:19:50 +03:00
|
|
|
scroll the window `count` columns left
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-11-02 12:37:39 +03:00
|
|
|
*j*:::
|
2019-02-01 20:19:50 +03:00
|
|
|
scroll the window `count` line downward
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-11-02 12:37:39 +03:00
|
|
|
*k*:::
|
2019-02-01 20:19:50 +03:00
|
|
|
scroll the window `count` line upward
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-11-02 12:37:39 +03:00
|
|
|
*l*:::
|
2019-02-01 20:19:50 +03:00
|
|
|
scroll the window `count` columns right
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-11-02 05:03:24 +03:00
|
|
|
== Marks
|
|
|
|
|
2017-11-10 20:06:38 +03:00
|
|
|
Current selections position can be saved in a register and restored later on.
|
|
|
|
Marks use the *^* register by default (See <<registers#,`:doc registers`>>)
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*Z*::
|
2018-05-07 10:33:17 +03:00
|
|
|
save selections to the register
|
2016-11-09 16:57:05 +03:00
|
|
|
|
2016-02-03 20:15:35 +03:00
|
|
|
*z*::
|
2018-05-07 10:33:17 +03:00
|
|
|
restore selections from the register
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-06-15 15:14:05 +03:00
|
|
|
*<a-z>*, *<a-Z>*::
|
2018-05-07 10:33:17 +03:00
|
|
|
*<a-z>* combines selections from the register with the current ones, whereas
|
|
|
|
*<a-Z>* combines current selections with the ones in the register; a menu
|
|
|
|
is then displayed which waits for one of the following additional keys:
|
2017-05-20 12:31:49 +03:00
|
|
|
|
2017-11-02 12:37:39 +03:00
|
|
|
*a*:::
|
2018-05-07 10:33:17 +03:00
|
|
|
append selections
|
2017-05-20 12:31:49 +03:00
|
|
|
|
2017-11-02 12:37:39 +03:00
|
|
|
*u*:::
|
2018-05-07 10:33:17 +03:00
|
|
|
keep a union of selections
|
2017-06-15 15:14:05 +03:00
|
|
|
|
2017-11-02 12:37:39 +03:00
|
|
|
*i*:::
|
2018-05-07 10:33:17 +03:00
|
|
|
keep an intersection of selections
|
2017-06-15 15:14:05 +03:00
|
|
|
|
2017-11-02 12:37:39 +03:00
|
|
|
*<*:::
|
|
|
|
select the selection with the leftmost cursor for each pair
|
2017-06-15 15:14:05 +03:00
|
|
|
|
2017-11-02 12:37:39 +03:00
|
|
|
*>*:::
|
|
|
|
select the selection with the rightmost cursor for each pair
|
2017-06-15 15:14:05 +03:00
|
|
|
|
2017-11-02 12:37:39 +03:00
|
|
|
*+*:::
|
|
|
|
select the longest selection
|
2017-06-15 15:14:05 +03:00
|
|
|
|
2017-11-02 12:37:39 +03:00
|
|
|
*-*:::
|
|
|
|
select the shortest selection
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-11-02 05:03:24 +03:00
|
|
|
== Macros
|
|
|
|
|
2017-11-10 20:06:38 +03:00
|
|
|
Macros use the *@* register by default (See <<registers#,`:doc registers`>>)
|
2017-05-17 15:22:27 +03:00
|
|
|
|
2016-02-03 20:15:35 +03:00
|
|
|
*Q*::
|
2017-11-02 12:37:39 +03:00
|
|
|
start or end macro recording
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*q*::
|
2017-11-02 12:37:39 +03:00
|
|
|
play a recorded macro
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-11-10 20:06:38 +03:00
|
|
|
*<esc>*::
|
|
|
|
end macro recording
|
|
|
|
|
2017-11-02 05:03:24 +03:00
|
|
|
== Jump list
|
|
|
|
|
2017-11-10 20:06:38 +03:00
|
|
|
Some commands, like the goto commands, buffer switch or search commands,
|
|
|
|
push the previous selections to the client's jump list. It is possible
|
|
|
|
to skim through the jump list using:
|
|
|
|
|
2016-02-03 20:15:35 +03:00
|
|
|
*<c-i>*::
|
2017-11-10 20:06:38 +03:00
|
|
|
jump forward
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*<c-o>*::
|
2017-11-10 20:06:38 +03:00
|
|
|
jump backward
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*<c-s>*::
|
2018-05-07 10:33:17 +03:00
|
|
|
save selections
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-11-02 05:03:24 +03:00
|
|
|
== Multiple selections
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2018-05-24 17:04:06 +03:00
|
|
|
*s*, *S*, *<a-k>* and *<a-K>* use the */* register by default (See <<registers#,`:doc registers`>>)
|
|
|
|
|
2016-02-03 20:15:35 +03:00
|
|
|
*s*::
|
2018-05-07 10:33:17 +03:00
|
|
|
create a selection for each match of the given regex
|
2019-02-01 18:36:57 +03:00
|
|
|
(selects the count capture if it is given)
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-11-13 12:36:04 +03:00
|
|
|
*S*::
|
2018-05-07 10:33:17 +03:00
|
|
|
split selections with the given regex
|
2019-02-01 18:36:57 +03:00
|
|
|
(selects the count capture if it is given)
|
2017-11-13 12:36:04 +03:00
|
|
|
|
2016-02-03 20:15:35 +03:00
|
|
|
*<a-s>*::
|
2018-05-07 10:33:17 +03:00
|
|
|
split selections on line boundaries
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-11-13 12:36:04 +03:00
|
|
|
*<a-S>*::
|
2018-05-07 10:33:17 +03:00
|
|
|
select first and last characters of each selection
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*C*::
|
2018-05-07 10:33:17 +03:00
|
|
|
copy the main selection to the next line
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*<a-C>*::
|
2018-05-07 10:33:17 +03:00
|
|
|
copy the main selection to the previous line
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*<space>*::
|
2018-05-07 10:33:17 +03:00
|
|
|
clear selections to only keep the main one
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*<a-space>*::
|
2018-05-07 10:33:17 +03:00
|
|
|
clear the main selection
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*<a-k>*::
|
2018-05-07 10:33:17 +03:00
|
|
|
keep selections that match the given regex
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*<a-K>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
clear selections that match the given regex
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*$*::
|
2017-11-02 12:37:39 +03:00
|
|
|
pipe each selection to the given shell command and keep the ones
|
2018-01-23 07:59:46 +03:00
|
|
|
for which the shell returned 0. Shell expansions are available,
|
|
|
|
(See <<expansions#shell-expansions,`:doc expansions shell-expansions`>>)
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2018-05-07 10:33:17 +03:00
|
|
|
*)*::
|
|
|
|
rotate main selection (the main selection becomes the next one)
|
|
|
|
|
|
|
|
*(*::
|
|
|
|
rotate main selection backward (the main selection becomes the previous one)
|
|
|
|
|
2017-11-02 05:03:24 +03:00
|
|
|
== Object Selection
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2019-02-01 20:19:50 +03:00
|
|
|
For nestable objects, a `count` can be used in order to specify which surrounding
|
2018-05-24 17:04:06 +03:00
|
|
|
level to select. Object selections are repeatable using *<a-.>*.
|
2017-11-10 20:06:38 +03:00
|
|
|
|
2018-06-02 18:16:32 +03:00
|
|
|
=== Whole object
|
|
|
|
|
|
|
|
A 'whole object' is an object *including* its surrounding characters.
|
|
|
|
For example, for a quoted string this will select the quotes, and
|
|
|
|
for a word this will select trailing spaces.
|
|
|
|
|
2016-02-03 20:15:35 +03:00
|
|
|
*<a-a>*::
|
2018-05-07 10:33:17 +03:00
|
|
|
select the whole object
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*[*::
|
2018-06-02 18:16:32 +03:00
|
|
|
select to the whole object start
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*]*::
|
2018-06-02 18:16:32 +03:00
|
|
|
select to the whole object end
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*{*::
|
2018-06-02 18:16:32 +03:00
|
|
|
extend selections to the whole object start
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*}*::
|
2018-06-02 18:16:32 +03:00
|
|
|
extend selections to the whole object end
|
|
|
|
|
|
|
|
=== Inner object
|
|
|
|
|
|
|
|
An 'inner object' is an object *excluding* its surrounding characters.
|
|
|
|
For example, for a quoted string this will *not* select the quotes, and
|
|
|
|
for a word this will *not* select trailing spaces.
|
|
|
|
|
|
|
|
*<a-i>*::
|
|
|
|
select the inner object
|
|
|
|
|
|
|
|
*<a-[>*::
|
|
|
|
select to the inner object start
|
|
|
|
|
|
|
|
*<a-]>*::
|
|
|
|
select to the inner object end
|
|
|
|
|
|
|
|
*<a-{>*::
|
|
|
|
extend selections to the inner object start
|
|
|
|
|
|
|
|
*<a-}>*::
|
|
|
|
extend selections to the inner object end
|
|
|
|
|
|
|
|
=== Objects types
|
2016-02-02 22:15:12 +03:00
|
|
|
|
2018-06-02 18:16:32 +03:00
|
|
|
After the keys described above, a second key needs to be entered
|
|
|
|
in order to specify the wanted object:
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*b*, *(*, *)*::
|
2017-11-02 12:37:39 +03:00
|
|
|
select the enclosing parenthesis
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*B*, *{*, *}*::
|
2017-11-02 12:37:39 +03:00
|
|
|
select the enclosing {} block
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*r*, *[*, *]*::
|
2017-11-02 12:37:39 +03:00
|
|
|
select the enclosing [] block
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*a*, *<*, *>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
select the enclosing <> block
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-11-10 20:06:38 +03:00
|
|
|
*Q*, *"*::
|
2017-11-02 12:37:39 +03:00
|
|
|
select the enclosing double quoted string
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-11-10 20:06:38 +03:00
|
|
|
*q*, *'*::
|
2017-11-02 12:37:39 +03:00
|
|
|
select the enclosing single quoted string
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2017-11-10 20:06:38 +03:00
|
|
|
*g*, *`*::
|
2017-11-02 12:37:39 +03:00
|
|
|
select the enclosing grave quoted string
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*w*::
|
2017-11-02 12:37:39 +03:00
|
|
|
select the whole word
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2018-03-09 16:25:19 +03:00
|
|
|
*<a-w>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
select the whole WORD
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*s*::
|
2017-11-02 12:37:39 +03:00
|
|
|
select the sentence
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*p*::
|
2017-11-02 12:37:39 +03:00
|
|
|
select the paragraph
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*␣*::
|
2017-11-02 12:37:39 +03:00
|
|
|
select the whitespaces
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*i*::
|
2017-11-02 12:37:39 +03:00
|
|
|
select the current indentation block
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*n*::
|
2017-11-02 12:37:39 +03:00
|
|
|
select the number
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2016-04-13 11:51:51 +03:00
|
|
|
*u*::
|
2017-11-02 12:37:39 +03:00
|
|
|
select the argument
|
2016-04-13 11:51:51 +03:00
|
|
|
|
2017-10-06 18:49:13 +03:00
|
|
|
*c*::
|
2017-11-02 12:37:39 +03:00
|
|
|
select user defined object, will prompt for open and close text
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2019-02-13 22:14:10 +03:00
|
|
|
*<a-;>*::
|
2019-02-14 17:53:36 +03:00
|
|
|
run a command with additional expansions describing the selection
|
|
|
|
context (See <<expansions#,`:doc expansions`>>)
|
2019-02-13 22:14:10 +03:00
|
|
|
|
2017-11-10 20:06:38 +03:00
|
|
|
== Prompt commands
|
|
|
|
|
2018-09-04 00:55:56 +03:00
|
|
|
When pressing `:` in normal mode, Kakoune will open a prompt to enter
|
|
|
|
a command. The executed command line is stored in the *:* register
|
|
|
|
(See <<registers#,`:doc registers`>>).
|
2018-05-24 17:04:06 +03:00
|
|
|
|
2018-09-04 00:55:56 +03:00
|
|
|
During edition, a transient *clipboard* is available, its content is
|
|
|
|
empty at the start of prompt edition, and is not preserved afterwards.
|
|
|
|
|
|
|
|
The following keys are recognized by this mode to help with editing
|
|
|
|
(See <<commands#,`:doc commands`>>).
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*<ret>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
validate prompt
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*<esc>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
abandon without
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2018-09-03 15:15:28 +03:00
|
|
|
*<left>*, *<c-b>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
move cursor to previous character
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2018-09-03 15:15:28 +03:00
|
|
|
*<right>*, *<c-f>*::
|
2018-03-09 11:22:06 +03:00
|
|
|
move cursor to next character
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2018-09-03 15:15:28 +03:00
|
|
|
*<home>*, *<c-a>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
move cursor to first character
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2018-09-09 12:01:45 +03:00
|
|
|
*<end>*, *<c-e>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
move cursor past the last character
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2018-09-03 15:15:28 +03:00
|
|
|
*<backspace>*, *<c-h>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
erase character before cursor
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2018-09-03 15:15:28 +03:00
|
|
|
*<del>*, *<c-d>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
erase character under cursor
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2018-09-03 15:15:28 +03:00
|
|
|
*<a-f>*::
|
2017-11-25 19:18:12 +03:00
|
|
|
advance to next word begin
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2018-09-03 15:15:28 +03:00
|
|
|
*<a-F>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
advance to next WORD begin
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2018-09-03 15:15:28 +03:00
|
|
|
*<a-b>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
go back to previous word begin
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2018-09-03 15:15:28 +03:00
|
|
|
*<a-B>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
go back to previous WORD begin
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2018-09-03 15:15:28 +03:00
|
|
|
*<a-e>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
advance to next word end
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2018-09-03 15:15:28 +03:00
|
|
|
*<a-E>*::
|
2018-09-09 12:01:45 +03:00
|
|
|
advance to next WORD end
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2018-09-04 00:55:56 +03:00
|
|
|
*<c-w>*::
|
|
|
|
erase to previous word begin, save erased content to *clipboard*
|
|
|
|
|
|
|
|
*<c-W>*::
|
|
|
|
erase to previous WORD begin, save erased content to *clipboard*
|
|
|
|
|
|
|
|
*<a-d>*::
|
|
|
|
erase to previous word end, save erased content to *clipboard*
|
|
|
|
|
|
|
|
*<a-D>*::
|
|
|
|
erase to previous WORD end, save erased content to *clipboard*
|
|
|
|
|
|
|
|
*<c-k>*::
|
|
|
|
erase to end of line, save erased content to *clipboard*
|
|
|
|
|
|
|
|
*<c-u>*::
|
|
|
|
erase to begin of line, save erased content to *clipboard*
|
|
|
|
|
|
|
|
*<c-y>*::
|
|
|
|
insert *clipboard* content before cursor
|
|
|
|
|
2016-02-03 20:15:35 +03:00
|
|
|
*<up>*, *<c-p>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
select previous entry in history
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*<down>*, *<c-n>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
select next entry in history
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*<tab>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
select next completion candidate
|
2016-02-03 20:15:35 +03:00
|
|
|
|
2018-03-15 15:02:27 +03:00
|
|
|
*<s-tab>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
select previous completion candidate
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*<c-r>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
insert then content of the register given by next key
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*<c-v>*::
|
2017-11-02 12:37:39 +03:00
|
|
|
insert next keystroke without interpreting it
|
2016-02-03 20:15:35 +03:00
|
|
|
|
|
|
|
*<c-o>*::
|
2018-08-27 23:02:15 +03:00
|
|
|
toggle automatic completion
|
2018-04-04 04:00:25 +03:00
|
|
|
|
|
|
|
*<a-!>*::
|
|
|
|
expand the typed expansions in currently entered text
|
|
|
|
(See <<expansions#typed-expansions,`:doc expansions typed-expansions`>>)
|
2018-07-15 03:39:25 +03:00
|
|
|
|
|
|
|
*<a-;>*::
|
|
|
|
escape to normal mode for a single command
|