Paste from Buffer (Ctrl-R)
Same Ctrl-R as Insert mode โ inject any register.
From the command line, Ctrl-R{reg} inserts the register contents โ exactly like in Insert mode. Lets you build commands from the unnamed register, search history, last yank, expression results, etc.
Paste from Buffer
Ctrl-R on the command line works exactly like in Insert mode: it injects register contents into the line you're building.
| Sequence | Inserts |
|---|---|
| Ctrl-R" | Unnamed register |
| Ctrl-R0 | Last yank |
| Ctrl-R+ | System clipboard |
| Ctrl-R/ | Last search pattern |
| Ctrl-R: | Last Ex command |
| Ctrl-R% | Current filename |
| Ctrl-RCtrl-W | Word under cursor in buffer |
| Ctrl-R={expr} | Expression result |
Watch
- ๐บ #0451 Ctrl-R Ctrl-W โ Insert Word (not yet published)
- ๐บ #0451 Ctrl-R Ctrl-W โ Insert Word (not yet published)
See also: Inserting from a Register, Special Registers