diff --git a/.gitignore b/.gitignore index 852fefc..48c159f 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ vim/view *un~ vim/.netrwhist vim/tmp +vim/after/.vimrc.after .netrwhist bin/subl tags diff --git a/README.md b/README.md index 66e2efa..5324881 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/vim/after/plugin/vimrc_after.vim b/vim/after/plugin/vimrc_after.vim index 615d6e6..db83734 100644 --- a/vim/after/plugin/vimrc_after.vim +++ b/vim/after/plugin/vimrc_after.vim @@ -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 -