Re: why autocmd has E488 error

2011-04-17 Thread Ben Schmidt
E488 is Trailing characters Perhaps it is occurring because your script has DOS line endings on a Unix/Mac system. That frequently causes these kinds of errors. Ensure your script containing the autocommand is saved with Unix line endings and it should go away. Vim scripts with Unix line

Re: why autocmd has E488 error

2011-04-17 Thread Tony Mechelynck
On 17/04/11 13:54, Ben Schmidt wrote: E488 is Trailing characters Perhaps it is occurring because your script has DOS line endings on a Unix/Mac system. That frequently causes these kinds of errors. Ensure your script containing the autocommand is saved with Unix line endings and it should go

Re: why autocmd has E488 error

2011-04-17 Thread Michael(Xi Zhang)
On Sun, Apr 17, 2011 at 2:57 PM, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 17/04/11 13:54, Ben Schmidt wrote: E488 is Trailing characters Perhaps it is occurring because your script has DOS line endings on a Unix/Mac system. That frequently causes these kinds of errors.

Re: why autocmd has E488 error

2011-04-17 Thread Ben Schmidt
On 18/04/11 6:57 AM, Tony Mechelynck wrote: On 17/04/11 13:54, Ben Schmidt wrote: E488 is Trailing characters Perhaps it is occurring because your script has DOS line endings on a Unix/Mac system. That frequently causes these kinds of errors. Ensure your script containing the autocommand is

Re: why autocmd has E488 error

2011-04-17 Thread Tony Mechelynck
On 18/04/11 01:02, Ben Schmidt wrote: On 18/04/11 6:57 AM, Tony Mechelynck wrote: On 17/04/11 13:54, Ben Schmidt wrote: E488 is Trailing characters Perhaps it is occurring because your script has DOS line endings on a Unix/Mac system. That frequently causes these kinds of errors. Ensure your

why autocmd has E488 error

2011-04-16 Thread Michael(Xi Zhang)
I want use %s/^M//g to delete the ^M in *.c files. In vimrc file, I added au BufRead *.c :%s/^M//gcr But Vim give me a E488 error. If I use au BufRead *.c :%s/^M//g (delete the cr from above) It will be no error, but I need to press Enter to continue. Anyone could give me a hint?

Re: why autocmd has E488 error

2011-04-16 Thread thinca
au BufRead *.c :silent! %s/\r//g -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php

Re: why autocmd has E488 error

2011-04-16 Thread Tony Mechelynck
On 17/04/11 06:51, Michael(Xi Zhang) wrote: I want use %s/^M//g to delete the ^M in *.c files. In vimrc file, I added au BufRead *.c :%s/^M//gcr But Vim give me a E488 error. If I use au BufRead *.c :%s/^M//g (delete the cr from above) It will be no error, but I need to press Enter to