X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vimrc;h=39cadf0cc03a383c4b3d650d2ec4e113263005c4;hb=483e296814a8e17a08a7ba02aa265e4d93a84669;hp=d0c490c2f187fc4cda6220a30161fdce94203599;hpb=04598af6bbe257b8366da6ac2df45093e3c5dc58;p=config%2Fdotfiles.git diff --git a/vimrc b/vimrc index d0c490c..39cadf0 100644 --- a/vimrc +++ b/vimrc @@ -1010,6 +1010,10 @@ if has('autocmd') " the recommendation for git commit messages (http://tpope.net/node/106). autocmd FileType gitcommit let g:secure_modelines_allowed_items = [] | \ setlocal textwidth=72 +" Fix 'include' setting for shell files to recognize '.' and 'source' +" commands. Use &l:include instead of setlocal which requires excessive +" escaping of \. + autocmd FileType sh let &l:include = '^\s*\(\.\|source\)\s\+' " 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.