sponsor Vim development Vim logo Vim Book Ad

xterm16.vim : An adjustable contrast color scheme for GUI and 8, 16 or 256 color terminals.

 script karma  Rating 610/368, Downloaded by 7915    Comments, bugs, improvements  Vim wiki

created by
gi1242 gi1242
 
script type
color scheme
 
description
An adjustable contrast fully customisable color scheme for GUI & 8, 16 or 256 color terminals, designed to minimise eyestrain. The main features are:

- Four color maps:
    'allblue'   : A colormap with most foreground colors blueish (to
          minimize contrast etc.)
    'soft'      : A colormap with foreground colors of similar
          intensities to reduce eyestrain.
    'softlight' : A colormap with a bright background (for web
          hosting etc.)
    'standard'  : A colormap for use on terminals with only 8/16
   colors.
  The first three colormaps will work only on 256 color capable
  terminals or the GUI. The last one will work anywhere.

- Adjustable brightness / contrast. Lets you easily adjust the
  brightness and contrast settings. Extremely useful (for instance)
  when there is a glare on your monitor, or for long late dim light
  dim light late at night :)

- Terminal and GUI support. If you use xterm, rxvt or mrxvt (compiled
  with 256 colors), then the colors on your terminal will be almost
  identical to your GUI colors. On any other terminal emulator, a few
  scripts (included) and parts of this help are designed to help you
  get the colors you want.

- LCD / CRT Monitor support. The color response of LCD and CRT
  monitors is pretty different. This color scheme has an option to
  adjust colors on CRT monitors to give a similar appearance.

- Customizable colors. If you find any color unreadable or ugly, you
  can change it easily. When adjusting the brightness, your custom
  colors will be suitably adjusted too!

- Customizable highlighting groups. If you don't like the highlighting
  of any particular group, you can change it to suit your needs. This
  is useful for instance if you want the cursor to be brighter than
  everything else / etc.

The first screenshot below is also the complete documentation and description.

Screenshots:

http://www.math.cmu.edu/~gautam/per/opensource/xterm16/xterm16-doc.html [Complete documentation and description]
http://www.math.cmu.edu/~gautam/per/opensource/xterm16/xterm16-src.html [HTMLised source]
http://www.math.cmu.edu/~gautam/per/opensource/xterm16/c-source.html [HTMLised C code]
http://www.math.cmu.edu/~gautam/per/opensource/xterm16/timestamp-doc.html [Another VIM help file]
http://www.math.cmu.edu/~gautam/per/opensource/xterm16/email.html [HTMLised email]
http://www.math.cmu.edu/~gautam/per/opensource/xterm16/mrxvt.png [Transparent background in mrxvt]

(On javascript enabled 'good' browsers, you should be able to adjust the Brightness, colormap and monitor type in each of the HTMLised screenshots above.)
 
install details
For local installation, put the |xterm16.vim| file in your ~/.vim/colors directory. To install globally put it in $VIMRUNTIME/colors. Finally add the following lines to your {.vimrc}: >

    " let xterm16_brightness = 'default'     " Change if needed
    " let xterm16_colormap = 'allblue'       " Change if needed
    colo xterm16

If you want to change the default colors on your terminal (to match those in the screenshots) look at the file "xterm16.txt" (in Vim if you want it to look pretty) for details. (You can also view it online at the above links)
 

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
xterm16-2.43.tbz2 2.43 2006-09-12 7.0 gi1242 gi1242 Added highlighting groups for the Tab line (thanks to Paddy Newman).
xterm16-2.42.tbz2 2.42 2006-05-18 7.0 gi1242 gi1242 Fixed glaring documentation error (should set t_Co=256, and not 16). Minor highlighting group bugfixes.
xterm16-2.41.tbz2 2.41 2006-04-16 7.0 gi1242 gi1242 Minor changes to highlighting groups: Added cursorline & cursorcollumn (thanks to Georg Dhan for pointing this out). Also made sure that Comments are a different color than other highlighting groups in the 'allblue' colormap.
xterm16-2.4.tbz2 2.4 2006-04-04 7.0 gi1242 gi1242 Added an "allblue" colormap (makes all foreground colors a shade of blue). Also added a "softlight" colormap with light background for webhosting. Added syntax items for Vim7 (is still backward compatible to vim6.4)
xterm16-2.2.tbz2 2.2 2005-06-04 6.0 gi1242 gi1242 Now fully supports rxvt and mrxvt when compiled with 256 colors. Included an option for transparency with mrxvt. Added a perl script to make changing colors on 16 color terminals easier. Few minor color modifications (StatusLine, StatusLineNC). I mainly wrote this so I can switch to mrxvt with transparency without changing my precious colors :)
xterm16-2.1.tbz2 2.1 2004-11-15 6.0 gi1242 gi1242 Improved version to support adjustable brightness and contrast, CRT / LCD monitors. Includes a new 'soft' colormap, where all foreground colors are of almost 'equal' intensity for long late night coding sessions. This version takes advantage of xterm's color support. If you use xterm (compiled with 256 colors), then this script can adjust the colors automatically (without making you mess with .Xresources etc). [Ofcourse, it works on other terminals / GUI too].
xterm16.tbz2 1.3 2003-11-26 6.0 gi1242 gi1242 Changed the Diff / Fold highlighting groups. Added files to change default colors of ctheme (thanks to Juhapekka Tolvanen) and rxvt.
xterm16.tbz2 1.2 2003-11-06 6.0 gi1242 gi1242 Added support to remap the unreadable darkblue on the linux console. Disabled HTML groups from using cterm attributes and used colors instead. Added options to customise GUI colors. All options added here can be disabled.
xterm16.tbz2 1.1 2003-11-04 6.0 gi1242 gi1242 Minor Changes to highlighting groups. Now includes files to change colors on xterm, konsole or gnome-terminal to make the red / dark blue colors more readable.
ip used for rating: 54.196.57.4

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.
   
SourceForge.net Logo