27/06/2008
rxvt-unicode 256 color support with vim
Following my previous post on minimizing the resources that urxvt needs on Gentoo, I tried applying some more patches to it that I found in Gentoo’s bugzilla.
Since that happened a few days ago there was no ebuild for version 9.05 yet. So I created one and applied the patch for the 256 color support.
Here’s my rxvt-unicode ebuild for version 9.05 with 256 color support: rxvt-unicode-9.05.ebuild.
So since I now have a terminal supporting 256 colors it’s time to make vim use it.
Following this guide for 256 colors in vim I made some tests.
Here are the screenshots:
rxvt-unicode without 256 color support displaying the output of 256colors2.pl:
rxvt-unicode with 256 color support displaying the output of 256colors2.pl:
rxvt-unicode without 256 color support with t_Co=8 using theme desert displaying 256colors2.pl
rxvt-unicode without 256 color support with t_Co=256 using theme desert displaying 256colors2.pl
rxvt-unicode with 256 color support with t_Co=256 using theme desert displaying 256colors2.pl
rxvt-unicode without 256 color support with t_Co=8 using theme desert256 displaying 256colors2.pl
rxvt-unicode without 256 color support with t_Co=256 using theme desert256 displaying 256colors2.pl
rxvt-unicode with 256 color support with t_Co=256 using theme desert256 displaying 256colors2.pl
rxvt-unicode without 256 color support with t_Co=8 using theme inkpot displaying 256colors2.pl
rxvt-unicode without 256 color support with t_Co=256 using theme inkpot displaying 256colors2.pl
rxvt-unicode with 256 color support with t_Co=256 using theme inkpot displaying 256colors2.pl
I am currently using desert256 with urxvt 9.05 with 256 color support of course 🙂
So with this unicode-rxvt ebuild I have a) unicode support b) tabs using fluxbox’s tab support c) 256 colors. I think that I currently don’t have any other wishes for a terminal.
My second terminal of choice, mrxvt still lacks unicode support 🙁
Filed by kargig at 02:14 under Gentoo,Linux
9 Comments | 43,618 views
Hey! I checked out your ebuild for the 256colors patch in 9.05 :). Works like a charm with the color test. Thanks!!!
You could just use the 88 colour mode it’s always supported, no patching required.
Why not use the 88 colour support that’s always been there, no patching required?
Well, since I can have 256 with a simple patch why stick at 88 ? I don’t mind patching if it doesn’t break anything else and as far as I am using it the patch works fine.
Me likes xterm.
Great article! Thanks.
This helped me add 256 color support to rxvt-unicode on Ubuntu. For those running Ubuntu, check out: http://scie.nti.st/2008/10/13/get-rxvt-unicode-with-256-color-support-on-ubunut
You might be interested in this vim script http://www.vim.org/scripts/script.php?script_id=2390
Tabs are also supported through the perl extension
URxvt.perl-ext-common:default,tabbed
@hello_world: Tab support of urxvt is pretty minimal…you can do more things with fluxbox’s tab support than with urxvt’s … but that’s probably a matter of personal taste as well…