diff --git a/book/src/usage.md b/book/src/usage.md index 81cf83725609b..1a9b13650a70b 100644 --- a/book/src/usage.md +++ b/book/src/usage.md @@ -37,19 +37,30 @@ If a register is selected before invoking a change or delete command, the select - `"hc` - Store the selection in register `h` and then change it (delete and enter insert mode). - `"md` - Store the selection in register `m` and delete it. -### Special registers +### Default registers + +Commands that use registers, like yank (`y`), use a default register if none is specified. +These registers are used as defaults: | Register character | Contains | | --- | --- | | `/` | Last search | | `:` | Last executed command | | `"` | Last yanked text | -| `_` | Black hole | +| `@` | Last recorded macro | + +### Special registers -The system clipboard is not directly supported by a special register. Instead, special commands and keybindings are provided. Refer to the -[key map](keymap.md#space-mode) for more details. +Some registers have special behavior when read from or written to: -The black hole register is a no-op register, meaning that no data will be read or written to it. +| Register character | Contains | +| --- | --- | +| `_` | Nothing: values written to the register are discarded and no values can be read | +| `#` | Index numbers of current selections | +| `.` | Contents of the current selections | +| `%` | Name of the current file | +| `*` | System clipboard | +| `+` | Primary clipboard | ## Surround