yuzhen1024 / vim-gosrc

Open golang src in Vim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gosrc plugin for Vim

:Gosrc command open a golang source file with completion which is at $GOROOT or $GOPATH.

Install

Copy plugin/go/gosrc.vim into your ~.vim/plugin or so.

How to use

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).

About

Open golang src in Vim


Languages

Language:Vim Script 100.0%