From: Simon Ruderich Date: Sun, 31 May 2009 12:31:03 +0000 (+0200) Subject: securemodelines: Allow disabling of the plugin. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;ds=sidebyside;h=5ed2291178ede6b97b41a7e07296ad0d1bc6568b;p=config%2Fdotfiles.git securemodelines: Allow disabling of the plugin. Taken from Debian vim-scripts package. Thanks. --- diff --git a/plugin/securemodelines.vim b/plugin/securemodelines.vim index e862a17..bb4b60f 100644 --- a/plugin/securemodelines.vim +++ b/plugin/securemodelines.vim @@ -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",