mirror of
https://github.com/amix/vimrc
synced 2025-02-28 14:12:51 +08:00
Fix autoreload file from external change. (#451)
- Adds au FocusGained,BufEnter * checktime to actually trigger the reload. - set autoread on its own isnt enough.
This commit is contained in:
parent
600b709fc8
commit
ce77db52b0
@ -39,6 +39,7 @@ filetype indent on
|
||||
|
||||
" Set to auto read when a file is changed from the outside
|
||||
set autoread
|
||||
au FocusGained,BufEnter * checktime
|
||||
|
||||
" With a map leader it's possible to do extra key combinations
|
||||
" like <leader>w saves the current file
|
||||
|
Loading…
Reference in New Issue
Block a user