by graywh · 15y ago · 0 comments
And pasting to terminal Vim doesn't suck if your Vim is configured to detect mouse clicks or interface with the system clipboard. Using the system paste shortcut (command- or ctrl-V) in insert mode is not the way to do it.
:set pastetoggle=<F5>
Wack F5, middle-click paste away.* is the Linux selection register.
+ is your clipboard.
So yanking is just set paste, "+y or " * y, set nopaste. Similarly you can do a "+d in vim and ctrl-v it in your browser or anywhere you can access the clipboard. You can " * d/" * y and paste it with your middle mouse button.
If you paste method doesn't let vim know what's going on, use pastetoggle, otherwise don't.