News for hackers. Stuff that matters.
Re:Pasting in command line Vim doesn't have to suck by burgerbrain on Tuesday May 10, 2011 @10:21AM (#2532564)

  :set pastetoggle=<F5>
Wack F5, middle-click paste away.
Re:Pasting in command line Vim doesn't have to suck by joefiorini on Tuesday May 10, 2011 @10:24AM (#2532571)
Sure, that works great if you want to reach for the mouse.
Re:Pasting in command line Vim doesn't have to suck by irahul on Tuesday May 10, 2011 @11:11AM (#2532725)
As mentioned elsewhere, if your vim is compiled with clipboard support(:version and look for +clipboard), you can copy/paste from the clipboard.

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

Re:Pasting in command line Vim doesn't have to suck by burgerbrain on Tuesday May 10, 2011 @11:15AM (#2532740)
The mouse has nothing to do with it...

If you paste method doesn't let vim know what's going on, use pastetoggle, otherwise don't.

Re:Pasting in command line Vim doesn't have to suck by jrockway on Tuesday May 10, 2011 @10:59AM (#2532684)
Pretty sure vi does not care about, or is even able to detect, the difference between a middle-mouse and a shift-insert paste.
Re:Pasting in command line Vim doesn't have to suck by pyre on Tuesday May 10, 2011 @11:02AM (#2532699)
Unless your terminal emulator has mouse support and you ':set mouse=a' in Vim.
Re:Pasting in command line Vim doesn't have to suck by jdj on Tuesday May 10, 2011 @01:29PM (#2533344)
Or you can use shift+insert.