Brad's Blog

Published: 2012-11-12

Vim: Jumping around!

editor unix vi vim

So what happens when you open a file in vim, and you're presented with lots of content? Say, 5000 lines of something. Well, I typically start searching for things: /keyword. That works great when you know what you're looking for. But it breaks down quickly when you don't. So, today's vim post is about moving faster through pages of text. Jumping to a line number I have line numbers turned on by default (:set nu, if ...

Published: 2012-11-04

Let's be a better vim user

editor programming unix vim

It's November. For many, that means a month of writing (NaNoWriMo). For others, that's a month of cultivating a fine moustache (Movember). I, however, am making an effort to become a better vim user. Call it NoVIMber or VIMmember or whatever. I'll try to periodically blog about what I'm doing, but I'm not making any promises (other than to force myself to be more productive). I've been using vim for a long time (since ...

Published: 2010-06-09

Vim Syntax highlighting for Apache Config Files

apache django vim

I use Django with Apache and mod_wsgi. Each project that I work on has different apache config files, so I like to keep those in the same mercurial repo that contains my django project's code.For some time now, it's been bugging me that vim doesn't do syntax highlighting for those apache configs (nor the wsgi files). I finally decided to do something about it, and I'm glad I did, because it's a fairly simple ...