asfsadf asfsadf - 6 days ago 6
Linux Question

Quickest way to paste block of text into Vi Editor from external source

For instance, copying a conf section from a web page then pasting it into a .conf file that you have open in Vi.

Answer

Or if you use the system register, you can paste without being in insert mode:

"*p

This will paste the system's clipboard at the point of the cursor. No insert mode needed.