mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-18 14:29:40 +08:00
readme description of the new functions
This commit is contained in:
+14
-5
@@ -149,14 +149,15 @@ have the following objects available:
|
|||||||
VIM Plugin
|
VIM Plugin
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
At the moment jedi is also a VIM plugin. Maybe that will change in the future.
|
At the moment jedi is also a VIM plugin. It is some sort of reference
|
||||||
The VIM plugin is located at `plugin/jedi.vim`.
|
implementation for other IDE's.
|
||||||
|
The VIM plugin is located under `plugin/jedi.vim`.
|
||||||
|
|
||||||
You might want to use [pathogen](https://github.com/tpope/vim-pathogen) to
|
You might want to use [pathogen](https://github.com/tpope/vim-pathogen) to
|
||||||
install jedi in VIM. Also you need a VIM version that was compiled with
|
install jedi in VIM. Also you need a VIM version that was compiled with
|
||||||
`+python`, which is typical for most distributions on Linux.
|
`+python`, which is typical for most distributions on Linux.
|
||||||
|
|
||||||
Jedi is automatically initialized. If you don't want that, I suggest you
|
Jedi is automatically initialized. If you don't want that I suggest you
|
||||||
disable the auto-initialization in your `.vimrc`:
|
disable the auto-initialization in your `.vimrc`:
|
||||||
|
|
||||||
let g:jedi#auto_initialization = 0
|
let g:jedi#auto_initialization = 0
|
||||||
@@ -165,11 +166,11 @@ The autocompletion can be used with \<ctrl+space\>, if you want it to work with
|
|||||||
\<tab\> you can use [supertab](https://github.com/ervandew/supertab).
|
\<tab\> you can use [supertab](https://github.com/ervandew/supertab).
|
||||||
The goto is by default on \<leader g\>. If you want to change that:
|
The goto is by default on \<leader g\>. If you want to change that:
|
||||||
|
|
||||||
let g:jedi#goto_command = <leader>g
|
let g:jedi#goto_command = "<leader>g"
|
||||||
|
|
||||||
`get_definition` is by default on \<leader d\>. If you want to change that:
|
`get_definition` is by default on \<leader d\>. If you want to change that:
|
||||||
|
|
||||||
let g:jedi#get_definition_command = <leader>d
|
let g:jedi#get_definition_command = "<leader>d"
|
||||||
|
|
||||||
Showing the pydoc is by default on `K` If you want to change that:
|
Showing the pydoc is by default on `K` If you want to change that:
|
||||||
|
|
||||||
@@ -185,4 +186,12 @@ you don't want this:
|
|||||||
|
|
||||||
let g:jedi#popup_on_dot = 0
|
let g:jedi#popup_on_dot = 0
|
||||||
|
|
||||||
|
There's some support for refactoring:
|
||||||
|
|
||||||
|
let g:jedi#rename_command = "<leader>r"
|
||||||
|
|
||||||
|
And you can list all names that are related (have the same origin):
|
||||||
|
let g:jedi#related_names_command = "<leader>n"
|
||||||
|
|
||||||
|
|
||||||
[](http://travis-ci.org/davidhalter/jedi)
|
[](http://travis-ci.org/davidhalter/jedi)
|
||||||
|
|||||||
Reference in New Issue
Block a user