Skip to content
Browse files

simple vimrc customizations. ~/.vimrc.before is loaded before everyth…

…ing. ~/.vimrc.after is loaded after all plugins load.
  • Loading branch information...
1 parent 4c4938f commit 5c06824e03f9b537986876c8126321d508ec2556 @kylewest kylewest committed
Showing with 22 additions and 0 deletions.
  1. +5 −0 README.md
  2. +10 −0 vim/after/plugin/vimrc_after.vim
  3. +7 −0 vimrc
View
5 README.md
@@ -453,6 +453,11 @@ files contain key mappings as well (TODO: probably will move them out to skwp-ke
* sass-status - decorates your status bar with full nesting of where you are in the sass file
+### Overriding vim settings
+
+You may use `~/.vimrc.before` for settings like the __leader__ setting. You may `~/.vimrc.after` for any additional overrides/settings.
+
+
### Adding your own vim plugins
YADR comes with a dead simple plugin manager that just uses git submodules, without any fancy config files.
View
10 vim/after/plugin/vimrc_after.vim
@@ -0,0 +1,10 @@
+" https://github.com/carlhuda/janus/blob/master/janus/vim/core/janus/after/plugin/vimrc_after.vim
+" Customization
+"
+" This loads after the janus plugins so that janus-specific plugin mappings can
+" be overwritten.
+
+if filereadable(expand("~/.vimrc.after"))
+ source ~/.vimrc.after
+endif
+
View
7 vimrc
@@ -2,6 +2,12 @@
" This must be first, because it changes other options as a side effect.
set nocompatible
+" TODO: this may not be in the correct place. It is intended to allow overriding <Leader>.
+" source ~/.vimrc.before if it exists.
+if filereadable(expand("~/.vimrc.before"))
+ source ~/.vimrc.before
+endif
+
" =============== Pathogen Initialization ===============
" This loads all the plugins in ~/.vim/bundle
" Use tpope's pathogen plugin to manage all other plugins
@@ -90,3 +96,4 @@ set wildignore+=*vim/backups*
set scrolloff=8 "Start scrolling when we're 8 lines away from margins
set sidescrolloff=15
set sidescroll=1
+

0 comments on commit 5c06824

Please sign in to comment.
Something went wrong with that request. Please try again.