]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
vimrc: Only enable some items in securemodelines.
authorSimon Ruderich <simon@ruderich.org>
Sat, 30 Jun 2012 13:06:20 +0000 (15:06 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sat, 30 Jun 2012 13:06:20 +0000 (15:06 +0200)
vimrc

diff --git a/vimrc b/vimrc
index 4d15af8731224876a8d95244eee9fa0bfab2d2c4..f482daf98259c2809c12375af34d0313c39383c5 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -637,6 +637,12 @@ if has('eval')
         silent! execute 'call pathogen#runtime_append_all_bundles()'
     endif
 
+" Settings for securemodelines.
+    " Only allow items I need (also includes spl which is not enabled by
+    " default).
+    let g:secure_modelines_allowed_items = ['ft', 'spl', 'fdm',
+                                          \ 'sw', 'sts', 'noet']
+
 " Settings for the NERD commenter.
     " Don't create any mappings I don't want to use.
     let g:NERDCreateDefaultMappings = 0