Bernat Tallaferro wrote:
Tony,

thanks for your reply. I'm sorry if I'm asking something obvious, but
adding this to my .vimrc file:

On Thu, 2006-06-22 at 22:23 +0200, A.J.Mechelynck wrote:

2.
        command VimGrep -nargs=1 -bar -bang
        \       vimgrep<bang> <args> ../src/*.c,../inc/*.h


gives me an "E488: Trailing characters" error whenever I try to
execute :VimGrep /my-pattern/

I've had a look at :h E488, but I did not quite get what could be
causing this.

Thanks.





Oops. Replace the comma at the end by a space. And BTW maybe it's more logical to put the header files first:
        command! VimGrep -nargs=1 -bar -bang
        \       vimgrep<bang> <args> ../inc/*.h ../src/*.c


Best regards,
Tony.

Reply via email to