From: Oleg Broytman Date: Fri, 20 Apr 2018 13:31:03 +0000 (+0300) Subject: .vimrc: Run `chmod` silently X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=904a5914057b2f40c37534072c2c4ae7243e9076;p=dotfiles.git .vimrc: Run `chmod` silently --- 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