Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge commit 'bf839b5e931eeb5a44bb36fe6fc02b97d51a940b'

  • Loading branch information...
commit 767c2b4ea43c8a3a849f54033525bbb75422a5aa 2 parents d204d5b + bf839b5
@jamessan authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 .vim/bundle/securemodelines/plugin/securemodelines.vim
View
6 .vim/bundle/securemodelines/plugin/securemodelines.vim
@@ -6,9 +6,10 @@
" License: Redistribute under the same terms as Vim itself
" Purpose: A secure alternative to modelines
-if &compatible || v:version < 700
+if &compatible || v:version < 700 || exists('g:loaded_securemodelines')
finish
endif
+let g:loaded_securemodelines = 1
if (! exists("g:secure_modelines_allowed_items"))
let g:secure_modelines_allowed_items = [
@@ -21,6 +22,9 @@ if (! exists("g:secure_modelines_allowed_items"))
\ "foldmethod", "fdm",
\ "readonly", "ro", "noreadonly", "noro",
\ "rightleft", "rl", "norightleft", "norl",
+ \ "cindent", "cin", "nocindent", "nocin",
+ \ "smartindent", "si", "nosmartindent", "nosi",
+ \ "autoindent", "ai", "noautoindent", "noai",
\ "spell",
\ "spelllang"
\ ]
Please sign in to comment.
Something went wrong with that request. Please try again.