LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Vim modelines (https://www.linuxquestions.org/questions/linux-software-2/vim-modelines-477003/)

Jessard 08-24-2006 12:54 PM

Vim modelines
 
How do I turn of the "feature" of modelines in vim? There's nothing in the man page for it, and I didn't even know it existed until vim thought I was trying to use it in an ordinary text file. On top of that, half of what I see in searches lists it as a security hole, as I would expect. I don't want vim doing any special parsing of my files, aside from color-coding. Anyone know how to change this?

Vijairaj 08-24-2006 01:27 PM

add the following line to your .vimrc file
set modelines=0

Jessard 08-24-2006 01:39 PM

Thanks, worked like a charm.


All times are GMT -5. The time now is 09:35 PM.