Reply to message «Is it possible to have a pipe in formatprg?», 
sent 17:12:48 13 December 2010, Monday
by BPJ:

Yes, it is. You either need to escape pipe symbol (because
    setl formatprg=filter1|filter2
and
    setl formatprg=filter1
    filter2
are just the same), or use let, for example:
    let &l:formatprg='cat -v | xmllint --format -'
Note that in this case you don't need to escape neither bar nor spaces, so I 
suggest you forget about `setlocal' for such complex options.

Original message:
> Is it possible to have a pipe in formatprg?
> 
>      :setl formatprg=filer1|filter2
> 
> (I know I can't do *that*, but that's the idea...)
> 
> /bpj

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to