Reply to message «Re: [VAM] Determine plugin names to put in vimrc», sent 18:52:37 18 March 2011, Friday by Tony Mechelynck:
> Similarly, any *.vim script found in the plugin/ subdirectory of a > directory listed in 'runtimepath' will be sourced at the end of startup, > without the need for any entry in your vimrc. The following locations > are typical: On of the VAM points is not letting your ~/.vim turn into a dump. So these locations are not in a runtimepath until you call vam#ActivateAddons(). Second point is updating plugins with one command (and a bunch of Enter presses). Third point is ability to install and activate plugins in current vim session without making them being activated for all following vim sessions: if you don't like the plugin or don't want it be active all the time, you just leave it where it is. Nothing is done without a command. Original message: > On 18/03/11 15:55, Marco wrote: > > I started using vim-addon-manager. But I have some problems using it. How > > do I determine the name of the plugin I have to put into my vimrc? The > > following shows some examples of plugin names on the left and the > > corresponding vimrc entries on the right. > > > > AlignPlugin Align294 > > minibufexpl minibufexplorer_-_Elegant_buffer_explorer > > matchit matchit.zip > > > > How can one determine the right names? Or is there an easier solution? > > > > > > Marco > > You shouldn't need anything in the vimrc. I don't use the first two that > you mention, but for matchit I have a one-line file named > $VIM/vimfiles/plugin/matchit.vim with the following contents: > > runtime macros/matchit.vim > > so it automagically sources the matchit plugin distributed with the > current version of Vim. > > Similarly, any *.vim script found in the plugin/ subdirectory of a > directory listed in 'runtimepath' will be sourced at the end of startup, > without the need for any entry in your vimrc. The following locations > are typical: > > $HOME/vimfiles/plugin/ > on Windows only: user-private full-fledged plugins > $HOME/.vim/plugin > on Unix-like OSes including MacOsX: user-private full-fledged > plugins > $VIM/vimfiles/plugin > system-wide full-fledged plugins > $VIMRUNTIME/plugin > ONLY the plugins distributed together with Vim: DO NOT MODIFY > THEM! > $VIM/vimfiles/after/plugin > small system-wide tweaks to any of the above > $HOME/vimfiles/after/plugin (Windows only) > $HOME/.vim/after/plugin (except Windows) > small user-specific tweaks to any of the above > > See :help 'runtimepath' > > > HTH, > Tony.
signature.asc
Description: This is a digitally signed message part.
