您的位置:首页 > 编程语言 > Go语言

go and vim-go

2016-05-10 17:40 225 查看
sudo apt-get install golang golang-golang-x-tools golint


set GOPATH in .bashrc, such as ~/go, where bin, pkg, src will be put

use vundle to download vim-go from

https://github.com/fatih/vim-go

In vim, run :GoInstallBinaries

It will complain unable to download some, but so far it is enough for most functionalities.

Saving a .go file will invoke gofmt.

^x^o to auto complete

:GoDef

:GoBuild

:GoInstall

:GoTest

:GoRun

:GoPath

:GoLint

:GoImport package_name
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: