]> gitweb.fluxo.info Git - rhatto/dotfiles/vim.git/commitdiff
Autoread
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 17 Sep 2015 17:58:28 +0000 (14:58 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 17 Sep 2015 17:58:28 +0000 (14:58 -0300)
.gitmodules
vim.dot.link/bundle/vim-autoread [new submodule]
vimrc.dot.link

index 8c5dbc49f04aa77da78153bcc7a95d056f65c6c3..428ebeee3539d6dcfa9ca41bafb121ad3319463d 100644 (file)
@@ -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 (submodule)
index 0000000..7e83d47
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit 7e83d47a71fdafc271005fc39c89863204278c77
index 82b76929e73619b30a7574a8a82c774b9594548d..64229f0c8385faab5567bbe1f5e2b004b8077214 100644 (file)
@@ -201,3 +201,10 @@ nmap \e0 10gt
 " Buffer navigation: Alt-{Up,Down}
 map \eOd :bprevious<CR>
 map \eOc :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