设为首页收藏本站
查看: 94|回复: 0

[PHP] VIM编辑器下go语法高亮显示

[复制链接]

论坛元老

Rank: 6Rank: 6

积分
34274
主题
17031
UID
1347
M币
67
贡献
17176

  • 发表于 2013-10-14 10:23:00 | 显示全部楼层 |阅读模式
    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=go  Extras 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.
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    在我站开通SVIP可同时获得17个站点VIP资源 立即登录 立即注册
    快速回复 返回顶部 返回列表