Thursday, May 10, 2012

Re: Plugin manager with dependencies and selective bundle load

Well - you can add call vam#ActivateAddon([...]) to any logic you like -
however then the plugins are likely to depend on VAM which may not what
you want. Of course you can do so conditionally if the function exist.

Something roughly like this:

augroup AU_NAME
autocmd BufRead,BufNewFile *.py call ActivateAddon([foo])
autocmd BufRead,BufNewFile *.php call ActivateAddon([foo, bar])
augroup end

now bar only get's loaded if you edit php files.

Think about how many ms you're going to safe by spending such
huge amounts of time ..

Marc Weber

--
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: