X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vim%2Fvimrc;h=84813d960d6bf5758a7be09a2a17d3eadfd1e49e;hb=c282b1a7e828b5d9244d1ba0e8afb6134f818984;hp=86c1e706e8263965107374ae908d8795fbd682eb;hpb=0dd903507ae3f0fea3d284418ddad55132070ffb;p=config%2Fdotfiles.git diff --git a/vim/vimrc b/vim/vimrc index 86c1e70..84813d9 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -920,11 +920,10 @@ if has('eval') endif " Settings for securemodelines. - " Only allow items I need (also includes spl which is not enabled by - " default). + " Only allow items I need if v:version >= 700 " need lists let g:secure_modelines_allowed_items = ['ft', 'spl', 'fdm', - \ 'sw', 'sts', 'noet'] + \ 'ts', 'sw', 'sts', 'noet'] endif " Settings for gnupg. @@ -1082,8 +1081,9 @@ if has('autocmd') autocmd FileType vimperator setlocal commentstring=\"%s " Use TeX compiler for (La)TeX files. autocmd FileType tex compiler tex -" Go always uses tabs for indentation. - autocmd FileType go call UseTabs() +" Go always uses tabs for indentation; use BufRead so modelines can overwrite +" settings like 'tabstop' + autocmd BufRead,StdinReadPost *.go call UseTabs() " FTDETECT AUTO COMMANDS