A股上市公司传智教育(股票代码 003032)旗下技术交流社区北京昌平校区

 找回密码
 加入黑马

QQ登录

只需一步,快速开始

Go in Vim
The standard Go distribution includes a Go syntax file for Vim in go/misc/vim/.
Installation Instructions
Place $GOROOT/misc/vim/syntax/go.vim in ~/.vim/syntax/ and put the following in ~/.vim/ftdetect/go.vim:
au BufRead,BufNewFile *.go set filetype=goExtras and Alternative Files
An alternative indent file for Vim by Alecs King can be found here.
Autocompletion
The gocode daemon by nsf includes a vim script to do autocompletion.
Other
See the vim-golang repo in Github for alternative syntax highlight, auto-indentation, gofmt and other useful scripts and plugins.

1 个回复

正序浏览
今天也要加油鸭
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 加入黑马