diff --git a/README.asciidoc b/README.asciidoc index ff240ff1..6064e676 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -1031,7 +1031,7 @@ contain some special data: * `%` (`percent`): current buffer name * `.` (`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 Default registers @@ -1039,7 +1039,7 @@ Default registers 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 `/` * `@` (`arobase`): default macro register, used by `q` and `Q` * `^` (`caret`): default mark register, used by `z` and `Z` diff --git a/doc/manpages/registers.asciidoc b/doc/manpages/registers.asciidoc index 8fbb9175..8ec294d3 100644 --- a/doc/manpages/registers.asciidoc +++ b/doc/manpages/registers.asciidoc @@ -59,7 +59,7 @@ contain some special data *.* (dot):: current selection contents -*#* (dash):: +*#* (hash):: selection indices (first selection has 1, second has 2, ...) *_* (underscore):: diff --git a/src/register_manager.cc b/src/register_manager.cc index a1ebabf2..635d05bc 100644 --- a/src/register_manager.cc +++ b/src/register_manager.cc @@ -19,7 +19,7 @@ Register& RegisterManager::operator[](StringView reg) const { "arobase", '@' }, { "percent", '%' }, { "dot", '.' }, - { "dash", '#' }, + { "hash", '#' }, { "underscore", '_' } }; auto it = reg_names.find(reg);