From: Silvio Rhatto Date: Thu, 17 Sep 2015 17:58:28 +0000 (-0300) Subject: Autoread X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=1cf31e1de7d5993a13b2dac01a22b317e6ffd72a;p=rhatto%2Fdotfiles%2Fvim.git Autoread --- diff --git a/.gitmodules b/.gitmodules index 8c5dbc4..428ebee 100644 --- a/.gitmodules +++ b/.gitmodules @@ -49,3 +49,6 @@ [submodule "vim.dot.link/bundle/vimperator"] path = vim.dot.link/bundle/vimperator url = https://github.com/superbrothers/vim-vimperator +[submodule "vim.dot.link/bundle/vim-autoread"] + path = vim.dot.link/bundle/vim-autoread + url = https://github.com/djoshea/vim-autoread diff --git a/vim.dot.link/bundle/vim-autoread b/vim.dot.link/bundle/vim-autoread new file mode 160000 index 0000000..7e83d47 --- /dev/null +++ b/vim.dot.link/bundle/vim-autoread @@ -0,0 +1 @@ +Subproject commit 7e83d47a71fdafc271005fc39c89863204278c77 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