-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
FAQ Troubleshooting
This plugin/package is born mainly from frustration. I had to re-install my Vim plugins and especially for Go I had to install a lot of separate different plugins, setup the necessary binaries to make them work together and hope not to lose them again. Lots of plugins out there lack proper settings. This plugin is improved and contains all my fixes/changes that I'm using for months under heavy go development environment.
Give it a try. I hope you like it. Feel free to contribute to the project.
This happens if vim-go is not installed properly. Be sure you have added this line into your .vimrc:
filetype plugin indent onIf you try to call :GoDef, :GoInfo and get a command not found, check that you have the binaries installed by using: :GoInstallBinaries
Before opening vim, check your current $PATH:
echo $PATH
after opening vim, run :echo $PATH, the output must be your current $PATH + $GOPATH/bin (the location where :GoInstallBinaries installed the binaries
Check the sourcing order of your shell. For example in ZSH .zshenv applies even to non-interactive shells, which VIM uses to run all the GO tools. Values set in such file will override the shell which VIM started with. You can try one of the following:
- Move your $GOPATH settings to the right files that is not sourced by non-interactive shells or...
- Set your VIM's
shellvariable to a different shellset shell='/bin/sh'