Skip to content

Instantly share code, notes, and snippets.

@1eedaegon
Last active April 10, 2023 01:33
Show Gist options
  • Save 1eedaegon/934c3c2d870e931835e1cc29700ba72c to your computer and use it in GitHub Desktop.
Save 1eedaegon/934c3c2d870e931835e1cc29700ba72c to your computer and use it in GitHub Desktop.
How to setup vim-go

1. Using Pathogen

git clone https://github.com/fatih/vim-go.git ~/.vim/bundle/vim-go

2. On vim

  • :GoInstallBinaries

3. If you got this error:

vim-go: could not find 'gopls'. Run :GoInstallBinaries to fix it

  • Check binary path: go env | grep GOBIN > ""
  • go get golang.org/x/tools/gopls@latest
  • brew install gopls(on MAC)
  • :GoInstallBinaries
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment