On Dec 5, 1:07 am, John Little <[email protected]> wrote:
> On Dec 5, 12:37 am, rameo <[email protected]> wrote:
>
>
>
> > Would it be also possible to search first and then copy the text to
> > clipboard?
> > This avoids to insert the whole line s/whatever/\=Appclip(submatch(0))/
> > g in command
>
> Well, at the risk of belabouring the obvious, :s// repeats the last
> search, so if you have:
>
> :map <F4> :let @+ = ''<cr>:%s//\=Appclip(submatch(0))/g<cr>
>
> Do a search, press f4, presto.  If I'm using :s or :g I usually do the
> search first to check that I'm getting what I want and only what I
> want.
>
> Regards, John

Thank you John,
That resolved my problem :)

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

Reply via email to