From 59f10e5e882ee0142ed69357f5f38a934ef6ba13 Mon Sep 17 00:00:00 2001 From: Will Milton Date: Wed, 22 Feb 2012 20:02:05 -0600 Subject: [PATCH] persistent undo for cli vim. Also had to create the backups directory, not sure where to do that. --- vimrc | 8 +++----- zsh/aliases | 3 +++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/vimrc b/vimrc index d86da645..e715173b 100644 --- a/vimrc +++ b/vimrc @@ -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 ====================== diff --git a/zsh/aliases b/zsh/aliases index 8a775012..e2c65d5b 100644 --- a/zsh/aliases +++ b/zsh/aliases @@ -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'