[vim/vim] Opposite of autoread/programmable autoread behavior? (Issue #19266)

2 views
Skip to first unread message

user202729

unread,
1:43 AM (5 hours ago) 1:43 AM
to vim/vim, Subscribed
user202729 created an issue (vim/vim#19266)

Currently, we have, if a file change outside of vim

  • if autoread is on
    • if file is changed inside vim: ask the user
    • if file is not changed inside vim: automatically read
  • if autoread is off
    • if file is changed inside vim: ask the user
    • if file is not changed inside vim: ask the user

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.Message ID: <vim/vim/issues/19266@github.com>

zeertzjq

unread,
1:53 AM (5 hours ago) 1:53 AM
to vim/vim, Subscribed
zeertzjq left a comment (vim/vim#19266)

:h FileChangedShell


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19266/3809330845@github.com>

user202729

unread,
2:21 AM (4 hours ago) 2:21 AM
to vim/vim, Subscribed

Closed #19266 as completed.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issue/19266/issue_event/22337360890@github.com>

user202729

unread,
2:27 AM (4 hours ago) 2:27 AM
to vim/vim, Subscribed
user202729 left a comment (vim/vim#19266)

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.Message ID: <vim/vim/issues/19266/3809494894@github.com>

Reply all
Reply to author
Forward
0 new messages