From 904a5914057b2f40c37534072c2c4ae7243e9076 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 20 Apr 2018 16:31:03 +0300 Subject: [PATCH] .vimrc: Run `chmod` silently --- .vimrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.vimrc b/.vimrc index e315350..0ff6ea1 100644 --- a/.vimrc +++ b/.vimrc @@ -593,9 +593,9 @@ if executable('chmod') autocmd FileChangedShell call _BufChangedCB() let fx = executable(expand("%:p")) if a:x && !fx - !chmod a+x % + silent !chmod a+x % elseif !a:x && fx - !chmod a-x % + silent !chmod a-x % endif if v:shell_error echoerr 'Error running chmod: ' . v:shell_error -- 2.39.5