From 94c3cd2710220b19e438eb08088bab3448f73557 Mon Sep 17 00:00:00 2001 From: Rahul De Date: Fri, 10 Aug 2018 16:33:38 +0200 Subject: [PATCH] Fix autoreload file from external change. - 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 11d1ed81..7d36277b 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