[sf-lug] is there a way to open the clipboard in vi?

Michael Shiloh michaelshiloh1010 at gmail.com
Thu Jan 3 11:11:52 PST 2013


here's something i often do:



select a portion of text in something (e.g. mail)

open a terminal

open a vi session

paste what i selected into vi

do some complicated manipulation that is trivial for me in vi (e.g. 
remove all email quote symbols)

write vi file to tmp file

cat tmp file

select catted contents

paste into the final destination



computers are here to help us dammit, shouldn't this be an easy step? in 
my fantasy:

select a portion of text in something (e.g. mail)
magic shortcut OPENS SELECTION IN A VI SESSION
edit to my hearts content
close vi which writes the vi buffer back to the select buffer
paste result in final destination

is this possible?


ubuntu




More information about the sf-lug mailing list