Permalink
Browse files

vim: change default location of .viminfo

Moved into ~/vim/.viminfo to help reduce some of the clutter in my HOME
directory. Also added to the repo's `gitignore` to avoid it being under
source control.
  • Loading branch information...
1 parent ac44bff commit d21e680421d37736fb38d843d4c123f6aa7b702b @necolas committed Jul 14, 2012
Showing with 7 additions and 5 deletions.
  1. +1 −0 .gitignore
  2. +6 −5 vim/vimrc
View
@@ -1 +1,2 @@
vim/.netrwhist
+vim/.viminfo
View
@@ -114,15 +114,16 @@ set listchars+=nbsp:_
"set listchars+=eol:¬
" Centralize backups, swapfiles and undo history
-set backupdir=~/.vim/backups
-set directory=~/.vim/swaps
+set backupdir=$HOME/.vim/backups
+set directory=$HOME/.vim/swaps
if exists("&undodir")
- set undodir=~/.vim/undo
+ set undodir=$HOME/.vim/undo
endif
+set viminfo+=n$HOME/.vim/.viminfo
" Load local machine settings if they exist
-if filereadable("~/.vimrc-local")
- source ~/.vimrc.local
+if filereadable("$HOME/.vimrc-local")
+ source $HOME/.vimrc.local
endif
" Explicitly strip trailing whitespace (,$)

0 comments on commit d21e680

Please sign in to comment.