黑马程序员技术交流社区
标题: 【上海校区】VIM编辑器下go语法高亮显示 [打印本页]
作者: 梦缠绕的时候 时间: 2019-2-19 10:49
标题: 【上海校区】VIM编辑器下go语法高亮显示
Go in VimThe standard Go distribution includes a Go syntax file for Vim in go/misc/vim/.
Installation InstructionsPlace $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 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 for alternative syntax highlight, auto-indentation, gofmt and other useful scripts and plugins.
作者: 不二晨 时间: 2019-2-20 09:26
今天也要加油鸭
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) |
黑马程序员IT技术论坛 X3.2 |