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.