From 4ef436ae10b431af4ef1d43122d3443eb15e9d9e Mon Sep 17 00:00:00 2001 From: Darren Grant Date: Sat, 6 Dec 2014 06:59:13 +0000 Subject: [PATCH 1/2] Introduce source ~/.vim.local/bundles.vim as a hook for loading additional bundles. '.vimrc.local' is insufficient since Vundle doesn't support out-of-line loads. --- .vimrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.vimrc b/.vimrc index 1b0cc47..aa9ee92 100644 --- a/.vimrc +++ b/.vimrc @@ -81,6 +81,11 @@ Bundle 'eagletmt/ghcmod-vim' Bundle 'eagletmt/neco-ghc' Bundle 'Twinside/vim-hoogle' +" Custom bundles +if filereadable(expand("~/.vim.local/bundles.vim")) + source ~/.vim.local/bundles.vim +endif + " }}} " VIM user interface {{{ From ce30f981aeb09e099b0c130bce6e717600c6d147 Mon Sep 17 00:00:00 2001 From: vagrant Date: Sun, 7 Dec 2014 07:21:34 +0000 Subject: [PATCH 2/2] Include note on adding custom bundles. --- README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b682d9d..e4bec73 100644 --- a/README.md +++ b/README.md @@ -291,5 +291,14 @@ then add `unmap ` to your .vimrc.local) ## Customizing After installing this configuration, your `.vimrc` and `.vim` will -be under version control. Don't alter them, add your own settings to -`~/.vimrc.local` instead and your additions will be loaded. +be under version control. Don't alter these files. Instead, add your +own settings to `~/.vimrc.local` and `~/.vim.local/bundles.vim`. + +## Adding Custom Bundles + +Vundle requires all Bundle statements to be given at once. To accommodate +this restriction, `.vimrc` sources `~/.vim.local/bundles.vim` immediately +after its own Bundle statements. + +Bundle statements made elsewhere are not recognized. +