Merge pull request #292 from skwp/vundles_local

Add .vundles.local to allow per-installation plugin customization
This commit is contained in:
Yan Pritzker 2013-04-29 20:25:27 -07:00
commit 673e1d1230
3 changed files with 10 additions and 1 deletions

1
.gitignore vendored
View File

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

View File

@ -1,7 +1,7 @@
require 'fileutils' require 'fileutils'
module Vundle 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) def self.add_plugin_to_vundle(plugin_repo)
return if contains_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 "bogado/file-line.git"
Bundle "tpope/vim-rvm.git" Bundle "tpope/vim-rvm.git"
Bundle "nelstrom/vim-visual-star-search" 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 is required by vundle
filetype plugin indent on filetype plugin indent on