Friday, December 2, 2011

Re: If I copy multi line text to clipboard how do I know use that in vim for replace text in search/replace?



On Fri, Dec 2, 2011 at 3:35 AM, Albin Olsson <albin.olsson@gmail.com> wrote:
 
You should not lose the body tag because put will not replace anything.
I'm guessing that you are on Linux, in that case the * register is the
selection clipboard and and + is the copied text clipboard.
So try

:argdo g/<body>/put +

instead.

Hope it helps.
 

(Thanks to everyone in this thread for replying.. I don't mind multiple replies for different perspectives.)

Have to run to a meeting so only time to reply quickly to the above.
When I tried that I ended up getting this response:


If I hit enter I don't see anything changed. 

The text in the clipboard I had copied directly from one of these gmail messages just for testing purposes (just copied a few lines of text.)

Does it matter that I'm on the MacOS? I'll try it in my Ubuntu virtual to see it makes a difference.


--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: