Saturday, October 8, 2011

Re: Pathogen

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

Jeroen

--
website: http://budts.be/ - twitter: @teranex
___________________________________
Registered Linux User #482240 - GetFirefox.com - ubuntu.com

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

Post a Comment