Add .vundles.local to allow per-installation plugin customization

Adding and removing vim plugins is now done by adding and removing
from ~/.vim/.vundles.local. This file is sourced at the end of
vundles.vim

Fixes #275
This commit is contained in:
Fabio Gallonetto 2013-04-09 16:50:01 +01:00 committed by Fabio Gallonetto
parent f460aa1442
commit 1a7f2bb8f6
3 changed files with 10 additions and 1 deletions

1
.gitignore vendored
View File

@ -7,6 +7,7 @@ vim/.netrwhist
vim/tmp
vim/spell
vim/after/.vimrc.after
vim/.vundles.local
vim/bundle
.netrwhist
bin/subl

View File

@ -1,7 +1,7 @@
require 'fileutils'
module Vundle
@vundles_path = File.expand_path File.join('~', '.vim', 'vundles.vim')
@vundles_path = File.expand_path File.join(ENV['HOME'], '.vim', '.vundles.local')
def self.add_plugin_to_vundle(plugin_repo)
return if contains_vundle? plugin_repo

View File

@ -102,5 +102,13 @@ Bundle "airblade/vim-gitgutter.git"
Bundle "bogado/file-line.git"
Bundle "tpope/vim-rvm.git"
Bundle "nelstrom/vim-visual-star-search"
" Customization
" The plugins listed in ~/.vim/.vundles.local will be added here to
" allow the user to add vim plugins to yadr without the need for a fork.
if filereadable(expand("~/.yadr/vim/.vundles.local"))
source ~/.yadr/vim/.vundles.local
endif
"Filetype plugin indent on is required by vundle
filetype plugin indent on