Re:Dotfiles are your Digital Backpack
by eikenberry on Tuesday August 04, 2015 @05:15PM
(#10006328)
What do you do to deal with programs (like vim) that don't respect XDG?
For my "traveling" config, I have this in my .zshrc, it'll work in .bashrc too:
export VIMRUNTIME=$HOME/.local/vim/
alias vim="vim -u $HOME/.local/vim/vimrc"
My dotfiles repo (https://github.com/fredsmith/dotfiles/) uses this to maintain a clean, readable configuration directory that doesn't mess up my homedir with a bunch of symlinks, and the only installation I have to do is: "ln -s ~/dotfiles/bashrc .bashrc"