>
> Using what you suggested in vim I though maybe I could do something like:
>
> :args *.html
> :argdo g/<body>/put=@*
>
> But when try that (and I know in the above I'd lose the <body> tag if it
> worked) all I get is <body> highlighted in the file displayed.
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.
--
Albin Olsson, IT Consultant and Classic Connoisseur
www.albinolsson.se | albin.olsson@gmail.com
+46 707 831 830
--
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:
Post a Comment