Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Automated way to convert a vim GUI color scheme to work with 256 color vim?

I have a GUI-only vim color scheme that I would like to convert to a 256 color version. Is there an automated way to do this?

Googling only found http://www.vim.org/scripts/script.php?script_id=1809 which didn't work for me (the colors turned out completely wrong) and isn't really meant to do a conversion to be saved and reused, but rather it's for on the fly conversion.

like image 479
Mike Crittenden Avatar asked Jan 24 '11 08:01

Mike Crittenden


2 Answers

You can use CSApprox which is a plugin converting GUI color schemes to terminal color schemes.

I have tried it once or twice and the result was acceptable.

like image 58
Xavier T. Avatar answered Nov 12 '22 18:11

Xavier T.


I'm using gnome-terminal and simply adding

set t_Co=256

to my .vimrc file made all the difference

like image 1
poulter7 Avatar answered Nov 12 '22 20:11

poulter7