DSL Tips and Tricks :: Pasting to cliipboard, Vim



After fruitlessly searching for commands to yank to clipboard (instead of buffer), I discovered ":set nonumber" which removes line numbers so that I can highlight  (which copies to clipboard) and paste without having to edit out all the numbers.  ":set number" restores the line numbers.  Perhaps there's a command I don't know which sends yanked lines to clipboard without  highlighting?
In vim's buffer? You can use "y" in command mode.
Quote (^thehatsrule^ @ Nov. 25 2007,19:26)
In vim's buffer? You can use "y" in command mode.

That doesn't copy to the clipboard (i.e., for pasting into another editor, browser, etc.)
Well the clipboard is an X function, so a console app can't interface with it at all..
Not really clear on what you want...
Is this just for X where you don't want to use the mouse? or is this from tty to tty? or tty to X?  Do you not want to highlight at all (either with a mouse or keyboard) but yank by lines? or the whole contents of a file?

There are some easier ways, depending on how your current setup is. In any case, you may be interested in screen and xsel, among others.

Next Page...
original here.