More than 8 Color Vim Syntax Highlighting in GNOME Terminal

http://www.alfredrossi.com/?p=49

More than 8 Color Vim Syntax Highlighting in GNOME Terminal

filed in Uncategorized on Jun.27, 2009

Matt Wozniski wrote an awesome little Vim plugin called CSApprox that lets Vim transparently apply GVim colorschemes in the terminal. CSApprox works by approximating the color in the GVim colorscheme to the closest availble color in your terminal, provided that your terminal supports either 88 or 256 colors.

After downloading the plugin zip and extracting it to the ~/.vim directory, I was met with a rather disappointing message:

CSApprox skipped; terminal only has 8 colors, not 88/256
Try checking :help csapprox-terminal for workarounds

Don’t worry, GNOME Terminal isn’t actually limited to 8 colors, it just evades detection. We can easily force 256 color support by setting the t_Co option in ~/.vimrc .

1
set t_Co=256
Advertisements

2 thoughts on “More than 8 Color Vim Syntax Highlighting in GNOME Terminal

  1. Greetings! Quick question that’s coimpletely off topic.
    Do you know how to make ykur site mobile friendly? My website looks weird
    when viewing from my iphone. I’m trying to find a template
    or plugin that might be able to fix this issue. If you have any
    suggestions, please share. With thanks!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s