add persistent undo functionality to both neovim and vim
This commit is contained in:
@@ -33,6 +33,13 @@ nnoremap H ^
|
||||
nnoremap L $
|
||||
set autoindent
|
||||
set cursorline
|
||||
set undofile
|
||||
set undodir=~/.vim/undodir
|
||||
if !isdirectory(expand('~/.vim/undodir'))
|
||||
call mkdir(expand('~/.vim/undodir'), 'p')
|
||||
endif
|
||||
set undodir=~/.vim/undodir
|
||||
set undofile
|
||||
set errorformat^=[----]\ %f:%l:\ %m
|
||||
set expandtab
|
||||
set exrc
|
||||
|
||||
Reference in New Issue
Block a user