1
0
Fork 0
mirror of synced 2024-11-04 16:38:59 -05:00
ultimate-vim/sources_non_forked/vim-go
2018-12-17 12:33:49 +01:00
..
.github Updated plugins 2018-06-14 12:31:12 +02:00
assets Updated plugins and added vim-markdown 2018-02-04 12:35:08 +01:00
autoload Forgot to add the newly created files from the plugin update 2018-12-17 12:33:49 +01:00
compiler Updated vim plugins 2018-12-17 12:28:27 +01:00
doc Updated vim plugins 2018-12-17 12:28:27 +01:00
ftdetect Updated vim plugins 2018-12-17 12:28:27 +01:00
ftplugin Updated vim plugins 2018-12-17 12:28:27 +01:00
gosnippets Updated plugins 2018-09-24 21:40:17 -03:00
indent Updated vim plugins 2018-12-17 12:28:27 +01:00
plugin Updated vim plugins 2018-12-17 12:28:27 +01:00
rplugin/python3/denite/source Replace YanRing with yank-stack and update plugins 2017-12-13 15:05:24 +01:00
scripts Updated vim plugins 2018-12-17 12:28:27 +01:00
syntax Updated plugins 2018-11-01 11:03:42 +01:00
templates Updated vim plugins 2017-07-06 14:57:35 +02:00
test Updated vim plugins 2018-12-17 12:28:27 +01:00
.codecov.yml Updated plugins 2018-09-24 21:40:17 -03:00
.coveragerc Updated plugins 2018-07-30 23:18:16 +02:00
.dockerignore Updated plugins and added vim-markdown 2018-02-04 12:35:08 +01:00
.editorconfig Added not added new plugin files 2017-11-24 14:59:41 +01:00
.gitignore Replace YanRing with yank-stack and update plugins 2017-12-13 15:05:24 +01:00
.travis.yml Updated plugins 2018-09-24 21:40:17 -03:00
.vintrc.yaml Added not added new plugin files 2017-11-24 14:59:41 +01:00
addon-info.json Updated plugins 2014-10-31 21:30:24 +00:00
CHANGELOG.md Updated vim plugins 2018-12-17 12:28:27 +01:00
Dockerfile Updated plugins 2018-09-24 21:40:17 -03:00
LICENSE Updated plugins 2017-03-07 18:04:28 +01:00
Makefile Replace YanRing with yank-stack and update plugins 2017-12-13 15:05:24 +01:00
README.md Updated plugins 2018-09-24 21:40:17 -03:00

vim-go Build Status

Vim-go logo

Features

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

  • Compile your package with :GoBuild, install it with :GoInstall or test it with :GoTest. Run a single test with :GoTestFunc).
  • Quickly execute your current file(s) with :GoRun.
  • Improved syntax highlighting and folding.
  • Debug programs with integrated delve support with :GoDebugStart.
  • Completion support via gocode.
  • gofmt or goimports on save keeps the cursor position and undo history.
  • Go to symbol/declaration with :GoDef.
  • Look up documentation with :GoDoc or :GoDocBrowser.
  • Easily import packages via :GoImport, remove them via :GoDrop.
  • Precise type-safe renaming of identifiers with :GoRename.
  • See which code is covered by tests with :GoCoverage.
  • Add or remove tags on struct fields with :GoAddTags and :GoRemoveTags.
  • Call gometalinter with :GoMetaLinter to invoke all possible linters (golint, vet, errcheck, deadcode, etc.) and put the result in the quickfix or location list.
  • Lint your code with :GoLint, run your code through :GoVet to catch static errors, or make sure errors are checked with :GoErrCheck.
  • Advanced source analysis tools utilizing guru, such as :GoImplements, :GoCallees, and :GoReferrers.
  • ... and many more! Please see doc/vim-go.txt for more information.

Install

vim-go requires at least Vim 7.4.2009 or Neovim 0.3.1.

The latest stable release is the recommended version to use. If you choose to use the master branch instead, please do so with caution; it is a development branch.

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

  • Vim 8 packages
    • git clone https://github.com/fatih/vim-go.git ~/.vim/pack/plugins/start/vim-go
  • Pathogen
    • git clone https://github.com/fatih/vim-go.git ~/.vim/bundle/vim-go
  • vim-plug
    • Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
  • Vundle
    • Plugin 'fatih/vim-go'

You will also need to install all the necessary binaries. vim-go makes it easy to install all of them by providing a command, :GoInstallBinaries, which will go get all the required binaries.

Check out the Install section in the documentation for more detailed instructions (:help go-install).

Usage

The full documentation can be found at doc/vim-go.txt. You can display it from within Vim with :help vim-go.

Depending on your installation method, you may have to generate the plugin's help tags manually (e.g. :helptags ALL).

We also have an official vim-go tutorial.

License

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