mirror of
https://github.com/jbranchaud/til
synced 2026-01-16 05:28:03 +00:00
Add Paste A Register From Insert Mode as a vim til.
This commit is contained in:
@@ -338,6 +338,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
|
|||||||
- [Open an Unnamed Buffer](vim/open-an-unnamed-buffer.md)
|
- [Open an Unnamed Buffer](vim/open-an-unnamed-buffer.md)
|
||||||
- [Opening a URL](vim/opening-a-url.md)
|
- [Opening a URL](vim/opening-a-url.md)
|
||||||
- [Opening Man Pages In Vim](vim/opening-man-pages-in-vim.md)
|
- [Opening Man Pages In Vim](vim/opening-man-pages-in-vim.md)
|
||||||
|
- [Paste A Register From Insert Mode](vim/paste-a-register-from-insert-mode.md)
|
||||||
- [Preventing Typos with Abbreviations](vim/preventing-typos-with-abbreviations.md)
|
- [Preventing Typos with Abbreviations](vim/preventing-typos-with-abbreviations.md)
|
||||||
- [Previous Buffer](vim/previous-buffer.md)
|
- [Previous Buffer](vim/previous-buffer.md)
|
||||||
- [Previous Visual Selection](vim/previous-visual-selection.md)
|
- [Previous Visual Selection](vim/previous-visual-selection.md)
|
||||||
|
|||||||
16
vim/paste-a-register-from-insert-mode.md
Normal file
16
vim/paste-a-register-from-insert-mode.md
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
# Paste A Register From Insert Mode
|
||||||
|
|
||||||
|
Generally pasting a register is done from Normal mode using `p` or something
|
||||||
|
like `'1p` (the latter pasting from register `1`). Vim also allows you to
|
||||||
|
paste from a register without leaving Insert mode. By hitting `CTRL-R` and
|
||||||
|
then the name of the register, Vim will insert the contents of the register
|
||||||
|
in front of the cursor.
|
||||||
|
|
||||||
|
For example, to paste from the default register from Insert mode, hit
|
||||||
|
`CTRL-R 0`.
|
||||||
|
|
||||||
|
Note, mappings and abbreviations will not be applied to the inserted text.
|
||||||
|
|
||||||
|
See `:h i_CTRL-R` for more details.
|
||||||
|
|
||||||
|
h/t Chris Erin
|
||||||
Reference in New Issue
Block a user