ivanov / vim-ipython

A two-way integration between Vim and IPython 0.11+
http://github.com/ivanov/vim-ipython
1.04k stars 163 forks source link

Fix a bug that prevent vim-ipython to load from vim in console mode #1

Closed tcheneau closed 13 years ago

tcheneau commented 13 years ago

If I am not wrong, (Console) Vim does not offer the balloons support. Hence, the plugin fails to load in console mode (at the "set bexpr" instruction).

This small workaround loads the balloons only when Gvim is started.

ivanov commented 13 years ago

Thanks for the pull request. I saw this also in @nakamuray 's branch - but cannot reproduce the error locally, which i why I didn't merge yet. Can you tell me what the error is (and what version of vim)? My impression is that ballooneval and bexpr are ignored in console mode.

tcheneau commented 13 years ago

I don't know if it can be reproduced on every installation, but on Fedora and Gentoo, both the :set ballooneval and :set bexpr commands return a E518: Unknown option error when set within vim. Gvim does not share this behavior.

Vim version on my Gentoo is 7.3.189 (I do not have access to the Fedora right now).

Please let me know if you need more details on my test systems or if I can help in any other ways.

nakamuray commented 13 years ago

Both options are available only if vim is built with balloon_eval feature.

So, it depend on how your vim is compiled.

tcheneau commented 13 years ago

Then, the test should be replaced by if has("ballon_eval") ?

ivanov commented 13 years ago

thank you both for the help!