E518: Unknown option: #
vi, vim
Solution
Comments in your `.vimrc` are starting with a double quote (`"`).
Example:
"
" using the mouse
"
" mouse - list of flags for using the mouse
set mouse=n
" mousemodel - "extend", "popup" or "popup_setpos"; what the right mouse button is used for
set mousem=extend
Problem
I copied the default settings from vimconfig into my newly created .vimrc. After I start vim a bunch of the following messages apear: ``` E518: Unknown option: # ``` Reading vim e518: unknown option: I'm asuming it has something to do with modeline: " [...] line is in a format that Vim recognizes as a modeline, as mentioned in the error message. Modelines allow one to set options within a file" - jamessan I don't really understand the Information given from `:help modeline` Do I need to add a line like: ``` vi:noai:sw=3 ts=6 vim: tw=77 ``` Because `set: nomodeline` has no effect after I restart vim How do I make vim ignore the comments in my .vimrc ?