Last active
July 1, 2021 18:16
-
-
Save davehorner/8ea745bf9ece4d215e0b6630dca28408 to your computer and use it in GitHub Desktop.
vim commenting out pasted text?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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