From b7736702eb45482a8edc6de17e575a32419a3255 Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Tue, 29 Dec 2020 11:12:24 +0100 Subject: [PATCH] vim: add undo file --- .vim/undo/.gitignore | 0 .vimrc | 10 +++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .vim/undo/.gitignore diff --git a/.vim/undo/.gitignore b/.vim/undo/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/.vimrc b/.vimrc index 8874db6..6d78368 100644 --- a/.vimrc +++ b/.vimrc @@ -68,6 +68,14 @@ filetype plugin indent on " exrc allows loading local executing local rc files. " secure disallows the use of :autocmd, shell and write commands in local .vimrc files. + +" save undo trees in files +set undofile +set undodir=~/.vim/undo + +" number of undo saved +set undolevels=10000 + """""""" " SAVE " """""""" @@ -284,7 +292,7 @@ function! TagInNewTab() execute 'tag ' . word endfunction -map :call TagInNewTab() +map :call TagInNewTab() """"""""" " PASTE "