Coder Social home page Coder Social logo

vim-gocode's Introduction

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

  • :RelPkg takes no or one argument, a relative package path, and prints it as a full package path. If no argument is given, default to current package.

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

  • :GoInstall takes no or one argument, a relative package path, installs it or prints compilation errors otherwise. If no argument is given, default to current package.

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

  • :GoTest takes no or one argument, a relative package path, tests it and prints its output. If no argument is given, default to current 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

  • :GoImport, :GoImportAs and :GoDrop are equivalent of original :Import, :ImportAs and :Drop but takes all a relative package path to the current working directory

  • :make โ€” you can use QuickFix to iterate through build errors if any; if file is in subdirectory of $GOPATH/src/, the whole package is build, else โ€” only current file

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

vim-gocode's People

Contributors

volgar1x avatar mizabrik avatar alexaandru avatar corpix avatar macb avatar darthberen avatar myitcv avatar riobard avatar stnma7e avatar sebnow avatar timhughes avatar madevgeny avatar md2 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.