aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/if_pyth.txt
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-12-30 21:17:18 +0100
committerGitHub <noreply@github.com>2018-12-30 21:17:18 +0100
commit1e8d2bdc487cdebf152eb228ed936720cfed3a76 (patch)
treef4933a9250ac93d6dd6998b9bafb87bb1beae8ab /runtime/doc/if_pyth.txt
parentfa5182489a660e672bac6ea78ba4eefcbba9d6eb (diff)
parenta10fdc70aa1e7e48421a473a2fab49b79089426c (diff)
downloadrneovim-1e8d2bdc487cdebf152eb228ed936720cfed3a76.tar.gz
rneovim-1e8d2bdc487cdebf152eb228ed936720cfed3a76.tar.bz2
rneovim-1e8d2bdc487cdebf152eb228ed936720cfed3a76.zip
Merge #9335 from justinmk/doc
Diffstat (limited to 'runtime/doc/if_pyth.txt')
-rw-r--r--runtime/doc/if_pyth.txt23
1 files changed, 1 insertions, 22 deletions
diff --git a/runtime/doc/if_pyth.txt b/runtime/doc/if_pyth.txt
index 81a7816c93..2da2e5147b 100644
--- a/runtime/doc/if_pyth.txt
+++ b/runtime/doc/if_pyth.txt
@@ -6,7 +6,7 @@
The Python Interface to Vim *if_pyth* *python* *Python*
-See |provider-python| for more information. {Nvim}
+See |provider-python| for more information.
Type |gO| to see the table of contents.
@@ -722,26 +722,5 @@ You can test what Python version is available with: >
echo 'there is Python 3.x'
endif
-Note however, that if Python 2 and 3 are both available, but not loaded,
-these has() calls will try to load them.
-
-To avoid loading the dynamic library, only check if Vim was compiled with
-python support: >
- if has('python_compiled')
- echo 'compiled with Python 2.x support'
- if has('python_dynamic')
- echo 'Python 2.x dynamically loaded'
- endif
- endif
- if has('python3_compiled')
- echo 'compiled with Python 3.x support'
- if has('python3_dynamic')
- echo 'Python 3.x dynamically loaded'
- endif
- endif
-
-This also tells you whether Python is dynamically loaded, which will fail if
-the runtime library cannot be found.
-
==============================================================================
vim:tw=78:ts=8:noet:ft=help:norl: