> The number of times that I write something like this in a day is
> ridiculous:
>
> switch (some_variable)
> {
> case _some_root_wibble:
> case _some_root_wobble:
> case _some_root_jelly:
> case _some_root_on_a_stick:
> }
>
...
>
> Has anyone seen something to do this before, or does anyone have any
> ideas about how to implement this?
The "Perl Support" vim plugin has some shortcuts for creating "if"
statements and such. You may want to check out how the author of that
script did it.
Hope that helps!
Tom Purl