Skip to content

Commit ce77db5

Browse files
lispycloudsamix
authored andcommitted
Fix autoreload file from external change. (amix#451)
- Adds au FocusGained,BufEnter * checktime to actually trigger the reload. - set autoread on its own isnt enough.
1 parent 600b709 commit ce77db5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vimrcs/basic.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ filetype indent on
3939

4040
" Set to auto read when a file is changed from the outside
4141
set autoread
42+
au FocusGained,BufEnter * checktime
4243

4344
" With a map leader it's possible to do extra key combinations
4445
" like <leader>w saves the current file

0 commit comments

Comments
 (0)