Sunday, November 25, 2012

Re: Is Vundle dead?

On 08:46 Sun 25 Nov , Chris Lott wrote:
> On this topic-- is it difficult to move from Pathogen to VAM? Can I
> keep my bundle directory of plugins but use VAM with it?
>
> c
> --
> Chris Lott <chris@chrislott.org>
>
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php

Yes. I use the following configuration of VAM. It reads addons from
a directory:

let vam_install_path = expand('$HOME').'/.vim/vam-addons'
let &rtp.=','.vam_install_path.'/vim-addon-manager'
let g:addons=filter(map(filter(split(glob(g:vim_addon_manager['plugin_root_dir']."/*"),"\n"), 'isdirectory(v:val)'),'fnamemodify(v:val,":t")'),'v:val !~ ''vim-addon-manager.*''')
call vam#ActivateAddons(g:addons, {'auto_install' : 0})

I also have the following command to update all addons:
command! UpdateMyAddons :set nomore|call vam#install#Update(g:addons)|set more


Just change vam_install_path to your liking. The g:addons is a list of
all the addons which VAM will take care of. You can allso remove some
of them if you don't want to activate them on startup but only if you
really need them.

Best,
Marcin

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment