Skip to content

Commit

Permalink
vim: change default location of .viminfo
Browse files Browse the repository at this point in the history
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
necolas committed Jul 14, 2012
1 parent ac44bff commit d21e680
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
vim/.netrwhist
vim/.viminfo
11 changes: 6 additions & 5 deletions vim/vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -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 (,$)
Expand Down

0 comments on commit d21e680

Please sign in to comment.