diff --git a/core/autocommands.vim b/core/autocommands.vim index e88a1db..29b4cea 100644 --- a/core/autocommands.vim +++ b/core/autocommands.vim @@ -42,10 +42,9 @@ augroup END " https://vi.stackexchange.com/a/20397/15292. augroup auto_read autocmd! - autocmd FocusGained,BufEnter,CursorHold,CursorHoldI * - \ if mode() == 'n' && getcmdwintype() == '' | checktime | endif autocmd FileChangedShellPost * echohl WarningMsg \ | echo "File changed on disk. Buffer reloaded!" | echohl None + autocmd FocusGained,CursorHold * if getcmdwintype() == '' | checktime | endif augroup END augroup numbertoggle