Mark Guzman wrote:
A.J.Mechelynck wrote:
I notice that the scripts autoload/pythoncomplete.vim and
autoload/rubycomplete.vim terminate early and with error if the
corresponding interface is not compiled-in. Is that intentional? I
would expect to be able to _edit_ (for instance) a python script even
on a Vim version which cannot _run_ python commands.

if !has('ruby')
    s:ErrMsg( "Error: Required vim compiled with +ruby" )
    finish
endif

if version < 700
    s:ErrMsg( "Error: Required vim >= 7.0" )
    finish
endif
Vim continues to run.
  --mark


Yes, I never said anything else: "...the scripts... terminate early and with error...". It surprised me because, after all, Vim doesn't need to be a C compiler to run ccomplete.vim, or a Web browser (hiding tags, the whole <HEAD> part, and OTOH showing clickable <A HREF=...> links and graphical <IMG> pictures) to use htmlcomplete.vim. Executing a script and editing it are two different things.


Best regards,
Tony.

P.S. Is that really your mail address? Looks bogus to me. But then if it were, you shouldn't stay long on the mailing list...

Reply via email to