Document default registers
This commit is contained in:
parent
9134066e85
commit
a0bcdd83df
|
@ -851,6 +851,16 @@ contain some special data:
|
|||
* `.`: current selection contents
|
||||
* `#`: selection indices (first selection has 1, second has 2, ...)
|
||||
|
||||
Default registers
|
||||
^^^^^^^^^^^^^^^^^
|
||||
|
||||
Most commands using a register default to a specific one if not specified:
|
||||
|
||||
* `"`: default yank, used by yanking and pasting commands like `y`, `p` and `R`
|
||||
* `/`: default search register, used by regex based commands like `s`, `*` or `/`
|
||||
* `@`: default macro register, used by `q` and `Q`
|
||||
* `^`: default mark register, used by `z` and `Z`
|
||||
|
||||
Macros
|
||||
~~~~~~
|
||||
|
||||
|
|
|
@ -149,7 +149,12 @@ constexpr StringView register_doc =
|
|||
"Special registers:\n"
|
||||
" * %: buffer name\n"
|
||||
" * .: selection contents\n"
|
||||
" * #: selection index\n";
|
||||
" * #: selection index\n"
|
||||
" * [0-9]: selections capture group\n"
|
||||
" * \": default yank/paste register\n"
|
||||
" * @: default macro register\n"
|
||||
" * /: default search register\n"
|
||||
" * ^: default mark register\n";
|
||||
|
||||
class Normal : public InputMode
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user