当我在使用Janus vim处理golang文件时,如何摆脱Vim中的这个消息?

huangapple go评论72阅读模式
英文:

How do I get rid of this message in Vim when I'm working with golang files with Janus vim?

问题

我使用Vim打开一个hello.go文件(使用janus vim distro附带的nerdTree插件),然后出现了"vim-go: could not find 'gotags'. Run :GoInstallBinaries to fix it."的错误提示。我正在使用gvm。我可以使用gvm运行golang。如何使用gvm安装GoInstallBinaries以解决这个问题?我对golang还不太熟悉,所以我只是想要能够运行起来。

英文:

I use Vim to open up a hello.go file (using the nerdTree plugin included with janus vim distro) and get "vim-go: could not find 'gotags'. Run :GoInstallBinaries to fix it.". I'm using gvm. I can get golang to run with gvm. How do I install GoInstallBinaries with gvm to get rid of this message? I'm pretty new to golang, so I'm just trying to get up and running.

答案1

得分: 1

按照 sberry 的指示操作。在命令模式下,按下 : 键,然后输入 GoInstallBinaries,然后按下回车键。这样应该会安装所有内容。

英文:

Do what sberry says. In command-mode, hit : and type GoInstallBinaries, and hit enter. That should install everything.

huangapple
  • 本文由 发表于 2015年4月3日 13:45:31
  • 转载请务必保留本文链接:https://go.coder-hub.com/29426855.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定