govim is a Go development plugin for Vim8, written in Go
govim- Go development plugin for Vim8
Command
github.com/govim/govim/cmd/govim(referred to simply as
govim) is a Go development plugin for Vim8, much like
vim-go. But unlike
vim-go,
govimis 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.
github.com/govim/govimprovides an API for plugin developers to interface with Vim8 in Go. More details here.
govimrequires at least
go1.12and Vim
v8.1.1711(
gvimis also supported). Neovim is not (currently) supported. More details in the FAQ.
Install
govimvia:
git clone https://github.com/govim/govim.git ~/.vim/pack/plugins/start/govim
git clone https://github.com/govim/govim.git ~/.vim/bundle/govim
Plug 'govim/govim'
Plugin 'govim/govim'
You might need some
.vimrc/
.gvimrcsettings to get all features working: see the minimal
.vimrcor
.gvimrcfor a commented explanation of the required settings. For more details on
.vimrc/
.gvimrcsettings as well as some tips and tricks, see here.
govimdo?
govimplugin API which also has links to some demo screencasts.
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:
govimtests for details on how the modules in this repository are tested.