mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-06 18:54:44 +08:00
Document force_py_version better
This commit is contained in:
@@ -480,21 +480,20 @@ small a horizontal split happens.
|
|||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
6.12. `g:jedi#force_py_version` *g:jedi#force_py_version*
|
6.12. `g:jedi#force_py_version` *g:jedi#force_py_version*
|
||||||
|
|
||||||
If you have installed both python 2 and python 3, you can force which one jedi
|
If you have installed multiple Python versions, you can force the Python
|
||||||
should use by setting this variable. It forces the internal Vim command, which
|
version that is going to be used. To ensure that jedi environments are used.
|
||||||
will be used for every jedi call to the respective python interpreter.
|
You don't have to compile VIM with multiple Python versions.
|
||||||
The variable can be set in the .vimrc like this to force python 3:
|
The variable can be set in the .vimrc like this to force python 2:
|
||||||
|
|
||||||
let g:jedi#force_py_version = 3
|
let g:jedi#force_py_version = 2
|
||||||
|
|
||||||
This variable can be switched during runtime using the following function:
|
By default jedi loads the latest Python version installed on your system that
|
||||||
Function: `jedi#force_py_version_switch()`
|
can be found.
|
||||||
|
|
||||||
or set directly using this function, which has the same name as the variable:
|
This variable can be switched during runtime.
|
||||||
Function: `jedi#force_py_version(py_version)`
|
|
||||||
|
|
||||||
Options: 2 or 3
|
Options: 2, 2.7, 3, 3.3, 3.4, ...
|
||||||
Default: "auto" (will use sys.version_info from "python" in your $PATH)
|
Default: "auto"
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
6.13. `g:jedi#smart_auto_mappings` *g:jedi#smart_auto_mappings*
|
6.13. `g:jedi#smart_auto_mappings` *g:jedi#smart_auto_mappings*
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user