vim + konsole
I’ve recently been teaching myself vim, and it’s amazing how much faster coding is already! Just moving around a document is so much more efficient when you don’t have to resort to a mouse.
I’ve been using the non-gui version of vim in konsole, partly because I can’t “cheat” with the mouse this way, and partly because it’s so much cooler having a “native” kde-style vim that fits in with font styles of the rest of my system automatically.
Update: I should have guessed it was possible given vim’s flexibility, but enabling mouse support is as simple as:
set mouse=a
Still, I’m leaving it disabled for learning purposes.
Anyway, I’ve spent some time learning how vim and konsole can work together, so I thought I would document it somewhere.
First, how do you get cool gvim colour schemes working in konsole? Get CSApprox, a very clever little vim script that will translate a colour scheme designed for gvim, and approximate it in the 256 colours available to you in the konsole.
For vim + konsole, you also have to tell vim that it can use 256 colours (by default it only thinks it can use 8, thus colours won’t work properly). So add to your ~/.vimrc:
set t_Co=256
Then I found an awesome theme called darkspectrum, and now my vim experience really rocks.
Another advantage of konsole over gvim is that fullscreen vim is only a <ctrl> + <shift> + <f11> away. Sweet!
Tags: kde, konsole, programming, vim