Friday, December 27, 2013

Re: Function to pipe data through external command ?

On 2013-12-27, Andre Majorel wrote:
> On 2013-12-27 10:35 -0600, tooth pik wrote:
> > On Fri, Dec 27, 2013 at 03:47:17PM +0100, Andre Majorel wrote:
> > > Is there a Vim function to filter arbitrary strings through
> > > external programs ? Thanks in advance and happy holidays.
> >
> > absolutely (I (used to) use it every time I run the Reconcile function
> > in my bank module)
> >
> > run
> >
> > :h complex-change
> >
> > with attention to :{range}!{cmd} filter
>
> Thanks but :{range}! only filters entire lines from the buffer.
> I need something finer grained.

For finer-grained selection, try Chip Campbell's vis.vim plugin:
http://vim.sourceforge.net/scripts/script.php?script_id=1195

It allows you to visually-select a portion of a line (or lines) and
pass just that portion to a Vim command, including an external
command.

HTH,
Gary

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: