From: Oleg Broytman Date: Mon, 26 Mar 2018 04:07:22 +0000 (+0300) Subject: .vimrc: Optimize SetExecutableBit: fname is no longer used X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=8411a454724dd8e6da1bfc13419b261571c9cc82;p=dotfiles.git .vimrc: Optimize SetExecutableBit: fname is no longer used We use `au FileChangedShell ` syntax instead of `au FileChangedShell fname`. --- diff --git a/.vimrc b/.vimrc index ab3609e..052ace0 100644 --- a/.vimrc +++ b/.vimrc @@ -589,8 +589,7 @@ endif if executable('chmod') function! SetExecutableBit(x) checktime - let fname = expand("%:p") - let fx = executable(fname) + let fx = executable(expand("%:p")) execute "au FileChangedShell call _BufChangedCB()" if a:x && !fx !chmod a+x %