Adam Leventhal's blog

Search
Close this search box.

open challenge: vim for DTrace

November 2, 2004

Inspired by the Ansari X-Prize, I thought I’d start issuing open challenges to the community of DTrace and Solaris users. This isn’t because I hate you, or even because I like you necessarily: it’s because I’m lazy. Or if not lazy, at least busy. So my first open challenge is this:

vim for .d files

The following are required of a winning entry

  • syntax hi-lighting of keywords, built-in functions, aggregations, etc.
  • smart commenting (when I hit return I want ' * ')
  • other fancy stuff
  • easy for me to install (again, I’m lazy, impatient, busy, etc.)

There’s no prize, but I’ll certainly voice my appreciation as loudly as appropriate. Submissions for emacs will be accepted, but I will extoll its virtues with less passion. If this works out, I’ll come up with tougher challenges and maybe real prizes. In some not-too-distant future, I hope to get OpenSolaris running on my TiVo — I promise a prize for that 🙂

2 Responses

  1. Here’s a start I made about a year ago:

    http://www.comfychair.org/~duvall/d.vim

    Just put it in <code>~/.vim/syntax</code>, and add

    augroup filetypedetect
    autocmd BufNewFile,BufRead *.d setf d
    augroup END

    to <code>~/.vim/filetype.vim</code>. It’s not self-installing code, but that’s probably more than you really need. No commenting, but that doesn’t belong in the syntax file anyway. 🙂

  2. hmm… when I said “easy” I wasn’t kidding. I couldn’t get your stuff to work. I’m happy to try to get it working, but that may disqualify you from your non-existant prize…

Recent Posts

January 13, 2024
December 29, 2023
February 12, 2017
December 18, 2016
August 9, 2016

Archives

Archives