summaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
authorjluehrs2 <jluehrs2@uiuc.edu>2008-04-21 00:57:49 -0500
committerjluehrs2 <jluehrs2@uiuc.edu>2008-04-21 00:57:49 -0500
commit9d86a6debe458ed2abbe97dab81c82891b693ade (patch)
tree8cfe3c7e16aaa56f94ccd6a08d8a86dd8dc7ee81 /vimrc
parentf0345e079aedc2220ee7b3d0047a08cdc3c1069a (diff)
downloadconf-9d86a6debe458ed2abbe97dab81c82891b693ade.tar.gz
conf-9d86a6debe458ed2abbe97dab81c82891b693ade.zip
make the chmod silent
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc3
1 files changed, 1 insertions, 2 deletions
diff --git a/vimrc b/vimrc
index c80c09c..4089cea 100644
--- a/vimrc
+++ b/vimrc
@@ -339,8 +339,7 @@ autocmd BufNewFile *.tex silent 0read ~/.vim/skeletons/tex.tex | normal Gddk
autocmd BufNewFile Makefile silent 0read ~/.vim/skeletons/Makefile | normal Gddgg$
" }}}
" Auto +x {{{
-au BufWritePost *.sh !chmod +x %
-au BufWritePost *.pl !chmod +x %
+au BufWritePost *.{sh,pl} silent exe "!chmod +x %"
"}}}
" Perl :make does a syntax check {{{
autocmd FileType perl setlocal makeprg=$VIMRUNTIME/tools/efm_perl.pl\ -c\ %\ $*