Merge pull request #25 from winmillwill/master

Persistent Undo for CLI vim. MacVim is now required to come from brew.
This commit is contained in:
Yan Pritzker
2012-02-28 00:53:37 -08:00
2 changed files with 6 additions and 5 deletions

4
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
" ================ Indentation ======================

View File

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