persistent undo for cli vim.
Also had to create the backups directory, not sure where to do that.
This commit is contained in:
4
vimrc
4
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
|
||||
|
||||
" ================ Indentation ======================
|
||||
|
||||
|
||||
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user