From: Simon Ruderich Date: Thu, 11 Apr 2013 14:02:34 +0000 (+0200) Subject: vimrc: Fix 'include' for sh files. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=483e296814a8e17a08a7ba02aa265e4d93a84669;p=config%2Fdotfiles.git vimrc: Fix 'include' for sh files. --- 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.