|
il y a 7 ans | |
---|---|---|
.. | ||
.github | il y a 7 ans | |
assets | il y a 7 ans | |
autoload | il y a 7 ans | |
compiler | il y a 7 ans | |
doc | il y a 7 ans | |
ftdetect | il y a 7 ans | |
ftplugin | il y a 7 ans | |
gosnippets | il y a 7 ans | |
indent | il y a 7 ans | |
plugin | il y a 7 ans | |
rplugin | il y a 7 ans | |
scripts | il y a 7 ans | |
syntax | il y a 7 ans | |
templates | il y a 7 ans | |
test | il y a 7 ans | |
.coveragerc | il y a 7 ans | |
.dockerignore | il y a 7 ans | |
.editorconfig | il y a 7 ans | |
.gitignore | il y a 7 ans | |
.travis.yml | il y a 7 ans | |
.vintrc.yaml | il y a 7 ans | |
CHANGELOG.md | il y a 7 ans | |
Dockerfile | il y a 7 ans | |
LICENSE | il y a 7 ans | |
Makefile | il y a 7 ans | |
README.md | il y a 7 ans | |
addon-info.json | il y a 7 ans |
This plugin adds Go language support for Vim, with the following main features:
:GoBuild
, install it with :GoInstall
or test it
with :GoTest
. Run a single tests with :GoTestFunc
).:GoRun
.delve
support with :GoDebugStart
.gocode
.gofmt
or goimports
on save keeps the cursor position and undo history.:GoDef
.:GoDoc
or :GoDocBrowser
.:GoImport
, remove them via :GoDrop
.:GoRename
.:GoCoverage
.:GoAddTags
and :GoRemoveTags
.gometalinter
with :GoMetaLinter
to invoke all possible linters
(golint
, vet
, errcheck
, deadcode
, etc.) and put the result in the
quickfix or location list.:GoLint
, run your code through :GoVet
to catch static
errors, or make sure errors are checked with :GoErrCheck
.guru
, such as :GoImplements
,
:GoCallees
, and :GoReferrers
.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:
git clone https://github.com/fatih/vim-go.git ~/.vim/pack/plugins/start/vim-go
git clone https://github.com/fatih/vim-go.git ~/.vim/bundle/vim-go
Plug '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
).
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.
The BSD 3-Clause License - see LICENSE
for more details