Created
January 15, 2019 14:39
-
-
Save toranb/ae0f2ec70bc230d04905ff6cc4c77404 to your computer and use it in GitHub Desktop.
Python for go-to-definition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pip install jedi | |
then -in your vimrc | |
``` | |
nmap <Leader>j :call InvokeJumpToByType()<CR> | |
function! InvokeJumpToByType() | |
let filetype=&ft | |
if filetype == 'python' | |
exe ':call jedi#goto_definitions()' | |
else | |
:exe "norm \<C-]>" | |
endif | |
endfunction | |
``` | |
For more information about JEDI | |
https://github.com/davidhalter/jedi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment