From 79a18bae6aaba8ebae01915df8b425ba3e5a88e5 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sat, 2 Apr 2022 11:38:26 +0800 Subject: Set undofile in vim --- .vimrc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to '.vimrc') diff --git a/.vimrc b/.vimrc index e41b2b1..35b6c40 100644 --- a/.vimrc +++ b/.vimrc @@ -27,6 +27,13 @@ set completepopup=align:menu,border:off,highlight:WildMenu set diffopt+=followwrap +" undo +if !isdirectory(expand('~/.vim/.undo')) + silent! call mkdir(expand('~/.vim/.undo', 'p')) +endif +set undodir=~/.vim/.undo// +set undofile + " set Vim-specific sequences for RGB colors let &t_8f = "\[38;2;%lu;%lu;%lum" let &t_8b = "\[48;2;%lu;%lu;%lum" -- cgit v1.2.3