Ⅰ. 插件描述
Simple Vim plugin for displaying a red or green bar with a message.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'jimf/vim-red-green'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'jimf/vim-red-green'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'jimf/vim-red-green'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/jimf/vim-red-green
Ⅳ. 文档说明
vim-RedGreen
red-green.vim is a simple plugin for displaying a red or green bar with a message. It's intended to be used by other plugins/functions/mappings rather than provide extended functionality on its own.
Inspiration for this plugin from makegreen.vim and Gary Bernhardt.
Installation
Extract files to your ~/.vim directory or use Time Pope's pathogen.vim.
Requirements
Vim 7.0+
Usage
Call GreenBar() and RedBar() with your desired text:
:call GreenBar('All tests passed')
:call RedBar('Assertion Error')
Configuration
The colors used by this plugin can be tweaked by modifying the following highlight groups:
hi GreenBar term=reverse ctermfg=black ctermbg=green guifg=black guibg=green
hi RedBar term=reverse ctermfg=black ctermbg=red guifg=black guibg=red3
Related: View all colors available to gvim
License
MIT License