Skip to content

Commit

Permalink
use persistent undo history in vim
Browse files Browse the repository at this point in the history
  • Loading branch information
garybernhardt committed Aug 17, 2021
1 parent 200e955 commit e0786e8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@ set signcolumn=no
:set completeopt=menu,preview
:set statusline=%<%f\ (%{&ft})\ %-4(%m%)%=%-19(%3l,%02c%03V%)

" Use persistent undo history.
if !isdirectory("/tmp/.vim-undo-dir")
call mkdir("/tmp/.vim-undo-dir", "", 0700)
endif
set undodir=/tmp/.vim-undo-dir
set undofile

""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" VIM-RUBY CONFIGURATION
Expand Down

0 comments on commit e0786e8

Please sign in to comment.