On Sun, Apr 17, 2011 at 2:57 PM, Tony Mechelynck <
[email protected]> 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 saved with Unix line endings
>> and it should go away. Vim scripts with Unix line endings work on all
>> systems.
>>
>> Ben.
>>
>>
>>
>>
>>
> I thought it was because of the ^M (an actual carriage-return)
> intentionally made part of the substitute pattern; replacing it with \r
> would then cure the problem.
>
>
> Best regards,
> Tony.
> --
> unix soit qui mal y pense
>

Thanks!

I defined a shortcut to do the job :%s/^M//g<cr>

-- 
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

Reply via email to