aboutsummaryrefslogtreecommitdiff
path: root/vim.dot.link/plugin/auto_file.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim.dot.link/plugin/auto_file.vim')
-rw-r--r--vim.dot.link/plugin/auto_file.vim9
1 files changed, 6 insertions, 3 deletions
diff --git a/vim.dot.link/plugin/auto_file.vim b/vim.dot.link/plugin/auto_file.vim
index dc19ad3..72e782f 100644
--- a/vim.dot.link/plugin/auto_file.vim
+++ b/vim.dot.link/plugin/auto_file.vim
@@ -1,18 +1,20 @@
" auto_file.vim - Automatically file reading, saving; directory changer.
-" Autoread
+" Autoread {{{
"
" 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
+" }}}
-" Autosave
+" Autosave {{{
" See https://github.com/vim-scripts/vim-auto-save
"let g:auto_save = 1
+" }}}
-" Auto change dir
+" Auto change dir {{{
"
" Automatically set the current working directory to the current buffer file's
" directory
@@ -23,3 +25,4 @@ augroup changedir
autocmd!
autocmd BufEnter * silent! lcd %:p:h
augroup END
+" }}}