Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ 1 [2] >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Pasting to cliipboard, Vim< Next Oldest | Next Newest >
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Nov. 26 2007,18:04 QUOTE

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.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
jpeters Offline





Group: Members
Posts: 804
Joined: April 2006
Posted: Nov. 26 2007,19:15 QUOTE

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.
Back to top
Profile PM 
jpeters Offline





Group: Members
Posts: 804
Joined: April 2006
Posted: Nov. 26 2007,21:11 QUOTE

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)
Back to top
Profile PM 
jpeters Offline





Group: Members
Posts: 804
Joined: April 2006
Posted: Nov. 26 2007,23:49 QUOTE

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.
Back to top
Profile PM 
jpeters Offline





Group: Members
Posts: 804
Joined: April 2006
Posted: Nov. 27 2007,09:11 QUOTE

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

http://jpeters.net/apps/

Edit: Added mydsl.menu
Back to top
Profile PM 
9 replies since Nov. 26 2007,00:17 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ 1 [2] >/
reply to topic new topic new poll
Quick Reply: Pasting to cliipboard, Vim

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code