Skip to content

Commit 9a40364

Browse files
committed
Use $VIMBLACKLIST to temporarily disable bundles
VIMBLACKLIST=vim-fugitive,vim-dispatch vim
1 parent e1687eb commit 9a40364

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/pathogen.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ endfunction
9292
" basename or full name is included in the list g:pathogen_disabled.
9393
function! pathogen#is_disabled(path) abort
9494
let sep = pathogen#slash()
95-
let blacklist = get(g:, 'pathogen_blacklist', get(g:, 'pathogen_disabled', []))
95+
let blacklist = get(g:, 'pathogen_blacklist', get(g:, 'pathogen_disabled', [])) + pathogen#split($VIMBLACKLIST)
9696
return index(blacklist, fnamemodify(a:path, ':t')) != -1 || index(blacklist, a:path) != -1
9797
endfunction "}}}1
9898

0 commit comments

Comments
 (0)