Re: Error In Documentation?

2007-03-25 Thread Vigil
On Sun, 25 Mar 2007, A.J.Mechelynck wrote: When used after an ex-command which expects a file name, % means the filename of the current buffer, and # means the filename of the alternate buffer. See :help edit-intro :help cmdline-special Thanks - I didn't think of it being use

Re: Error In Documentation?

2007-03-25 Thread A.J.Mechelynck
Vigil wrote: [...] This option may contain '%' and '#' characters, which are expanded like when used in a command-line. I think that needs explaining a bit more. To me, % is used when specifying the entire range of the file on the vim command line, and # prints lines with their res

Re: Error In Documentation?

2007-03-25 Thread Bram Moolenaar
Vigil wrote: > On Sun, 25 Mar 2007, Bram Moolenaar wrote: > > > You apparently really want to pass ${*} to the shell command. The help > > for makeprg explains replacing $* with the name of the file, but you use > > "%" for that. > > My help says that $* is replaced with the arguments, which I

Re: Error In Documentation?

2007-03-25 Thread Vigil
On Sun, 25 Mar 2007, Bram Moolenaar wrote: You apparently really want to pass ${*} to the shell command. The help for makeprg explains replacing $* with the name of the file, but you use "%" for that. My help says that $* is replaced with the arguments, which I take to mean -T in my example:

Re: Error In Documentation?

2007-03-25 Thread Bram Moolenaar
Vigil wrote: > On Fri, 23 Mar 2007, Bram Moolenaar wrote: > > >> in :help makeprg, I think the {$*} in the example ought to be ${*}. At > >> least, it wouldn't work for me unless I did that. > > > > No, it's really $*. This is replaced by Vim before passing the command > > to the shell. > > $*

Re: Error In Documentation?

2007-03-24 Thread Vigil
On Fri, 23 Mar 2007, Bram Moolenaar wrote: in :help makeprg, I think the {$*} in the example ought to be ${*}. At least, it wouldn't work for me unless I did that. No, it's really $*. This is replaced by Vim before passing the command to the shell. $* and {$*} won't work in my ftplugin. Thi

Re: Error In Documentation?

2007-03-23 Thread Bram Moolenaar
Vigil wrote: > In vim's: > > VIM - Vi IMproved 7.0 (2006 May 7, compiled May 30 2006 13:06:19) > VIM - Vi IMproved 6.4 (2005 Oct 15, compiled May 23 2006 12:03:57) > > in :help makeprg, I think the {$*} in the example ought to be ${*}. At > least, it wouldn't work for me unless I did that. No,

Error In Documentation?

2007-03-23 Thread Vigil
In vim's: VIM - Vi IMproved 7.0 (2006 May 7, compiled May 30 2006 13:06:19) VIM - Vi IMproved 6.4 (2005 Oct 15, compiled May 23 2006 12:03:57) in :help makeprg, I think the {$*} in the example ought to be ${*}. At least, it wouldn't work for me unless I did that. -- .