Fix register alternate name doc and dash -> hash for '#'
This commit is contained in:
parent
10681f4809
commit
0d2bb4756b
|
@ -1031,7 +1031,7 @@ contain some special data:
|
||||||
|
|
||||||
* `%` (`percent`): current buffer name
|
* `%` (`percent`): current buffer name
|
||||||
* `.` (`dot`): current selection contents
|
* `.` (`dot`): current selection contents
|
||||||
* `#` (`dash`): 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
|
||||||
|
|
||||||
Default registers
|
Default registers
|
||||||
|
@ -1039,7 +1039,7 @@ Default registers
|
||||||
|
|
||||||
Most commands using a register default to a specific one if not specified:
|
Most commands using a register default to a specific one if not specified:
|
||||||
|
|
||||||
* `"` (`dqoute`): default yank register, used by yanking and pasting commands like `y`, `p` and `R`
|
* `"` (`dquote`): default yank register, used by yanking and pasting commands like `y`, `p` and `R`
|
||||||
* `/` (`slash`): default search register, used by regex based commands like `s`, `*` or `/`
|
* `/` (`slash`): default search register, used by regex based commands like `s`, `*` or `/`
|
||||||
* `@` (`arobase`): default macro register, used by `q` and `Q`
|
* `@` (`arobase`): default macro register, used by `q` and `Q`
|
||||||
* `^` (`caret`): default mark register, used by `z` and `Z`
|
* `^` (`caret`): default mark register, used by `z` and `Z`
|
||||||
|
|
|
@ -59,7 +59,7 @@ contain some special data
|
||||||
*.* (dot)::
|
*.* (dot)::
|
||||||
current selection contents
|
current selection contents
|
||||||
|
|
||||||
*#* (dash)::
|
*#* (hash)::
|
||||||
selection indices (first selection has 1, second has 2, ...)
|
selection indices (first selection has 1, second has 2, ...)
|
||||||
|
|
||||||
*_* (underscore)::
|
*_* (underscore)::
|
||||||
|
|
|
@ -19,7 +19,7 @@ Register& RegisterManager::operator[](StringView reg) const
|
||||||
{ "arobase", '@' },
|
{ "arobase", '@' },
|
||||||
{ "percent", '%' },
|
{ "percent", '%' },
|
||||||
{ "dot", '.' },
|
{ "dot", '.' },
|
||||||
{ "dash", '#' },
|
{ "hash", '#' },
|
||||||
{ "underscore", '_' }
|
{ "underscore", '_' }
|
||||||
};
|
};
|
||||||
auto it = reg_names.find(reg);
|
auto it = reg_names.find(reg);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user