sponsor Vim development Vim logo Vim Book Ad

BackgroundColor.vim : Define a background color for your vim

 script karma  Rating 6/3, Downloaded by 1219  Comments, bugs, improvements  Vim wiki

created by
Christian Brabandt
 
script type
utility
 
description
BackgroundColor.vim only works, if your vim is compiled with signs-support.  If it is, you can use signs, to define a background color for your text.

This plugin defines these Commands:
:Red Color the selected Range red
:White Color the selected Range white
:Yellow Color the selected Range yellow
:Blue Color the selected Range blue
:Green Color the selected range Green
:Black Color the selected range Black
:Custom1
:Custom2
Color the selected range with your defined Color1 or 2
Those 2 commands are only defined, if you have specified a color for this command.
You can define a custom color using the 2 variables g:bg_color_custom1 and g:bg_color_custom2

:Clear Clear the selected range
:ClearAll Clear the whole buffer of all background colors.

All commands (excep :ClearAll, which only uses the whole buffer) accept a range, on which they operate. So you can use, e.g. :%Red to color the whole buffer red.

I am not sure if this is really useful, but in case you find it usefull, please rate this plugin.
 
install details
simply put backgroundColor.vim in your plugin directory. (e.g. ~/.vim/plugin/) Create directories, that do not exist currently.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
backgroundColor.vim 0.1 2010-02-27 6.0 Christian Brabandt Initial upload
ip used for rating: 142.132.191.50

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github