aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.vimrc7
1 files changed, 7 insertions, 0 deletions
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 = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"