]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
securemodelines: Allow disabling of the plugin.
authorSimon Ruderich <simon@ruderich.org>
Sun, 31 May 2009 12:31:03 +0000 (14:31 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sun, 31 May 2009 12:31:03 +0000 (14:31 +0200)
Taken from Debian vim-scripts package. Thanks.

plugin/securemodelines.vim

index e862a17888a7bdc1afa8340b3854555b9edce8fe..bb4b60f714c0ee54f8fa16060ca4d943e684bff5 100644 (file)
@@ -11,6 +11,11 @@ if &compatible || v:version < 700
     finish
 endif
 
+if exists("g:loaded_securemodelines")
+    finish
+endif
+let g:loaded_securemodelines = 1
+
 if (! exists("g:secure_modelines_allowed_items"))
     let g:secure_modelines_allowed_items = [
                 \ "textwidth",   "tw",