Ⅰ. 插件描述
Golang colorscheme for Vim, inspired by GitHubⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'bitfield/vim-gitgo'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'bitfield/vim-gitgo'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'bitfield/vim-gitgo'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/bitfield/vim-gitgo
Ⅳ. 文档说明
# vim-gitgo
gitgo is a Vim syntax colorscheme, primarily for use with Go. It's inspired by the default GitHub theme for Go syntax, which is pleasantly minimalist and easy on the eye. It's usable both with light and dark backgrounds.
It looks like this with a dark background:

And like this with a light background:

(The font in the screenshots is Fira Code Light, with ligatures enabled.)
Installation
With Pathogen:
cd ~/.vim/bundle
git clone git@github.com:bitfield/vim-gitgo.gitUsage
In your ~/.vimrc:
autocmd BufNewFile,BufRead *.go colorscheme gitgoRequirements
If you're using Vim in a terminal, you need a 256-color-capable terminal type, such as:
export TERM=xterm-256color(If you use iTerm2, set your terminal type to xterm-256color in Preferences->Profiles->Terminal->Report Terminal Type.)