Docs: add missing colon register (last entered command)
This commit is contained in:
parent
52c8dc9d09
commit
0d2b303f62
|
@ -1098,6 +1098,7 @@ contain some special data:
|
||||||
* `.` (`dot`): current selection contents
|
* `.` (`dot`): current selection contents
|
||||||
* `#` (`hash`): selection indices (first selection has 1, second has 2, ...)
|
* `#` (`hash`): selection indices (first selection has 1, second has 2, ...)
|
||||||
* `_` (`underscore`): null register, always empty
|
* `_` (`underscore`): null register, always empty
|
||||||
|
* `:` (`colon`): last entered command
|
||||||
|
|
||||||
Default registers
|
Default registers
|
||||||
^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
@ -65,6 +65,9 @@ contain some special data
|
||||||
*_* (underscore)::
|
*_* (underscore)::
|
||||||
null register, always empty
|
null register, always empty
|
||||||
|
|
||||||
|
*:* (colon)::
|
||||||
|
last entered command
|
||||||
|
|
||||||
Integer registers
|
Integer registers
|
||||||
-----------------
|
-----------------
|
||||||
Registers *1* to *9* hold the grouped sub-matches of the regular
|
Registers *1* to *9* hold the grouped sub-matches of the regular
|
||||||
|
|
|
@ -20,7 +20,8 @@ Register& RegisterManager::operator[](StringView reg) const
|
||||||
{ "percent", '%' },
|
{ "percent", '%' },
|
||||||
{ "dot", '.' },
|
{ "dot", '.' },
|
||||||
{ "hash", '#' },
|
{ "hash", '#' },
|
||||||
{ "underscore", '_' }
|
{ "underscore", '_' },
|
||||||
|
{ "colon", ':' }
|
||||||
};
|
};
|
||||||
auto it = reg_names.find(reg);
|
auto it = reg_names.find(reg);
|
||||||
if (it == reg_names.end())
|
if (it == reg_names.end())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user