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 >
jpeters Offline





Group: Members
Posts: 804
Joined: April 2006
Posted: Nov. 26 2007,00:17 QUOTE

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?
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Nov. 26 2007,00:26 QUOTE

In vim's buffer? You can use "y" in command mode.
Back to top
Profile PM 
jpeters Offline





Group: Members
Posts: 804
Joined: April 2006
Posted: Nov. 26 2007,00:43 QUOTE

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





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: Nov. 26 2007,16:48 QUOTE

Well the clipboard is an X function, so a console app can't interface with it at all..

--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Nov. 26 2007,17:16 QUOTE

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