Roland Puntaier wrote:

> > This still has the problem that just checking for python or python3
> > being available loads the library before knowing what version it is.
> > Thus a plugin checking for python causes python to be loaded and thereby
> > disabling python3.
> >
> > Perhaps we don't care?  At least the user can put has('python3') in his
> > vimrc to force loading the preferred version.
> 
> This is fine.
> 
> The other solution with a configure define would have another problem:
> has('python3')
> python
> has('python3')
> The first time it would be true and the second time false.

I don't think so.  Did you try it?  For me the python command fails.

> The change in python.vim and vim.vim would be good to have, too.
> I'm not familiar with aap, so that change was just to make you give it a 
> thought.

The problem is that checking with has() actually loads that python
version and may prevent the other to load.

-- 
JOHN CLEESE PLAYED: SECOND SOLDIER WITH A KEEN INTEREST IN BIRDS, LARGE MAN
                    WITH DEAD BODY, BLACK KNIGHT, MR NEWT (A VILLAGE
                    BLACKSMITH INTERESTED IN BURNING WITCHES), A QUITE
                    EXTRAORDINARILY RUDE FRENCHMAN, TIM THE WIZARD, SIR
                    LAUNCELOT
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
You received this message from the "vim_dev" 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

Raspunde prin e-mail lui