vim: add undo file

This commit is contained in:
Mathieu Maret 2020-12-29 11:12:24 +01:00
parent 0149b1db11
commit b7736702eb
2 changed files with 9 additions and 1 deletions

0
.vim/undo/.gitignore vendored Normal file
View File

10
.vimrc
View File

@ -68,6 +68,14 @@ filetype plugin indent on
" exrc allows loading local executing local rc files. " exrc allows loading local executing local rc files.
" secure disallows the use of :autocmd, shell and write commands in local .vimrc 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 " " SAVE "
"""""""" """"""""
@ -284,7 +292,7 @@ function! TagInNewTab()
execute 'tag ' . word execute 'tag ' . word
endfunction endfunction
map <C-I> :call TagInNewTab()<CR> map <C-S-I> :call TagInNewTab()<CR>
""""""""" """""""""
" PASTE " " PASTE "