by climb_stealth · 5y ago · 0 comments
" check for and load file changes when a window is focused. Together with
" `noswapfile` this allows to edit the same file in multiple nvim instances and
" have the changes reloaded whenever the focus is changed.
autocmd WinEnter,BufWinEnter,FocusGained * checktimeSee [0] for something to try.
[0] https://vim.fandom.com/wiki/Auto_save_files_when_focus_is_lo...
in the few cases where i really need to open the file multiple times i use tmux to allow a shared view.
It's a bit crude but I really like how it results in a uniform way of working in the terminal. As opposed to handling different files and processes depending on what applications is currently running.