persistent undo for cli vim.

Also had to create the backups directory, not sure where to do that.
This commit is contained in:
Will Milton
2012-02-22 20:02:05 -06:00
parent 5e2665a797
commit 59f10e5e88
2 changed files with 6 additions and 5 deletions

8
vimrc
View File

@@ -49,12 +49,10 @@ set nowb
" ================ Persistent Undo ==================
" Keep undo history across sessions, by storing in file.
" Only works in MacVim (gui) mode.
" Only works all the time.
if has('gui_running')
set undodir=~/.vim/backups
set undofile
endif
set undodir=~/.vim/backups
set undofile
" ================ Indentation ======================