On Thu, 25 May 2006 at 1:33am, A.J.Mechelynck wrote:

> Hari Krishna Dara wrote:
> > On Wed, 24 May 2006 at 2:37pm, Yegappan Lakshmanan wrote:
> >
> >
> >> Hi Hari,
> >>
> >> On 5/24/06, Hari Krishna Dara <[EMAIL PROTECTED]> wrote:
> >>
> >>> This was working fine in Vim6.3, but in Vim7 I get E488. Here is how to
> >>> reproduce:
> >>>
> >>> :command! TT :echo "TT"
> >>> :TT | TT
> >>>
> >>> You get:
> >>>
> >>> E488: Trailing characters
> >>>
> >>> Looks like the user commands can't be followed by other commands
> >>> anymore.
> >>>
> >>>
> >> You should use the "-bar" argument to ":command":
> >>
> >>    :command! -bar TT :echo "TT"
> >>
> >> - Yegappan
> >>
> >
> > The -bar option is different. It just says that "|" in the arguments
> > should be treated as an argument (not as a command separator). Without
> > -bar option, the "|" character should really act as a command separator.
> > If you run the above exact test in Vim 6.3, you don't get this error and
> > it works really as a command separator.
> >
> >
> You have it backwards, see ":help E177" and scroll down by 24 lines.
> "-bar" in the arguments means that a bar can be used to separate the
> newly-defined command from a subsequent command. Without -bar, a bar, if
> present, and whatever follows it, are understood as part of the argument
> string. IIRC, it was aleeady like this in 6.1
>
>
> Best regards,
> Tony.

You are right, I got it backwards. It looks like this was a bug in 6.3
that allowed me to use bar with out the -bar option. In fact, it may be
that what is after the | was totally ignored, and I didn't really
observe the difference (it was just a refresh). Thanks for the
clarification.

-- 
Thanks,
Hari

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to