So, I did the Rust setup recently, so I’ve figured out I’ll do the one for Go as well (as I work with Go daily).

Getting Vim to work with Go

  1. Get Vim
  2. Install Go
  3. Install coc and vim-go with your favourite plugin manager
  4. Run in Vim: CocInstall coc-go - more info here
  5. Add to your .vimrc:
" Go setup

let g:go_fmt_command = "goimports"
let g:go_gocode_propose_source = 0
let g:go_auto_type_info = 1
let g:go_version_warning = 0

Do you run your setup differently? Anything you would like to know more about? Hit me up on linkedin!