vim: Use timer instead of autocommand for autoread

This commit is contained in:
2021-04-26 17:56:15 +02:00
parent a9b5c19f2f
commit 22501182ce
2 changed files with 8 additions and 6 deletions

View File

@@ -53,9 +53,3 @@ 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