sponsor Vim development Vim logo Vim Book Ad

guicolorscheme.vim : auto convert gui-only colorschemes to 88/256 color terminal schemes

 script karma  Rating 167/78, Downloaded by 11761  Comments, bugs, improvements  Vim wiki

created by
aaron griffin
script type
I'll admit, I don't use gvim, except on Windows machines.  When I'm at a terminal, I'm in front of a 88 or 256 color terminal 90% of the time.  Because of this, I have lots of fancy color options, but my vim setup doesn't take advantage of them well because most interesting color schemes are made for gvim and not console vim.  Sure, inkpot, desert256, and a handful of others work nicely, but the choices are so limited.

Enter GuiColorScheme.  This script converts, as best it can muster, the gui-specific parts of a colorscheme into color numbers for 88 and 256 color terminals (it should also still support gvim as well).

   :GuiColorScheme <color scheme name>

Tab completion works exactly like the completion for the :colorscheme command, so you can use it to browse through your colorschemes.

For good measure, a screenshot, showing gvim and putty (in 256 color mode):
install details
Drop this file in ~/.vim/plugin/

:GuiColorScheme <scheme>
Tab completion works (or should) exactly as :colorscheme does

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
guicolorscheme.vim 1.2 2009-03-10 7.0 aaron griffin Fixes from Dominique Pelle: support indented hilight stanzas, and clear current hilights before resetting
guicolorscheme.vim 1.1 2007-11-20 7.0 aaron griffin Update to handle gvim appropriately, by simply setting the colorsheme if we're in gui mode
guicolorscheme.vim 1.0 2007-02-27 7.0 aaron griffin Initial upload
ip used for rating:

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