vimrc update

This commit is contained in:
light
2018-11-14 13:11:22 +08:00
parent e8e037ae1e
commit ac3f2922ee
2 changed files with 56 additions and 19 deletions
+18
View File
@@ -0,0 +1,18 @@
# 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/目录下