Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Python for go-to-definition
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
You can’t perform that action at this time.