Mercurial > vim
comparison runtime/doc/if_pyth.txt @ 2826:3c7da93eb7f9
Updated runtime files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 10 May 2011 17:18:44 +0200 |
parents | 7d8af31066c8 |
children | 3502a7f991fc |
comparison
equal
deleted
inserted
replaced
2825:4ec043ec556c | 2826:3c7da93eb7f9 |
---|---|
1 *if_pyth.txt* For Vim version 7.3. Last change: 2010 Oct 20 | 1 *if_pyth.txt* For Vim version 7.3. Last change: 2011 May 07 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Paul Moore | 4 VIM REFERENCE MANUAL by Paul Moore |
5 | 5 |
6 | 6 |
375 libpython.so. | 375 libpython.so. |
376 2. Vim is recompiled for only one Python version. | 376 2. Vim is recompiled for only one Python version. |
377 3. You undefine PY_NO_RTLD_GLOBAL in auto/config.h after configuration. This | 377 3. You undefine PY_NO_RTLD_GLOBAL in auto/config.h after configuration. This |
378 may crash Vim though. | 378 may crash Vim though. |
379 | 379 |
380 *has-python* | |
381 You can test what Python version is available with: > | |
382 if has('python') | |
383 echo 'there is Pyton 2.x' | |
384 elseif has('python3') | |
385 echo 'there is Python 3.x' | |
386 endif | |
387 | |
388 Note however, that when Python 2 and 3 are both available and loaded | |
389 dynamically, these has() calls will try to load them. If only one can be | |
390 loaded at a time, just checking if Python 2 or 3 are available will prevent | |
391 the other one from being available. | |
380 | 392 |
381 ============================================================================== | 393 ============================================================================== |
382 vim:tw=78:ts=8:ft=help:norl: | 394 vim:tw=78:ts=8:ft=help:norl: |