Search code examples
linuxtext-editorvi

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


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


Solution

  • 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.