How to make Jedi-vim navigate to declaration on Ctrl+click?

551 Views Asked by At

I'm trying to setup Vim with jedi-vim for Python development. I would like jedi-vim to navigate to declaration on Ctrl+click (like in Pycharm) instead of the default <leader>d. How to achieve this?

1

There are 1 best solutions below

1
Ralf On

Maybe (not tested):

let g:jedi#goto_command = "<C-LeftMouse>"

in your .vimrc before you load the plugin. Than <leader>d does not work anymore.

Note: gVim only, does not work in the terminal!