On 2014-03-12, Nikolay Pavlov wrote:
>
> On Mar 11, 2014 11:53 PM, "Gary Johnson" wrote:
> >
> > On 2014-03-11, Nikolay Pavlov wrote:
> > > After my patch was included you can use (mentioned in second or
> > > third message in this thread)
> > >
> > > :w !diff %:S
> >
> > Appending :S is easy enough to be a good solution. However, it
> > doesn't handle parentheses any better than "%", at least not with
> > Vim 7.4.193 on Linux.
> >
> > $ vim -N -u NONE 'foo bar()'
> > :w
> > :!file %:S
> > foo bar\(\): ERROR: cannot open `foo bar\(\)' (No such file or
> > directory)
>
> Ha! I have tested braces, figure brackets, dollar, quotes, backticks, per
> cant,
> hash, newline: they all work. But not parenthesis. Good catch.
>
> Though :S modifier is not responsible for this: :echo expand('%:S') is
> correct.
> Will check whether I can disable unneeded escaping for :S.
This seems to have been fixed as of 7.4.233. Now both "%" and %:S
work for my examples, and %:S also works in cases where "%" fails.
Regards,
Gary
--
--
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.