aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-09-17 14:58:28 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-09-17 14:58:28 -0300
commit1cf31e1de7d5993a13b2dac01a22b317e6ffd72a (patch)
tree50ffd3b4b775230aadc01aa34451ef423a250af9
parent4c232f68c4c122ef0c79d101b0a6dee035ebd117 (diff)
downloadvim-1cf31e1de7d5993a13b2dac01a22b317e6ffd72a.tar.gz
vim-1cf31e1de7d5993a13b2dac01a22b317e6ffd72a.tar.bz2
Autoread
-rw-r--r--.gitmodules3
m---------vim.dot.link/bundle/vim-autoread0
-rw-r--r--vimrc.dot.link7
3 files changed, 10 insertions, 0 deletions
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
+Subproject 7e83d47a71fdafc271005fc39c89863204278c7
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<CR>
map Oc :bnext<CR>
+
+" 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