2016-02-03 18:15:35 +01:00
|
|
|
KAKOUNE(1)
|
|
|
|
==========
|
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
|
|
|
registers - a
|
|
|
|
|
|
|
|
Description
|
|
|
|
-----------
|
2016-02-10 22:03:49 +01:00
|
|
|
Registers are named lists of text -instead of simply text- in order to interact
|
|
|
|
well with multiselection. They are used for various purposes, like storing
|
|
|
|
the last yanked test, or the captured groups associated with the selections.
|
2016-02-03 18:15:35 +01:00
|
|
|
|
|
|
|
Interacting
|
|
|
|
-----------
|
|
|
|
*<c-r><c>*::
|
2016-02-10 22:03:49 +01:00
|
|
|
when in insert mode or in a prompt, insert the value stored in the
|
|
|
|
*c* register (single character)
|
2016-02-03 18:15:35 +01:00
|
|
|
|
|
|
|
*"<c>*::
|
|
|
|
in normal mode, select the *<c>* register (single character)
|
|
|
|
|
|
|
|
Default registers
|
|
|
|
-----------------
|
2016-02-02 20:15:12 +01:00
|
|
|
Most commands using a register default to a specific one if not specified:
|
|
|
|
|
2016-02-03 18:15:35 +01:00
|
|
|
*"*::
|
2016-02-10 22:03:49 +01:00
|
|
|
default yank, used by yanking and pasting commands like *y*, *p*
|
|
|
|
and *R*
|
2016-02-03 18:15:35 +01:00
|
|
|
|
|
|
|
*/*::
|
2016-02-10 22:03:49 +01:00
|
|
|
default search register, used by regex based commands like *s*, *\**
|
|
|
|
or */*
|
2016-02-03 18:15:35 +01:00
|
|
|
|
|
|
|
*@*::
|
|
|
|
default macro register, used by *q* and *Q*
|
|
|
|
|
|
|
|
*^*::
|
|
|
|
default mark register, used by *z* and *Z*
|
|
|
|
|
|
|
|
Special registers
|
|
|
|
-----------------
|
2016-02-10 22:03:49 +01:00
|
|
|
Some registers are not general purposes, they cannot be written to, but they
|
|
|
|
contain some special data
|
2016-02-02 20:15:12 +01:00
|
|
|
|
2016-02-03 18:15:35 +01:00
|
|
|
*%*::
|
|
|
|
current buffer name
|
|
|
|
|
|
|
|
*.*::
|
|
|
|
current selection contents
|
|
|
|
|
|
|
|
*#*::
|
|
|
|
selection indices (first selection has 1, second has 2, ...)
|