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

4
vimrc
View File

@@ -49,12 +49,10 @@ set nowb
" ================ Persistent Undo ================== " ================ Persistent Undo ==================
" Keep undo history across sessions, by storing in file. " 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 undodir=~/.vim/backups
set undofile set undofile
endif
" ================ Indentation ====================== " ================ Indentation ======================

View File

@@ -29,6 +29,9 @@ alias lsg='ll | grep'
alias ae='vi $yadr/zsh/aliases' #alias edit alias ae='vi $yadr/zsh/aliases' #alias edit
alias ar='source $yadr/zsh/aliases' #alias reload alias ar='source $yadr/zsh/aliases' #alias reload
# vim using
alias vim=$(brew ls macvim | grep Contents/MacOS/Vim)
# vimrc editing # vimrc editing
alias ve='vi ~/.vimrc' alias ve='vi ~/.vimrc'