vim-go 0,5,4,1,10,0,23,6

Go development plugin for Vim

vim-go Build Status

Vim-go logo

Features

This plugin adds Go language support for Vim, with the following main features:

  • Build with :GoBuild, install with :GoInstall or test with :GoTest (run single tests via :GoTestFunc)
  • Show test coverage with :GoCoverage or in browser with :GoCoverageBrowser
  • Goto definition with :GoDef
  • Quick jump to declarations with :GoDecls or :GoDeclsDir
  • Show documentation with :GoDoc inside or in browser with :GoDocBrowser
  • Quickly execute your current file/files with :GoRun
  • Advanced source analysis tools utilizing guru, such as :GoImplements, :GoCallees, and :GoReferrers
  • Change or display GOPATH with :GoPath
  • Multiple 3rd linter support with :GoMetaLinter
  • Renaming identifiers with :GoRename
  • Share your code to play.golang.org with :GoPlay
  • Switch between *.go and *_test.go code with :GoAlternate
  • Add/Remove tags on struct fields with :GoAddTags
  • Add import paths via :GoImport or remove them with :GoDrop
  • Custom vim text objects such as a function (af) or inner function (if)
  • … and many more! Please see doc/vim-go.txt for more information.

Install

Master branch is a development branch. Please use with caution. I recommend to use the latest stable release

Vim-go follows the standard runtime path structure. Below are some helper lines for popular package managers:

  • Pathogen
    • git clone https://github.com/fatih/vim-go.git ~/.vim/bundle/vim-go
  • vim-plug
    • Plug 'fatih/vim-go'
  • Vim packages
    • git clone https://github.com/fatih/vim-go.git ~/.vim/pack/plugins/start/vim-go

After installing, please install all necessary binaries. We have a handy command for it:

:GoInstallBinaries

for more information please check out the documentation

Usage

Official documentation can be found under doc/vim-go.txt. You can display it from within Vim with:

:help vim-go

We also have an official vim-go tutorial.

License

The BSD 3-Clause License - see LICENSE for more details

Related Repositories

vim-go

vim-go

Go development plugin for Vim ...

vim-go-tutorial

vim-go-tutorial

Tutorial for vim-go ...

vim-golang

vim-golang

Github mirror of Go vimscripts, synced with main repository ...

vim-godebug

vim-godebug

Go debugging for Vim ...

vim-gocode

vim-gocode

A Go bundle for Vundle or Pathogen ...


Top Contributors

fatih guns nhooyr bhcleek mattn nowk gcmt alexaandru cespare riobard opennota alexlafroscia Carpetsmoker lucapette eliasgs mmlb variadico andrewstuart chrisnc dobegor owenbutler mrnugget mitsuse t-yuki caixw gonotes kalekseev yyoshiki41 bcarrell BohrShaw

Releases

-   v1.9 zip tar
-   v1.8 zip tar
-   v1.7.1 zip tar
-   v1.7 zip tar
-   v1.6 zip tar
-   v1.5 zip tar
-   v1.4 zip tar
-   v1.3 zip tar
-   v1.2 zip tar
-   v1.1 zip tar
-   v1.0.5 zip tar
-   v1.0.4 zip tar
-   v1.0.3 zip tar
-   v1.0.2 zip tar
-   v1.0.1 zip tar
-   v1.0 zip tar