commit ca3639d36a696a24afe9ba3222e29925aa5983c5
parent 4817504c69a90e53e730fe0d827d92078ec7a6f4
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Sun, 17 Jan 2016 20:44:10 +0100
persistent undo
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/vim/vimrc b/vim/vimrc
@@ -127,3 +127,9 @@ endfor
" avoid https://vi.stackexchange.com/questions/5128/matchpairs-makes-vim-slow
let g:matchparen_timeout = 20
let g:matchparen_insert_timeout = 20
+
+if has('persistent_undo')
+ set undofile
+ set undodir=$HOME/temp/vim/undo
+endif
+