Skip to content

Instantly share code, notes, and snippets.

@toranb
Created January 15, 2019 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toranb/ae0f2ec70bc230d04905ff6cc4c77404 to your computer and use it in GitHub Desktop.
Save toranb/ae0f2ec70bc230d04905ff6cc4c77404 to your computer and use it in GitHub Desktop.
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