issues with vim-addon-manager: because you don't have git submodules
reinstalling will always fetch latest versions always - which has not
been a problem yet - but could be a risk.
Order of loading should be preserved beacuse you list names of the
plugins to be activated in your .vimrc
You also missed vundle (which is similar to pathogen, a nice simple
solution if you want to install github based plugins only)
There is also vimana, ruby scripts installing addons.
And there is plain old :h GetLatestVimScripts which only gets updates
from www.vim.org (AFAIK).
Which is best? I don't know. I wrote vim-addon-manager because I want to
serve the community: I want them to notice if they use an old upstream -
and I was looking for a way to distribute my own code without copy
pasting or writing dozens of lines about how to install each one and
where to get dependencies. In most cases this is a warning you can
ignore and still get whatever you want.
future:
I'd like to move some of the information found in
vim-addon-manager-know-repository to the official website (such as
deprecation warnings or hinting that alternative plugins may serve you
better for whatever reason)
I dream about replacing www.vim.org by a simple "enter your github,
bitbucket, .." url and be done. www.vim.org should poll for updates etc.
I just haven't had time to implement a prototype yet.
HTH
Marc Weber
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
> But I think is not possible to load the plugins on demand, like in tplugin,Why do you think so? If the author tells you it is possible if the
plugin supports it then you should give a reason.
Those who don't are those plugins who are using Start auto commands.
And there is not much you can do about it but a *lot* of patching.
" Addons are put into vam_install_path/plugin-name directory
> Another doubt I have is, if I have a plugin/bundle, which hasnt been
> installed by VAM, it is possible to activate it?
" unless those directories exist. Then they are activated.
This sentence in the SetupVAM function was written to reply to exactly
that question. If you have any idea how to improve the wording let me
know.
echo "echoe 'abc'" >> ~/.vim/vim-addons/abc/plugin/any-name.vim
Then start vim and do :ActivateAddon abc
You'll get the error message.
So I'm pretty sure that you've missed a small detail :)
Just recheck and retry
Update to latest Vim version. Sorry about that.
> Finally vim crashes almost after any add on install.
I want fix some segfaults my self. in the end its not VAM's fault - Vim
should not crash if using VimL only.
Just write again if you have additional / still the same problems.
Yours
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
> I love how fast vim loads using tplugin and how it changes the runtime path on demand.
> But then I also found some limitations. Seems thare is no way to tell the tool not to load some plugins, also the dependency system looks a little but clunky because it is based on files rather than bundles.
I'm not sure what you mean by "not loading plugins". Since version 0.14, you can define "shallow" root directories. Plugins in such a directory can be loaded by means of the :TPlugin command but shouldn't be automatically loaded if you call one if its commands or functions etc.
Dependency handling can admittedly be improved. tplugin knows three ways of handling dependencies:
(1) Don't handle dependencies and load plugins as needed (this won't work if a plugin tests if another plugin was already loaded by checking the existence of a variable)
(2) Check if a plugins checks for the existence of loaded_PLUGIN_NAME (this requires that the plugin authors adhered to the formatting rules which they probably didn't :-)
(3) Use the info in *-addon-info.txt files if the plugin provides one.
If the above fails, you can define a file _tplugin_PLUGIN_NAME.vim to define dependencies like:
call TPluginDependencies('THIS_PLUGIN', ['OTHER_PLUGIN'])
I guess you could put this definitions also into vimrc.
HTH
Tom
Hi,
I'm not sure what you mean by "not loading plugins". Since version 0.14, you can define "shallow" root directories. Plugins in such a directory can be loaded by means of the :TPlugin command but shouldn't be automatically loaded if you call one if its commands or functions etc.
> I love how fast vim loads using tplugin and how it changes the runtime path on demand.
> But then I also found some limitations. Seems thare is no way to tell the tool not to load some plugins, also the dependency system looks a little but clunky because it is based on files rather than bundles.
Dependency handling can admittedly be improved. tplugin knows three ways of handling dependencies:
(1) Don't handle dependencies and load plugins as needed (this won't work if a plugin tests if another plugin was already loaded by checking the existence of a variable)
(2) Check if a plugins checks for the existence of loaded_PLUGIN_NAME (this requires that the plugin authors adhered to the formatting rules which they probably didn't :-)
(3) Use the info in *-addon-info.txt files if the plugin provides one.
If the above fails, you can define a file _tplugin_PLUGIN_NAME.vim to define dependencies like:
call TPluginDependencies('THIS_PLUGIN', ['OTHER_PLUGIN'])
I guess you could put this definitions also into vimrc.
HTH
Tom
--
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
Excerpts from Pablo Giménez's message of Thu Apr 26 20:00:23 +0200 2012:
> I dont know exactly how it works but this is what it is doing ans is great.There is a 'func not defined' hook which can be used. Maybe that is
> AFAIK in vam you have to activate the plugins manually using
> ActivateAddons, then the plugin rather than being waiting to be called it
> is loaded.
used.
You're right, VAM does not support such yet.
Feel free to use VAM to :InstallAddons only and use tplugin for
activating them.
My understanding of pludins is:
plugin/*.vim: everything the user can customize (settings, interface,
mappings, commansds)
autoload/*: everything else
VAM has an experimental function to "merge" all plugin/* files so that
only one file is sources - but this still assumes that plugins only put
minimal configuration into the plugin files - and the if .. finish line
may be causing trouble easily and such.
Due to commands I personally assume that plugin files should always be
read - you're right, you can replace commansds/ mappings by "fake"
implementations activating a plugin first.
Before you make me spend time on such do profiling and tell me what's
causing most trouble to you.
You're welcome. Its easy to miss a detail if there is so much new stuff.
> Yep sorry my bad I got this working.
plugin2 depending on plugin1 and auto activation:
Retry again. This would be a serious bug.
If can't make it work I can invite you to a SSH session so that you can
proof me that its behaving wrong easily.
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
Excerpts from Pablo Giménez's message of Thu Apr 26 20:00:23 +0200 2012:
> I dont know exactly how it works but this is what it is doing ans is great.There is a 'func not defined' hook which can be used. Maybe that is
> AFAIK in vam you have to activate the plugins manually using
> ActivateAddons, then the plugin rather than being waiting to be called it
> is loaded.
used.
You're right, VAM does not support such yet.
Feel free to use VAM to :InstallAddons only and use tplugin for
activating them.
My understanding of pludins is:
plugin/*.vim: everything the user can customize (settings, interface,
mappings, commansds)
autoload/*: everything else
VAM has an experimental function to "merge" all plugin/* files so that
only one file is sources - but this still assumes that plugins only put
minimal configuration into the plugin files - and the if .. finish line
may be causing trouble easily and such.
Due to commands I personally assume that plugin files should always be
read - you're right, you can replace commansds/ mappings by "fake"
implementations activating a plugin first.
Before you make me spend time on such do profiling and tell me what's
causing most trouble to you.
You're welcome. Its easy to miss a detail if there is so much new stuff.
> Yep sorry my bad I got this working.
plugin2 depending on plugin1 and auto activation:
Retry again. This would be a serious bug.
If can't make it work I can invite you to a SSH session so that you can
proof me that its behaving wrong easily.
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
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
Activating a plugin does not cause much overhead , only a path to
&runtimepath is added unless the plugin also has plugin/*.vim files.
So make me understand what's wrong with always activating the plugin?
Why is it that costly that you want to avoid it?
Of course adding 'dependencies-to-be-installed-only' is no issue.
However I'd like to avoid complexity if possible.
We may end up creating a github issue before taking any actions so that
all people involed (eg ZyX) can think about it.
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