CSApprox

Probably the coolest VIm plugin since netrw, welcome CSApprox! Just put this in your .vim/plugin and away you go with completely transparent and automatic 256 color themes for your terminal vim that look amazingly not unlike the GUI versions of those themes. Just make sure your terminal properly reports 256 colors, and that your vim binary is compiled with gui support (debian flavors do this, but apparently not red hat flavors). If either of these are missing it will give you a little message and delay opening vim, if this is a problem you might want to suppress that output.

I also highly recommend enabling 256 colors via Xresources rather than setting TERM=xterm-256color, this will save headache when sshing in from a less fine terminal or when logging in at the console. A quick google turns up plenty of info on how o set your Xresources with one caveat; if you use uxterm like any sane person would, you need s/Xterm/UXterm/. I’ve also found cases where I need xterm as well, so I simply put all three in there to be safe.


          Xterm*termName: xterm-256color
          UXterm*termName: xterm-256color
          xterm*termName: xterm-256color

Ah. Very nice! .Xresources is a much better way to handle the terminal colors. However, what if you don't have X installed?
28 Nov 05:51 by … Aaron aaron dot toponce at gmail dot com

If you don't have X installed, then it's safe to say you aren't in X, and thus not running and xterm. If there's a way to get 256 colors in a vt (e.g. ctrl-alt-F1) I'd be glad to know it. If you're talking about running a term on a remote X server, the .Xresources on the remote X apply, which is exactly what you want. Another reason the .Xresources is a good way to go.
03 Dec 09:51 by … vontrapp

Post a comment

Website and email are optional. Email will be displayed user at example dot com.