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.

-- 
Thanks,
Hari

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

Reply via email to