Echoes Corsac.net - Echoes camshot
jeudi 09 août 2007 (1 post)
Ok guys,

if suddenly your vim modelines don't work anymore, don't scratch your head and spend too much time looking for the problem in those (which were perfectly OK 2 days ago).

Vim maintainers disabled modelines in default config files since the last upload:

From /usr/share/doc/vim/changelog.Debian.gz:


* debian/runtime/debian.vim.in
- set 'nomodeline' by default since modelines have historically been a
source of security/resource vulnerabilities. Users should have to
explicitly enable the option to assume the associated risks.




And from /usr/share/vim/vim71/debian.vim:


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



The only thing you have to do is to explicitely enable modelines, acknowledging possible security problems, and add:

set modeline


somewhere in your vimrc.

OTH.

Corsac@09:01:59 (Debian)

Images
Stats
  • 1526 posts
  • 7985 jours
  • 0.19 posts/jour
  • IRC
  • Last.fm
Stuff
Tech
Weblogs
Desktop