GoLang之Gvim/Vim配置
2013-12-17 wcdj 之前总结过在subl中使用GoLang,《GoLang及Sublime Text 2之Mac OS X 10.8.4开发环境安装 》。其实GoLang的安装包中已经包含了支持Vim的编写插件,配置方法很简单,如下文所述。 Go in VimThe standard Go distribution includes a Go syntax file for Vim in Installation InstructionsPlace au BufRead,BufNewFile *.go set filetype=go Extras and Alternative FilesAn alternative indent file for Vim by Alecs King can be found here. AutocompletionThe gocode daemon by nsf includes a vim script to do autocompletion. OtherSee the vim-golang repo in Github foralternative syntax highlight,auto-indentation,gofmt and other useful scriptsand plugins. And this reddit post for various ways to integrate 参考: [1] http://go-lang.cat-v.org/text-editors/vim/ (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |