Vim-go: Jump to implementation of a interface

Created on 27 Apr 2016  路  3Comments  路  Source: fatih/vim-go

Hi faith,
I have a problem about jump to the implementation of a interface.
For example,

image

When my cursor is at line 5 and just at the letter 'D', I use GoDef and the cursor will jump to line 9, but I want to jump to the line 13.

Which command can I use?

Most helpful comment

Hi @surest

You can jump from 5 to 13 via :GoCallees
You can jump from 13 to 9 via :GoImplements

Please read http://golang.org/s/oracle-user-manual to get more info about the various Guru modes (previously it was called Oracle, but the user manual still applies)

Thanks for opening.

All 3 comments

Hi @surest

You can jump from 5 to 13 via :GoCallees
You can jump from 13 to 9 via :GoImplements

Please read http://golang.org/s/oracle-user-manual to get more info about the various Guru modes (previously it was called Oracle, but the user manual still applies)

Thanks for opening.

Thanks a lot! @fatih

Is there a way to jump from line 9 to line 13? With a command maybe ?
Can GoImplements be used to get that jump too ?

Was this page helpful?
0 / 5 - 0 ratings