Skip to content

Commit c0317ce

Browse files
committed
Remove Vundle shim and deprecation warning
We've been using vim-plug over Vundle since 5724d12 (April 2015). Users have had long enough to migrate their `vimrc.bundles.local` to use vim-plug's `Plug` command.
1 parent e52c274 commit c0317ce

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

vimrc.bundles

-22
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,6 @@ function! s:UnPlug(plug_name)
1010
endfunction
1111
command! -nargs=1 UnPlug call s:UnPlug(<args>)
1212

13-
" Shim command and function to allow migration from Vundle to vim-plug.
14-
function! VundleToPlug(vundle_command, arg, ...)
15-
echom "You are using Vundle's `".a:vundle_command."` command to declare plugins. Dotfiles now uses vim-plug for plugin management. Please rename uses of `".a:vundle_command."` to `Plug`. Plugin was '".a:arg."'."
16-
let vim_plug_options = {}
17-
18-
if a:0 > 0
19-
if has_key(a:1, 'name')
20-
let name = a:1.name
21-
let vim_plug_options.dir = "$HOME/.vim/bundle/".a:1.name
22-
endif
23-
24-
if has_key(a:1, 'rtp')
25-
let vim_plug_options.rtp = a:1.rtp
26-
endif
27-
endif
28-
29-
Plug a:arg, vim_plug_options
30-
endfunction
31-
32-
com! -nargs=+ -bar Plugin call VundleToPlug("Plugin", <args>)
33-
com! -nargs=+ -bar Bundle call VundleToPlug("Bundle", <args>)
34-
3513
let g:has_async = v:version >= 800 || has('nvim')
3614

3715
call plug#begin('~/.vim/bundle')

0 commit comments

Comments
 (0)