" 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
" 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
\ '| 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 && <SID>HasSyntaxGroup('specialKeyTab')
call matchadd('specialKeyTab', '\t')
endif
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 <Leader><Leader> <Plug>NERDCommenterToggle
+ nmap <Leader><Leader> <Plug>NERDCommenterToggle
" XPTemplate settings.
" Try to maintain snippet rendering even after editing outside of a
\ 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