sponsor Vim development Vim logo Vim Book Ad

AfterColors.vim : Provides support for after/colors/ scripts

 script karma  Rating 49/22, Downloaded by 2526  Comments, bugs, improvements  Vim wiki

created by
Peter Hodge
 
script type
utility
 
description
Allows you to create an after/colors/ script for customizing any colorscheme.

-- EXAMPLE --
If you like the 'desert' colorscheme, but you really want comments to be red and functions to be blue, previously you would copy the entire colorscheme into your home directory and customize it.  With this plugin installed, you can create a small script to change just the parts you want for that colorscheme, exactly how you would for an ftplugin or syntax script:

For unix systems you would create:
  ~/.vim/after/colors/desert.vim:
    highlight Comment guifg=Red ctermfg=Red
    highlight Function guifg=Blue ctermfg=Blue

On windows you would create:
C:\Documents and Settings\Peter\vimfiles\after\colors\desert.vim:
    highlight Comment guifg=Red ctermfg=Red
    highlight Function guifg=Blue ctermfg=Blue


-- VERSION 6 WARNING --
If your Vim is older than version 7, then the after/colors scripts will only be loaded once when Vim starts.  This will not be a problem if you choose your colorscheme in your .vimrc file, but if you change your colorscheme after vim has loaded then your after/colors scripts will be ignored.  This is not an issue in Vim 7.


In case of problems, you can email me: <toomuchphp-vim at yahoo.com>
 
install details
1) Put AfterColors.vim in ~/.vim/plugin/ or $HOME\vimfiles\plugin\
2) Create your colorscheme customizations in after/colors/<colors_name>.vim
3) Create global customizations (for all colorschemes) in after/colors/common.vim
 

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
AfterColors.tar.gz 1.3 2008-05-12 6.0 Peter Hodge Added checks for required vim version and features
AfterColors.tar.gz 1.2B 2006-11-26 6.0 Peter Hodge Can now load after/colors scripts in Vim 6, but only on startup, provided you choose the colorscheme inside your .vimrc script.  (Sorry, version 1.2 had a bug in it which broke in Vim 7, 1.2B is fixed.)
AfterColors.tar.gz 1.2 2006-11-26 6.0 Peter Hodge Can now load after/colors scripts in Vim 6 (but only on startup, provided you choose the colorscheme inside your .vimrc script).
AfterColors.tar.gz 1.1 2006-08-24 7.0 Peter Hodge Now looks for customizations in 'after/colors/common.vim' for all colorschemes. Thanks to Vincent Wang for this suggestion.
AfterColors.tar.gz 1.0 2006-08-23 7.0 Peter Hodge Initial upload
ip used for rating: 3.141.31.209

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