From 1cf31e1de7d5993a13b2dac01a22b317e6ffd72a Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 17 Sep 2015 14:58:28 -0300 Subject: Autoread --- vimrc.dot.link | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'vimrc.dot.link') diff --git a/vimrc.dot.link b/vimrc.dot.link index 82b7692..64229f0 100644 --- a/vimrc.dot.link +++ b/vimrc.dot.link @@ -201,3 +201,10 @@ nmap 0 10gt " Buffer navigation: Alt-{Up,Down} map Od :bprevious map Oc :bnext + +" See +" http://vim.wikia.com/wiki/Have_Vim_check_automatically_if_the_file_has_changed_externally +" http://stackoverflow.com/questions/2490227/how-does-vims-autoread-work +" http://stackoverflow.com/questions/2490227/how-does-vims-autoread-work +"au FocusGained,BufEnter * :silent! ! +"au FocusLost,WinLeave * :silent! w -- cgit v1.2.3