Hi all,

I'd like to do something like this, that runs a shell command based on
the matched part, and captures the output to use as replacement text:

:%s/\(fooba.\)/\=read !command \1/gc

How do I phrase the expression in the replacement part ("read !command
\1")? Maybe a functional wrapper or something.

Thank you.

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