mynote/go/vim-go.md
2018-11-14 13:11:22 +08:00

19 lines
420 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# install vim-go
## vundle
在.vimrc添加
``` bash
Plugin 'fatih/vim-go'
```
重新打开vim PluginInstall 安装vim-go
## vim-go
在vim中使用 :GoInstallBinaries 安装vim-go的一些增强功能, 其中一些包需要翻墙,具体包位置参考 ~/.vim/bundle/vim-go/plugin/go.vim.
主要是golang.org/x/tools 包比较困难可以go get github.com/golang/tools 在复制到golang.org/x/目录下