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.
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 <SID>UseTabs()
+" Go always uses tabs for indentation; use BufRead so modelines can overwrite
+" settings like 'tabstop'
+ autocmd BufRead,StdinReadPost *.go call <SID>UseTabs()
" FTDETECT AUTO COMMANDS