Skip to content

Instantly share code, notes, and snippets.

@davehorner
Last active July 1, 2021 18:16
Show Gist options
  • Save davehorner/8ea745bf9ece4d215e0b6630dca28408 to your computer and use it in GitHub Desktop.
Save davehorner/8ea745bf9ece4d215e0b6630dca28408 to your computer and use it in GitHub Desktop.
vim commenting out pasted text?
press the middle mouse button.
Enter paste mode before you paste:
:set paste
To switch back to "normal" mode:
:set nopaste
shift+Insert - paste.
hold "Shift" and then paste.
:set pastetoggle=<F2>
Either paste in normal mode via "*p (active selection) or "+p (system clipboard),
"*p. The text selected by the mouse is placed in the * register.
"+p the text was placed in the in the + register.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment