1
0
Fork 0
mirror of synced 2024-12-21 14:31:06 -05:00
ultimate-vim/sources_non_forked/vim-go
2017-07-16 14:28:30 +02:00
..
.github Updated plugins and added vim-abolish 2017-05-26 11:30:32 +02:00
assets Updated plugins 2016-10-02 13:37:21 +02:00
autoload Updated plugins 2017-07-16 14:28:30 +02:00
compiler Updated plugins 2016-06-26 13:12:36 +02:00
doc Updated plugins 2017-07-16 14:28:30 +02:00
ftdetect Updated plugins 2016-06-26 13:12:36 +02:00
ftplugin Updated vim plugins 2017-07-06 14:57:35 +02:00
gosnippets Updated plugins and added vim-abolish 2017-05-26 11:30:32 +02:00
indent Updated plugins 2016-12-27 11:46:49 -03:00
plugin Updated plugins and added vim-abolish 2017-05-26 11:30:32 +02:00
scripts Updated plugins 2017-07-16 14:28:30 +02:00
syntax Updated plugins 2017-07-16 14:28:30 +02:00
templates Updated vim plugins 2017-07-06 14:57:35 +02:00
.gitignore Updated plugins 2017-07-16 14:28:30 +02:00
.travis.yml Updated plugins 2017-03-07 18:04:28 +01:00
addon-info.json Updated plugins 2014-10-31 21:30:24 +00:00
CHANGELOG.md Updated plugins 2017-07-16 14:28:30 +02:00
LICENSE Updated plugins 2017-03-07 18:04:28 +01:00
Makefile Updated plugins 2017-02-11 14:01:38 +01:00
README.md Updated plugins 2017-05-02 14:42:08 +02:00

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