X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vimrc;h=81c8f1b8132ac7e7711b7e05e208956c47106a36;hb=2020e853579397d5379da962b82bb85c64d39856;hp=f0e4e26e216d7e9ce14586d6d1065affdc4c3ae0;hpb=71407b981dd364450a95c7a50e1942566e456fca;p=config%2Fdotfiles.git diff --git a/vimrc b/vimrc index f0e4e26..81c8f1b 100644 --- a/vimrc +++ b/vimrc @@ -69,8 +69,8 @@ set history=1000 " Increase number of possible undos. set undolevels=1000 +" Remember marks (including the last cursor position) for more files. if has('viminfo') - " Remember marks (including the last cursor position) for more files. set viminfo^='1000 endif @@ -510,9 +510,11 @@ endif " ABBREVIATIONS -" Fix some of my spelling mistakes. +" Fix some of my spelling mistakes (German). inoreabbrev relle reelle inoreabbrev reele reelle +" Fix some of my spelling mistakes (English). +inoreabbrev completly completely " SYNTAX SETTINGS @@ -584,7 +586,8 @@ if has('syntax') \ '| call matchadd("Error", "\\%u" . l:x)' \ '| endfor' -" Reduce visibility of tabs in contrast to normal SpecialKeys. +" Special highlight for tabs to reduce their visibility in contrast to other +" SpecialKey characters (e.g. ^L). if &t_Co == 256 && HasSyntaxGroup('specialKeyTab') call matchadd('specialKeyTab', '\t') endif @@ -601,6 +604,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 +640,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 @@ -718,7 +729,7 @@ if has('autocmd') \ setlocal textwidth=72 " Use the same comment string as for Vim files in Vimperator files. autocmd FileType vimperator setlocal commentstring=\"%s -" Use tex compiler for (La)TeX files. +" Use TeX compiler for (La)TeX files. autocmd FileType tex compiler tex " FTDETECT AUTO COMMANDS