Sunday, October 9, 2011

Re: Pathogen

On Sat, Oct 08, 2011 at 11:28:23AM +0200, Jeroen Budts wrote:
> On 10/07/2011 09:24 PM, Paul wrote:
>> 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.
>>
> This is perfectly possible by (conditionally) adding the name of the
> plugin to the g:pathogen_disabled variable before calling
> pathogen#infect(). For example:
>
> if v:version < '703' || !has('python')
> call add(g:pathogen_disabled, 'gundo')
> endif
>
> See my dotvim repository for some more examples:
> https://github.com/teranex/dotvim/blob/master/pathogen_init
> Especially this older version of the file:
> https://github.com/teranex/dotvim/blob/11021e88f3b623718b2bf27385650785a1fd310a/pathogen_init

Excellent, thank you.

--

.

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