Charles Campbell wrote:
> >>So, a feature request: how about a <p-args> that breaks the input
> >>arguments at whitespace (but otherwise leaves the arguments alone). The
> >>"p" is to be vaguely reminescent of: pattern-arguments (as in regular
> >>expression patterns)?
> >>
> >>
> >
> >I think the last time something changed here was with patch 7.0.214,
> >that's quite a long time ago. It was done because the handling of
> >escaped white space was wrong.
> >
> >I understand that you don't want to escape white space at all, thus
> >"a\ b" would be split in "a\" and "b". Why not use <q-args> and do the
> >splitting at white space in the invoked function?
> >
> >
> I thought about that -- I'd need to duplicate that (script) function in
> several places, though, and figured it might be better in vim source.
> The primary function handling <p-args> is basically a much shortened
> version of that used for <f-args>, so it was fairly straightforward.
and:
> Another difference: in addition to another function, the script will
> need changing in other ways (as a:{i} won't work anymore).
I thought it was very simple when using <q-args>:
:let l = split(a:1)
And then use l[i] instead of a:{i}.
--
hundred-and-one symptoms of being an internet addict:
188. You purchase a laptop so you can surf while sitting on the can.
/// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---