From 483e296814a8e17a08a7ba02aa265e4d93a84669 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Thu, 11 Apr 2013 16:02:34 +0200 Subject: [PATCH] vimrc: Fix 'include' for sh files. --- vimrc | 4 ++++ 1 file changed, 4 insertions(+) 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. -- 2.44.1