vim: Enable &autoread + autocmd for regular check

This commit is contained in:
2021-02-17 02:38:15 +01:00
parent 9c593f5e55
commit f746909e3a
2 changed files with 11 additions and 0 deletions

View File

@@ -53,3 +53,9 @@ else
autocmd VimLeave * silent !echo -ne "\e[5 q"
endif
endif
" Read file changes when cursor is not moved for &updatetime ms and then move
" cursor to restart the timer
if (exists('+autoread') && &autoread)
autocmd CursorHold * checktime | call feedkeys('hl')
endif