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
See also: Inserting from a Register, Special Registers