DSL Tips and Tricks :: Pasting to cliipboard, Vim



Quote
Well the clipboard is an X function, so a console app can't interface with it at all
Yes, it can. Many console applications are built with limited X support for just such a purpose. Using the mouse to highlight text from these applications copies the contents to a buffer so it can be pasted into some X applications, as the original post stated (doesn't seem to work well with a lot of Gtk apps).

I think the question posed is "Is there a better way?"
Personally I often use the mouse to copy and paste from Vim to X apps, because I don't know of a better way. For example, it doesn't work when your text is not all in view...when scrolling the text is deselected, so I copy, paste, scroll, copy, paste.

Quote (mikshaw @ Nov. 26 2007,13:04)
I think the question posed is "Is there a better way?"
Personally I often use the mouse to copy and paste from Vim to X apps, because I don't know of a better way. For example, it doesn't work when your text is not all in view...when scrolling the text is deselected, so I copy, paste, scroll, copy, paste.

If we had a gui version, we could add a scroll bar (set guioptions+=r) and copy more than text in view.  It's rare that I have to this, however,
and I'm happy that I found a way to turn the line numbers on and off.

I just compiled vim 7.1 with --enable-gui=gtk.  In visual mode (type "v") you can highlight the entire file scrolling up with the arrow keys.
This effectively copies to clipboard.  Nice!

http://jpeters.net/apps/

to run:
/usr/local/bin/vim  or /usr/local/bin/vimdiff

(vimdiff -> vim)

even better.....with 7.1 you can enter visual mode (v) and go to a previously marked line (e.g., 'c).  It's all highlighted and on the clipboard for pasting into another file (and without line numbers).

edit:  7.1 also has standard cntrl-c, cntrl-v cut and paste functions to clipboard.

edit: also has spellcheck.

...changed dsl to unc extension, and left in docs (F1 for help menu)

http://jpeters.net/apps/

Edit: Added mydsl.menu

Next Page...
original here.