{"id":13367475,"url":"https://github.com/fatih/vim-Go","last_synced_at":"2025-03-12T18:32:48.180Z","repository":{"id":15332545,"uuid":"18062944","full_name":"fatih/vim-go","owner":"fatih","description":"Go development plugin for Vim","archived":false,"fork":false,"pushed_at":"2025-03-10T02:39:40.000Z","size":7195,"stargazers_count":16083,"open_issues_count":39,"forks_count":1437,"subscribers_count":261,"default_branch":"master","last_synced_at":"2025-03-11T03:23:57.857Z","etag":null,"topics":["go","golang","gopls","hacktoberfest","lps","vim","vim-go","vim-plugins","viml"],"latest_commit_sha":null,"homepage":"https://www.patreon.com/bhcleek","language":"Vim Script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fatih.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"patreon":"bhcleek"}},"created_at":"2014-03-24T13:12:26.000Z","updated_at":"2025-03-11T02:51:02.000Z","dependencies_parsed_at":"2023-02-09T21:45:53.806Z","dependency_job_id":"265b5a41-6157-4681-9230-b4b5554958c2","html_url":"https://github.com/fatih/vim-go","commit_stats":{"total_commits":3247,"total_committers":391,"mean_commits":8.304347826086957,"dds":0.5451185709886048,"last_synced_commit":"ac1fb9611de435d80a6badcf8482cb1428449b10"},"previous_names":[],"tags_count":42,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fatih%2Fvim-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fatih%2Fvim-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fatih%2Fvim-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fatih%2Fvim-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fatih","download_url":"https://codeload.github.com/fatih/vim-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243271680,"owners_count":20264511,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang","gopls","hacktoberfest","lps","vim","vim-go","vim-plugins","viml"],"created_at":"2024-07-30T00:01:50.381Z","updated_at":"2025-03-12T18:32:48.156Z","avatar_url":"https://github.com/fatih.png","language":"Vim Script","readme":"# vim-go [![GitHub Actions Status](https://github.com/fatih/vim-go/workflows/test/badge.svg)](https://github.com/fatih/vim-go/actions)\n\n\n\n\u003cp align=\"center\"\u003e\n  \u003cimg style=\"float: right;\" src=\"assets/vim-go.png\" alt=\"Vim-go logo\"/\u003e\n\u003c/p\u003e\n\n## Features\n\nThis plugin adds Go language support for Vim, with the following main features:\n\n* Compile your package with `:GoBuild`, install it with `:GoInstall` or test it\n  with `:GoTest`. Run a single test with `:GoTestFunc`).\n* Quickly execute your current file(s) with `:GoRun`.\n* Improved syntax highlighting and folding.\n* Debug programs with integrated [`delve`](https://github.com/go-delve/delve) support with `:GoDebugStart`.\n* Completion and many other features support via `gopls`.\n* formatting on save keeps the cursor position and undo history.\n* Go to symbol/declaration with `:GoDef`.\n* Look up documentation with `:GoDoc` or `:GoDocBrowser`.\n* Easily import packages via `:GoImport`, remove them via `:GoDrop`.\n* Precise type-safe renaming of identifiers with `:GoRename`.\n* See which code is covered by tests with `:GoCoverage`.\n* Add or remove tags on struct fields with `:GoAddTags` and `:GoRemoveTags`.\n* Lint your code with `:GoLint` or `:GoMetaLinter`, run your code through `:GoVet` to catch static errors, or make sure errors are checked with `:GoErrCheck`.\n* Advanced source analysis utilizing `gopls`, such as `:GoImplements`, `:GoCallees`, and `:GoReferrers`.\n* ... and many more! Please see [doc/vim-go.txt](doc/vim-go.txt) for more information.\n* Integration with [`gopls`](https://github.com/golang/tools/blob/master/gopls/README.md).\n* The `gopls` instance can be shared with other Vim plugins.\n* Vim-go's use of `gopls` can be disabled and alternative tools can be used when desired.\n* Integration with [`Tagbar`](https://github.com/preservim/tagbar) via [`gotags`](https://github.com/jstemmer/gotags).\n* Integration with [`Ultisnips`](https://github.com/SirVer/ultisnips) and other snippet engines.\n\n## Install\n\nvim-go requires at least Vim 8.1.2269 or Neovim 0.4.0.\n\nThe [**latest stable release**](https://github.com/fatih/vim-go/releases/latest) is the\nrecommended version to use. If you choose to use the master branch instead,\nplease do so with caution; it is a _development_ branch.\n\n\nvim-go follows the standard runtime path structure. Below are some helper lines\nfor popular package managers:\n\n* [Vim 8 packages](http://vimhelp.appspot.com/repeat.txt.html#packages)\n  * `git clone https://github.com/fatih/vim-go.git ~/.vim/pack/plugins/start/vim-go`\n* [Neovim packages](https://neovim.io/doc/user/repeat.html#packages)\n  * `git clone https://github.com/fatih/vim-go.git ~/.local/share/nvim/site/pack/plugins/start/vim-go`\n* [Pathogen](https://github.com/tpope/vim-pathogen)\n  * `git clone https://github.com/fatih/vim-go.git ~/.vim/bundle/vim-go`\n* [vim-plug](https://github.com/junegunn/vim-plug)\n  * `Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }`\n* [Vundle](https://github.com/VundleVim/Vundle.vim)\n  * `Plugin 'fatih/vim-go'`\n\nYou will also need to install all the necessary binaries. vim-go makes it easy\nto install all of them by providing a command, `:GoInstallBinaries`, which will\n`go install` all the required binaries.\n\nCheck out the Install section in [the documentation](doc/vim-go.txt) for more\ndetailed instructions (`:help go-install`).\n\n## Usage\n\nThe full documentation can be found at [doc/vim-go.txt](doc/vim-go.txt). You can\ndisplay it from within Vim with `:help vim-go`.\n\nDepending on your installation method, you may have to generate the plugin's\n[`help tags`](http://vimhelp.appspot.com/helphelp.txt.html#%3Ahelptags)\nmanually (e.g. `:helptags ALL`).\n\nWe also have a [tutorial](https://github.com/fatih/vim-go/wiki/Tutorial) in the [official vim-go wiki](https://github.com/fatih/vim-go/wiki).\n\n## FAQ and troubleshooting\n\nThe FAQ and troubleshooting tips are in the documentation and can be quickly\naccessed using `:help go-troubleshooting`. If you believe you've found a bug or\nshortcoming in vim-go that is neither addressed by help nor in [existing\nissues](https://github.com/fatih/vim-go/issues), please open an issue with\nclear reproduction steps. `:GoReportGitHubIssue` can be used pre-populate a lot\nof the information needed when creating a new issue.\n\n## Contributing\n\nAll PRs are welcome. If you are planning to contribute a large patch or to\nintegrate a new tool, please create an issue first to get any upfront questions\nor design decisions out of the way first.\n\nYou can run the tests locally by running `make`. It will lint the VimL for you,\nlint the documentation, and run the tests against the minimum required version\nof Vim, other versions of Vim that may be critical to support, and Neovim.\n\n## License\n\nThe BSD 3-Clause License - see [`LICENSE`](LICENSE) for more details\n\n","funding_links":["https://patreon.com/bhcleek"],"categories":["编辑器插件","編輯器插件"],"sub_categories":["路由"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffatih%2Fvim-Go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffatih%2Fvim-Go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffatih%2Fvim-Go/lists"}