aboutsummaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
Diffstat (limited to 'autoload')
-rw-r--r--autoload/utils.vim13
1 files changed, 13 insertions, 0 deletions
diff --git a/autoload/utils.vim b/autoload/utils.vim
index fc078f7..3bb83bf 100644
--- a/autoload/utils.vim
+++ b/autoload/utils.vim
@@ -164,3 +164,16 @@ autocmd! BufNewFile,BufRead *.* call utils#DisableBr()
"-------------------------------------------------
+
+" Annoying timestamp issue on write (The file has been changed since reading it...)
+function! utils#ProcessFileChangedShell()
+ if v:fcs_reason == 'mode' || v:fcs_reason == 'time'
+ let v:fcs_choice = ''
+ else
+ let v:fcs_choice = 'ask'
+ endif
+endfunction
+autocmd FileChangedShell <buffer> call utils#ProcessFileChangedShell()
+
+
+"-------------------------------------------------