From 8411a454724dd8e6da1bfc13419b261571c9cc82 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 26 Mar 2018 07:07:22 +0300 Subject: [PATCH] .vimrc: Optimize SetExecutableBit: fname is no longer used We use `au FileChangedShell ` syntax instead of `au FileChangedShell fname`. --- .vimrc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 % -- 2.39.5