Hi Tony,

On 17/05/07, A.J.Mechelynck <[EMAIL PROTECTED]> wrote:
Yongwei Wu wrote:
[...]
> If you are courageous enough see a real-world example of complicated
> multi-language support, check my _vimrc at:
>
> http://wyw.dcweb.cn/download.asp?path=vim&file=_vimrc.txt (as text) or
> http://wyw.dcweb.cn/download.asp?path=vim&file=_vimrc.html (as HTML)
>
> Best regards,
>
> Yongwei
>

I see a number of tests for has("eval") in this vimrc, sometimes embedded in
longer if clauses.

Note that the following:

        if has("gui_running)
                " do something
        endif
        "
        " then later
        "
        if ! has("gui_running)
        " blah blah
                if has("eval")
                        " do something
                endif
        " more blah blah
        endif

will do nothing at all (neither the 'if has("gui_running")' nor the 'if !
has("gui_running") will be run) if expression evaluation is not compiled-in,
because in that case the if...endif structure is treated as a nestable
comment: see ":help no-eval-feature".

Thank you very much. I did not notice it, and my intention was only to
work around the corner cases where a minimal build of Vim reads my
_vimrc: a habit inherited from my Unix experience, but it has not
happened even once to me on Windows. I'll remove all the unnecessary
"if has('eval')" :-).

Best regards,

Yongwei

--
Wu Yongwei
URL: http://wyw.dcweb.cn/

Reply via email to