Home

Awesome

vim-gocode

All credit goes to nsf/code and Go authors. All Vim plugins from Go 1.2 are also included.

You should not install this plugin with either fsouza/go.vim or jnwhiteh/vim-golang! It could take unknown effect on your setup.

Commands

Example :RelPkg ../pkg/child in the $GOPATH/src/github.com/Blackrush/gofus/main.go file will print github.com/Blackrush/pkg/child

Example :GoInstall ../pkg/child with current working directory $GOPATH/src/github.com/Blackrush/gofus will try to install the github.com/Blackrush/pkg/child package

Example :GoTest ../pkg/child with current working directory $GOPATH/src/github.com/Blackrush/gofus will try to test the github.com/Blackrush/pkg/child package

See #1 to see future commands implementation.

Installation

Make sure you have installed gocode before installing this plugin :

go get github.com/nsf/gocode

Vundle

Add this line to your ~/.vimrc configuration file :

Bundle 'Blackrush/vim-gocode'

And then run vim :

vim +BundleInstall

Pathogen

cd ~/.vim/bundle
git clone https://github.com/Blackrush/vim-gocode.git