From ce77db52b0a1ecd594d3bf2fc43ac7a108f37c30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rahu=CE=BB=20D=C3=A9?= Date: Sat, 16 Nov 2019 17:08:22 +0100 Subject: [PATCH] Fix autoreload file from external change. (#451) - Adds au FocusGained,BufEnter * checktime to actually trigger the reload. - set autoread on its own isnt enough. --- vimrcs/basic.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/vimrcs/basic.vim b/vimrcs/basic.vim index af7877a5..1e75a3fb 100644 --- a/vimrcs/basic.vim +++ b/vimrcs/basic.vim @@ -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 w saves the current file