homepage: https://github.com/fatih/vim-go
tagline: |
vim-go adds Go language support for Vim.
-description: |
- `vim-go` provides integration with various official and 3rd part go tooling for linting, vetting, etc.
-
- You'll also need `ALE`, `syntastic`, or similar.
---
+## Updating `vim-go`
+
+```bash
+webi vim-go
+```
+
+## Cheat Sheet
+
+> `vim-go` provides integration with various official and 3rd part go tooling
+> for linting, vetting, etc.
+
+You'll also need `ALE`, [`syntastic`](https://webinstall.dev/vim-syntastic), or
+similar.
+
### How to install by hand
```bash
### How to configure your `.vimrc`
-```vimrc
+```vim
" don't check syntax immediately on open or on quit
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
autocmd BufWritePre * :%s/\s\+$//e
```
-```vimrc
+```vim
"""""""""""""""""""""""""""
" Golang-specific options "
"""""""""""""""""""""""""""
# gorename
go get golang.org/x/tools/cmd/gorename
+# goreturns
+go get github.com/sqs/goreturns
+
# gotype
go get golang.org/x/tools/cmd/gotype
```