Quickest way to paste block of text into the vi editor from an external source Quickest way to paste block of text into the vi editor from an external source linux linux

Quickest way to paste block of text into the vi editor from an external source


  1. Enter insert mode (Type i)
  2. Type: Ctrl + Shift + v


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.


The real answer:

  1. :set paste

  2. Enter Insert Mode: hit i

  3. Paste: Command + v or Control + v

  4. ESC

  5. :set nopaste