Currently, we have, if a file change outside of vim
autoread is on
autoread is off
I want a setting such that
- if file is changed inside vim: do nothing
- if file is not changed inside vim: do nothing
or, even better, change to "do nothing" if the last read of the file is either interrupted, or takes more than 0.1 second, or the file is larger than say 10MB. (Applicable for very large file or file mounted over slow network drive.)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
:h FileChangedShell
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
conclusion: append this to vimrc
function AutoreadCustomization()
let v:fcs_choice=''
"let v:fcs_choice='reload'
endfunction
augroup AutoreadCustomization
au! FileChangedShell * call AutoreadCustomization()
augroup END
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()