Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rjohnsondev/vim-compiler-go
Vim compiler plugin for Go (golang)
https://github.com/rjohnsondev/vim-compiler-go
Last synced: about 2 months ago
JSON representation
Vim compiler plugin for Go (golang)
- Host: GitHub
- URL: https://github.com/rjohnsondev/vim-compiler-go
- Owner: rjohnsondev
- Created: 2012-11-25T18:15:52.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-06-28T22:00:12.000Z (almost 8 years ago)
- Last Synced: 2024-01-08T16:24:52.788Z (5 months ago)
- Language: VimL
- Size: 20.5 KB
- Stars: 87
- Watchers: 6
- Forks: 17
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Lists
- awesome-go - vim-compiler-go - Vim plugin to highlight syntax errors on save. (Editor Plugins / Routers)
- awesome-go - vim-compiler-go - Vim plugin to highlight syntax errors on save. (Editor Plugins / Routers)
- awesome-go-extra - vim-compiler-go - 11-25T18:15:52Z|2016-06-28T22:00:12Z| (Editor Plugins / Routers)
- awesome-go-cn - vim-compiler-go
- awesome-go-zh - vim-compiler-go
- awesome-go - vim-compiler-go - Vim plugin to highlight syntax errors on save. (Editor Plugins / Routers)
- fucking-awesome-go - :octocat: vim-compiler-go - A Vim plugin to highlight syntax errors on save. :star: 66 :fork_and_knife: 16 (Editor Plugins / Middlewares)
- awesome-go-projects - vim-compiler-go - Vim plugin to highlight syntax errors on save. (Editor Plugins / Routers)
- awesome-go - vim-compiler-go - Vim plugin to highlight syntax errors on save. (Editor Plugins / Routers)
- awesome-go - vim-compiler-go - | - | - | (Editor Plugins / Routers)
- awesome-go - vim-compiler-go - A Vim plugin to highlight syntax errors on save. (Editor Plugins / Middlewares)
- awesome-go-with-framework - vim-compiler-go - Vim plugin to highlight syntax errors on save. (Editor Plugins / Routers)
- awesome-go - vim-compiler-go - Vim plugin to highlight syntax errors on save. (Editor Plugins / Routers)
- awesome-go - vim-compiler-go - Vim plugin to highlight syntax errors on save. (Editor Plugins / Routers)
- awesome-go-cn - vim-compiler-go - compiler-go) (编辑器插件 / 路由器)
- awesome-go-stars - vim-compiler-go - Vim plugin to highlight syntax errors on save. (Editor Plugins / Routers)
- awesome-go - vim-compiler-go - A Vim plugin to highlight syntax errors on save. (Editor Plugins / Middlewares)
- awesome-go - vim-compiler-go - Vim plugin to highlight syntax errors on save. (Editor Plugins / Routers)
- awesome-go. - vim-compiler-go - Vim plugin to highlight syntax errors on save. (Editor Plugins / Routers)
- awesome-go - vim-compiler-go - Vim plugin to highlight syntax errors on save. (Editor Plugins / Routers)
- awesome-go-with-stars - vim-compiler-go - Vim plugin to highlight syntax errors on save. (Editor Plugins / Routers)
- awesome-go - vim-compiler-go - Vim plugin to highlight syntax errors on save. (Editor Plugins / Routers)
- repo-1316-awesome-go-cn - vim-compiler-go - compiler-go) (编辑器插件 / 路由器)
- repo-1211-awesome-go-cn - vim-compiler-go - compiler-go) (编辑器插件 / 路由器)
- awesome-Char - vim-compiler-go - Vim plugin to highlight syntax errors on save. (Editor Plugins / Routers)
- awesome-reader - vim-compiler-go - Vim plugin to highlight syntax errors on save. (Editor Plugins / Routers)
- awesome-go - vim-compiler-go - A Vim plugin to highlight syntax errors on save. (Editor Plugins / Routers)
- awesome-go - vim-compiler-go - Vim plugin to highlight syntax errors on save. (Editor Plugins / Routers)
- Go-awesome - vim-compiler-go - Vim plugin to highlight syntax errors on save. (Editor Plugins / Routers)
- awesome-go - vim-compiler-go - Vim plugin to highlight syntax errors on save. (Editor Plugins / Routers)
- go-awesome-cn-star - vim-compiler-go
- awesome-go-cn - vim-compiler-go - compiler-go) (编辑器插件 / 路由器)
- awesome-go-handwritten - vim-compiler-go - Vim plugin to highlight syntax errors on save. (Editor Plugins / Routers)
- awesome-go - vim-compiler-go - Vim plugin to highlight syntax errors on save. (Editor Plugins / Routers)
- awesome-go2 - vim-compiler-go - Vim plugin to highlight syntax errors on save. (Editor Plugins / Routers)
- awesome-go - vim-compiler-go - Vim plugin to highlight syntax errors on save. (Editor Plugins / Routers)
- awesome-go - vim-compiler-go - Vim plugin to highlight syntax errors on save. (Editor Plugins / Routers)
- awesome-go - vim-compiler-go - A Vim plugin to highlight syntax errors on save. (Editor Plugins / Middlewares)
- awesome-go - vim-compiler-go - Vim plugin to highlight syntax errors on save. (Editor Plugins / Routers)
- awesome-stars - rjohnsondev/vim-compiler-go - Vim compiler plugin for Go (golang) (Vim Script)
- awesome-go-zh - vim-compiler-go - compiler-go) (编辑器插件 / 路由器)
- awesome-go-cn - vim-compiler-go
- awesome-go-cn - vim-compiler-go
- awesome-go - vim-compiler-go - Vim plugin to highlight syntax errors on save. (Editor Plugins / Routers)
- awesome-go - vim-compiler-go - Vim plugin to highlight syntax errors on save. (Editor Plugins / Routers)
- awesome-go - vim-compiler-go - Vim compiler plugin for Go (golang) - ★ 77 (Editor Plugins)
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 pathlet 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.