X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vimrc;h=f482daf98259c2809c12375af34d0313c39383c5;hb=81fd9dd908139ac857db0090e920fcd5a6c7cda1;hp=f0e4e26e216d7e9ce14586d6d1065affdc4c3ae0;hpb=71407b981dd364450a95c7a50e1942566e456fca;p=config%2Fdotfiles.git diff --git a/vimrc b/vimrc index f0e4e26..f482daf 100644 --- a/vimrc +++ b/vimrc @@ -601,6 +601,8 @@ if has('syntax') " Settings for specific filetypes. + " C + let g:c_no_if0_fold = 1 " fix weird double fold in #if0 in recent versions " Haskell. let g:hs_highlight_delimiters = 1 let g:hs_highlight_boolean = 1 @@ -635,11 +637,17 @@ 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 " Map toggle comment. - map NERDCommenterToggle + nmap NERDCommenterToggle " XPTemplate settings. " Try to maintain snippet rendering even after editing outside of a