so what isnt working
- select to copy
pasting using middle mouse button
something i forgot
wathch online at gyfcat
That's only partially correct. Modern Vim knows how to interact with the X server, even in console mode. However, the user must take care to tell Vim to load the contents of the X clipboard, not to tell the terminal to use the clipboard. Primary is available as the register *; clipboard is available as the register +. With the right compile options and configuration, Vim running in a terminal can still be an X client and access the clipboard directly. This also enables you to copy text from Vim into the X clipboard, even when the presentation in your terminal is suboptimal (for example, if you had wrap off, or showbreak on).calavicci wrote:First, the missing "I" is because you're not accounting for vi. Vi doesn't know about any clipboard mechanism - it's designed for the console.
Why not use :set paste, which is specifically designed and documented for this purpose? It resets more options than you describe, and it knows how to revert them when you :set nopaste later.calavicci wrote:Second, the spacing is wrong because vi doesn't know that you aren't just typing into it. It's got an automatic spacing plugin. Try ":set noautoindent" and ":set nosmartindent" before pasting.