From f47f65d1b05fcedfee913ef8bdfa4d116547fa6b Mon Sep 17 00:00:00 2001 From: Ein Verne Date: Thu, 6 Dec 2018 16:43:28 +0800 Subject: [PATCH] Auto save --- .vimrc | 2 ++ 1 file changed, 2 insertions(+) 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