diff --git a/.vimrc b/.vimrc index 6f38be1..40d366b 100644 --- a/.vimrc +++ b/.vimrc @@ -244,7 +244,9 @@ set t_Co=256 " autosave when lost focus :au FocusLost * silent! wa +:au FocusLost * :wa +autocmd CursorHold, CursorHoldI * update " general mapping " no ddkP