:Gosrc
command open a golang source file with completion which is at
$GOROOT
or $GOPATH
.
Copy plugin/go/gosrc.vim
into your ~.vim/plugin
or so.
When you type like this
:Gosrc gi<tab>
You'll get like this
:Gosrc github.com/
It was completed from $GOROOT
or $GOPATH
.
Then complete path for depth...
:Gosrc github.com/koron/upgorade/upgorade-vim.go<ENTER>
It opens (with :split
) a source file from $GOPATH
(or $GOROOT
).