Friday, October 7, 2011

Re: Pathogen

Paul, Fri 2011-10-07 @ 20:24:43+0100:
> Is it possible, in .vimrc, to tell Pathogen to not load a particular
> plug-in unless Vim's version number is > 700, for example, but load
> all other plug-ins? Thanks.

I would opt to do this in the plugin itself rather than in Pathogen. I'm
not sure if Pathogen offers that degree of control over which plugins
load.

If you just add the following to the top of the plugin script, you
should get the behavior you're looking for:

if v:version <= 700
finish
endif

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