Not an editor command: RopeGotoDefinition

638 Views Asked by At

I'm working with a fresh install of python-mode (installed with Vundle on Vim 8) and find that "go to definition" mapping never works no matter how I set g:pymode_rope_goto_definition_bind.

Then I found RopeGotoDefinition is not an editor command. How could this happen? I'm confused.

1

There are 1 best solutions below

0
ReeseWang On

Solved it by myself before someone thinks I can't even do a git clone.

After digging into the plugin code, I found g:pymode_rope_goto_definition_bind is actually mapped to :call pymode#rope#goto_definition()<CR> rather than :RopeGotoDefinition which appears only once in the whole repo.

After verifying :call pymode#rope#goto_definition()<CR> command works as expected, I found my problem (failing to map) was caused by terminal emulator and Vim eating up all Ctrl+letter combinations. Something other than that works well, e.g. let g:pymode_rope_goto_definition_bind='<leader>pg'.

As for :RopeGotoDefinition, maybe it's just the remnant of old code lingering in the documentation.