From 3a4a1dd2d48b50777ee28aa7b39edb7264d6af6d Mon Sep 17 00:00:00 2001 From: Nicole Tietz-Sokolskaya Date: Tue, 30 May 2017 16:24:40 -0400 Subject: [PATCH] Add file change detection --- vimrc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/vimrc b/vimrc index 402fe6f..8b793ce 100644 --- a/vimrc +++ b/vimrc @@ -77,3 +77,13 @@ let g:vimwiki_list = [ {'path': '~/vimwiki'}, {'path': '~/Code/vimwiki-client-no " fixes webpack file watchers set backupcopy=yes +" put swap files out of the current directory +set dir=$HOME/.vim/tmp/swap +if !isdirectory(&dir) | call mkdir(&dir, 'p', 0700) | endif + +set autoread +set updatetime=100 +au FileChangedShell * checktime +au CursorHold * checktime +au CursorHoldI * checktime +