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:
commit
d13f02b2ba
1
.gitignore
vendored
1
.gitignore
vendored
@ -5,6 +5,7 @@ vim/view
|
|||||||
*un~
|
*un~
|
||||||
vim/.netrwhist
|
vim/.netrwhist
|
||||||
vim/tmp
|
vim/tmp
|
||||||
|
vim/after/.vimrc.after
|
||||||
.netrwhist
|
.netrwhist
|
||||||
bin/subl
|
bin/subl
|
||||||
tags
|
tags
|
||||||
|
@ -502,7 +502,9 @@ files contain key mappings as well (TODO: probably will move them out to skwp-ke
|
|||||||
|
|
||||||
### Overriding vim settings
|
### 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
|
### Adding your own vim plugins
|
||||||
|
@ -4,7 +4,10 @@
|
|||||||
" This loads after the janus plugins so that janus-specific plugin mappings can
|
" This loads after the janus plugins so that janus-specific plugin mappings can
|
||||||
" be overwritten.
|
" be overwritten.
|
||||||
|
|
||||||
|
if filereadable(expand("~/.yadr/vim/after/.vimrc.after"))
|
||||||
|
source ~/.yadr/vim/after/.vimrc.after
|
||||||
|
endif
|
||||||
|
|
||||||
if filereadable(expand("~/.vimrc.after"))
|
if filereadable(expand("~/.vimrc.after"))
|
||||||
source ~/.vimrc.after
|
source ~/.vimrc.after
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user