]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
vimrc: Don't use modelines.
authorSimon Ruderich <simon@ruderich.org>
Thu, 21 May 2009 12:50:26 +0000 (14:50 +0200)
committerSimon Ruderich <simon@ruderich.org>
Thu, 21 May 2009 12:50:26 +0000 (14:50 +0200)
Use securemodelines plugin instead.

vimrc

diff --git a/vimrc b/vimrc
index de7dc05c18d5276e0781b0d6ecf7bbd054fc85a0..644b59c1ac9aa2fe93f40dea0dda31842b9b915f 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -11,6 +11,10 @@ set nocompatible
 set runtimepath-=~/.vim
 set runtimepath^=~/.vim,~/.vim/plugins,~/.vim/runtime
 
+" Disable modelines as they may cause security problems. Instead use
+" securemodelines (Vim script #1876).
+set nomodeline
+
 " When completing paths first use the longest path then display a list of all
 " possible files.
 set wildmode=longest,list