0

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?

planetp
  • 14,248
  • 20
  • 86
  • 160

1 Answers1

1

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!

Ralf
  • 1,773
  • 8
  • 17
  • The problem with this is that for this to happen you would need to move the cursor to the mouses position first. Otherwise it could work. – Dave Halter Jan 23 '19 at 18:46