The fastest way is to paste it using any key your system uses (for example, β-v for macs, Ctrl-V for windows, etc.) in insert mode. Some terminals require the use of Shift-Ctrl-V . However, you can embed on the command line how you should embed in vim. However, this can cause some indentation issues, which includes :set paste . The quickest way to get in and out of this is to set the palette (see :help pastetoggle ). For example, I use
set pastetoggle=<leader>p
The reason for using the palette instead of matching is that if you set the display to insert mode, it will read it literally in insert mode. Thus, if you :set paste , go into insert mode and enter any imap , the mapping will not be completed, but instead, letter characters will be inserted. With pastetoggle you can get around this as it is a built-in function.
As others have said, if you are in insert mode, you can also use <Cr>* , but why? Your normal push-in flow is probably better. However, understanding the case * and <Cr> is an important skill. You can learn more about them in :help registers and :help i_CTRL-R . You can also use "*p , but if you type faster, your regular paste is impressive to me. Of course, you could compare this to something else, but then again ... why? You should get used to quickly enter the mode inserts using i, I, a, A, o, O, s, S, c, and C so you can be accurate.
Conner
source share