Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

vim modeline turned off

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
markjolesen
Posts: 1
Joined: 2010-01-27 06:48

vim modeline turned off

#1 Post by markjolesen »

What is the reason why vim modeline is turned off by default in debian?
And for that matter ex...
It took me hours to find out what the problem was, and it was a serious annoyance.

The solution to the problem was to create a ~/.vimrc file with

set modeline

That was it.

However, when you figure out, that debian screwed with you,

/usr/share/vim/vim71/debian.vim, and find

" modelines have historically been a source of security/resource
" vulnerabilities -- disable by default, even when 'nocompatible' is set
set nomodeline

And many more...

What is with that?

User avatar
debil
Posts: 1336
Joined: 2008-05-11 08:55
Location: Mazes of Menace, surrounded by brown puddings

Re: vim modeline turned off

#2 Post by debil »

markjolesen wrote:What is the reason why vim modeline is turned off by default in debian?
You already found out the reason why.
markjolesen wrote:And for that matter ex...
It took me hours to find out what the problem was, and it was a serious annoyance.
You could've checked what's the current setting for modeline with :set modeline? and then do :set modeline and/or put it in your .vimrc if you want it permanently.
markjolesen wrote:However, when you figure out, that debian screwed with you,

/usr/share/vim/vim71/debian.vim, and find

" modelines have historically been a source of security/resource
" vulnerabilities -- disable by default, even when 'nocompatible' is set
set nomodeline

And many more...

What is with that?
They're just Debian specific settings.
Q: Why is the Eunux kernel so bloated?
A: It was made in the image of its founder.

Post Reply