> This is caused by having the word "Vim" somewhere in that file. You can turn 
> off modelines in your _vimrc, via a BufReadPre autocmd, or as "toothpik" 
> suggests from the command-line when you invoke Vim.
> 

I "set nomodelines" in _vimrc and that took care of this problem

> This sounds like it COULD be an issue with either your 'fileformat' or 
> 'fileformats' options, but I'm not sure why it would be all on one line 
> unless you somehow have a file with old Mac-style line endings.
> 
> Anyway, take a look at 
> http://vim.wikia.com/wiki/File_format#Results_of_incorrect_file_format_detection
>  to see if you can figure out what's going on there.

The files I was having problems with were generated by a linux vm. In my _vimrc 
I had "set fileformats=dos,unix,mac"; changing it to "set fileformat=dos" seems 
to have solved the problem.

The alternative was to use ":e ++ff=dos" every time I opened any linux vm 
generated file.

Thanks.

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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to