Closed wezm closed 6 years ago
good idea, gvim does the same thing
Sounds good.
Solution maybe to add call of checktime on focus enter or implement autocommands FocusGained/FocusLost. So user can add something like this autocmd FocusGained * checktime
to config.
Adding something like this to init.vim fix this problem
autocmd BufEnter,FocusGained * checktime
Many years ago when I used MacVim, one of the benefits over console vim was that it automatically refreshed files when it regained focus. This can be great if you switch git branches or something then switch back. Instead of needing to remember to
:checkt
it does it for you.