11255Re: Trailing ^M characters in .vimrc?
- Feb 28, 2010On Sat, Feb 27, 2010 at 9:39 AM, Jonathan <jonathan.weed@...> wrote:
> Apologies if this is an obvious problem, but the solutions I've beenYou can open that file, enter "set fileformat=mac" and write it again.
> looking at don't seem to work.
> When I load MacVim (via mvim from the terminal), the following error
> messages appear:
>>Error detected while processing /Users/jweed/.vimrc:
>>E488: Trailing characters: nocompatible^M
>>E474: Invalid argument: columns=80^M
>>E474: Invalid argument: wrapmargin=8^M
>>E492: Not an editor command: ^M
> Based on information I've found online, this seems to be a problem
> with line encodings. The only solutions I've found suggest fixing this
> problem by running a substitute command: %s/\r/\r/g. I've tried this
> (from inside MacVim) and it seems to work fine, but when I restart
> mvim the same error occurs and my .vimrc options are not set.
> Any suggestions? For reference, my .vimrc appears below, as it appears
> when I open it in macvim.
> Thanks, Jonathan
This should convert all line-endings to a Mac-friendly format.
You received this message from the "vim_mac" 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
- << Previous post in topic Next post in topic >>