Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-24-2006, 12:54 PM   #1
Registered: Jun 2005
Location: Boston, USA
Distribution: Gentoo, CentOS
Posts: 82

Rep: Reputation: 16
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?
Old 08-24-2006, 01:27 PM   #2
LQ Newbie
Registered: Aug 2004
Location: India
Distribution: Debian, Fedora
Posts: 25

Rep: Reputation: 15
add the following line to your .vimrc file
set modelines=0
Old 08-24-2006, 01:39 PM   #3
Registered: Jun 2005
Location: Boston, USA
Distribution: Gentoo, CentOS
Posts: 82

Original Poster
Rep: Reputation: 16
Thanks, worked like a charm.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Vim tips: Using Vim mappings and abbreviations LXer Syndicated Linux News 0 06-18-2006 01:54 PM
LXer: Cream for Vim - Making Vim more user friendly LXer Syndicated Linux News 0 06-17-2006 11:54 PM
modelines pengy666 Linux - Hardware 1 05-23-2005 09:23 AM
p95f+b modelines Freaksta Linux - Hardware 1 05-31-2004 06:33 PM
Modelines, refresh, HELP! Opentoe Linux - General 4 11-08-2001 04:17 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:42 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration