vim-compiler-go alternatives and similar packages
Based on the "Editor Plugins" category.
Alternatively, view vim-compiler-go alternatives based on common mentions on social networks and blogs.
-
Go for Visual Studio Code
DISCONTINUED. An extension for VS Code which provides support for the Go language. -
GoSublime
A Golang plugin collection for SublimeText 3, providing code completion and other IDE-like features. -
coc-go language server extension for Vim/Neovim
Go language server extension using gopls for coc.nvim. -
Watch
Watches for changes in a directory tree and reruns a command in an acme win or just on the terminal. -
Local Golang playground
GNU/Emacs mode that setup local Go playground for code snippets like play.golang.org or even better :)
SaaSHub - Software Alternatives and Reviews
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of vim-compiler-go or a related project?
README
Vim compiler file for Go (golang)
Compiles Go files in the background and usefully underlines and reports errors to the QuickFix window:
[](demo.png?raw=true)
Installation:
Pathogen
Just clone this repo into your bundles directory:
git clone https://github.com/rjohnsondev/vim-compiler-go.git ~/.vim/bundle/vim-compiler-go
Either ensure the $GOROOT environment variable is set, or otherwise set the g:golang_goroot variable in .vimrc to where your go installation can be found. This must be an absolute path:
let g:golang_goroot = "/home/richard/go"
Manual installation
Drop golang.vim in ~/.vim/compiler directory.
Add the following line to the autocmd section of .vimrc
autocmd FileType go compiler golang
Set the g:golang_goroot variable to where your go installation can be found. This must be an absolute path
let g:golang_goroot = "/home/richard/go"
The plugin assumes a standard project layout with the files stored in a src directory. The GOPATH is set to one directory below the src folder.
Usage:
Golang is called after a buffer with Go code is saved. The QuickFix window is opened to show errors, warnings and hints provided by Golang.
To disable calling Golang every time a buffer is saved, put into .vimrc file:
let g:golang_onwrite = 0
The QuickFix window can be disabled with:
let g:golang_cwindow = 0
Setting highlights for the lines can be disabled with:
let g:golang_inline_highlight = 0
Of course, standard :make command can be used as is the case with every other compiler.