login
v2
v1

jmoiron.net

Misc notes on Gtk & ViM

posted February16th, 2005 @ 06:02:46

- tags: development , general tech , linux

- comments: 0

Been using ViM for a while, and decided to use the X version (gViM) for my Java class. The X version comes with a fairly gorgeous color theme, and I wanted it to actually come up every time I used it. I searched quickly for some way to do this in the GUI, but since its Vim I figured (rightly) that most things were done through the RC file. A little research on the Vim irc wiki got me a few options that I've wanted for a while, so I figured I'd share them:

in .vimrc: set whichwrap+=<,>,h,l in .gvimrc colorscheme desert

The first line allows your arrow keys (and directional keys, and backspace) to wrap across lines; the second line will set your default colorscheme to "desert", which is the theme pictured in my screenshot. Looks like I have another couple files to keep on my USB stick!

The other thing I wanted to quickly discuss is the gtk-qt-engine project which is developing a Gtk engine that renders everything through Qt. It actually doesn't do much to make me think that I am running Qt apps; I guess I just never really paid attention to the way my apps look (I always have tried to configure Qt and Gtk to look relatively similar), but the theme actually works fairly well. I was looking for speedups, but I didn't notice anything too glaringly obvious; menu's seem to work a bit faster on my aging machine, but programs still feel a little slower than they should.

As for bugs, they seem mostly due to whichever theme you are using; a particular annoying one is that some Qt themes feature the "double arrow" at the bottom of scroll bars, and this double arrow gets rendered on Gtk apps even though Gtk does not account for its presence. Still, they've done a pretty decent job; If only someone could go through and optimize some of these libraries; it's a real shame that we'll forever be creating features instead.

comments