Merge pull request #141 from corroded/relative_vim_overrides

Uses vim/after directory instead of root for custom vimrc.after
This commit is contained in:
Yan Pritzker 2012-08-21 18:29:59 -07:00
commit d13f02b2ba
3 changed files with 8 additions and 2 deletions

1
.gitignore vendored
View File

@ -5,6 +5,7 @@ vim/view
*un~
vim/.netrwhist
vim/tmp
vim/after/.vimrc.after
.netrwhist
bin/subl
tags

View File

@ -502,7 +502,9 @@ files contain key mappings as well (TODO: probably will move them out to skwp-ke
### Overriding vim settings
You may use `~/.vimrc.before` for settings like the __leader__ setting. You may `~/.vimrc.after` for any additional overrides/settings.
You may use `~/.vimrc.before` for settings like the __leader__ setting.
You may `~/.vimrc.after` (for those transitioning from janus) or in `~/.yadr/vim/after/.vimrc.after` for any additional overrides/settings.
If you didn't have janus before, it is recommended to just put it in `~/.yadr/vim/after` so you can better manage your overrides.
### Adding your own vim plugins

View File

@ -4,7 +4,10 @@
" This loads after the janus plugins so that janus-specific plugin mappings can
" be overwritten.
if filereadable(expand("~/.yadr/vim/after/.vimrc.after"))
source ~/.yadr/vim/after/.vimrc.after
endif
if filereadable(expand("~/.vimrc.after"))
source ~/.vimrc.after
endif