govim - Go development plugin for Vim8
github.com/myitcv/govim/cmd/govim (referred to simply as
govim) is a Go development plugin for Vim8, much
vim-go. But unlike
govim is written in Go, not VimScript. It has
features like code completion, format-on-save, hover details and go-to definition, all of which are driven by
gopls, the Language Server Protocol (LSP) server for Go. See the
wiki for more details. Installation instructions below.
- Vim 8 packages
git clone https://github.com/myitcv/govim.git ~/.vim/pack/plugins/start/govim
git clone https://github.com/myitcv/govim.git ~/.vim/bundle/govim
You might need some
.vimrc settings to get all features working: see the minimal
.vimrc for an
commented explanation of the required settings. For more details on
.gvimrc settings as well as some tips and
tricks, see here.
govim plugin API which also has links to some demo
Top of your list of questions is likely "Why have you created govim? What is/was wrong with
vim-go?" For answers
this and more see FAQ.
Contributions are very much welcome in the form of:
govim tests for details on how the modules in this repository