jszakmeister / vim-red-green

Simple Vim plugin for displaying a red or green bar with a message.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Simple Vim plugin for displaying a red or green bar with a message.