我的设置
我已经使用命令 go get github.com/nsf/gocode
安装了 gocode。
我使用 Pathogen 来管理我的 Vim 插件。我用 git clone git@github.com:Blackrush/vim-gocode.git
安装了 vim-gocode。
我看到了什么
:Fmt
命令工作正常,但我无法自动完成我的 golang 代码。它报告如下图所示的错误:
有人可以帮助我吗?
最佳答案
请确保您有 YCM或 neocomplete安装。您需要一些额外的二进制文件才能获得所有功能。下面的 vim-go 存储库告诉您如何安装它们。
All necessary binaries should be installed (such as gocode, godef, goimports, etc.). You can easily install them with the included :GoInstallBinaries command, by running command in your vim.
关于vim - 即使安装了 vim-gocode,我也无法自动完成我的 Go 代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26417601/