Sun 20 Feb 2005

Cracking Vim tip

This is one that surprised me, which means it's a really good idea!

// vim: ts=4
Add comments like this to your source file to auto-set vim options.

Doesn't matter how you comment it, as long as nothing comes after it, so
/*
vim: ts=4
*/

or
# vim: ts=4
would work just as well.

As far as I know, you can add anything there that uses :set, so you could even do something like this:
// vim: ts=4 et noautoindent background=dark

From the Vim kung fu thread. Lots of other good stuff in there, too, for my fellow masters of the text-editor.

Posted at 2005-02-20 11:36:27 by RichardLink to Cracking Vim tip
Comments, trackbacks.

iPhoto and movies, Moleskines, and Simpsons

I'd better upgrade to iPhoto 5: it can handle the mini movies my cameras spit out. Sweet.

At work today I saw a woman use a Moleskine Memo Pocket as a wallet — that's where she kept her credit card. I think that's a pretty good idea… more capacious than a plain leather wallet.

Quote from the Simpsons:

Marge: this song has been going on for hours!

Homer: I know! It's like the Allman Brothers!

That show has genius scripts.

Posted at 2005-02-20 10:21:21 by RichardLink to iPhoto and movies,…
Comments, trackbacks.

Google
Web holygoat.co.uk
  • richard is: