RE: Script to create automatic case statements

2006-06-25 Thread Hari Krishna Dara
On Fri, 23 Jun 2006 at 7:42pm, Gerald Lai wrote: On Fri, 23 Jun 2006, Max Dyckhoff wrote: If there are many values for the enum then I will generally jump to the tag and do as you do; copy the values and do an :s on them. What I was wondering though was basically can I make vim insert

Re: Script to create automatic case statements

2006-06-23 Thread Tom Purl
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

RE: Script to create automatic case statements

2006-06-23 Thread Max Dyckhoff
Subject: Re: Script to create automatic case statements What I would really like is to just do the ^N on the initial _some_root, see that the popup menu shows the correct four values, and press some key combo to insert them all on consecutive lines like above. I'm not even fussy

RE: Script to create automatic case statements

2006-06-23 Thread Gerald Lai
On Fri, 23 Jun 2006, Max Dyckhoff wrote: If there are many values for the enum then I will generally jump to the tag and do as you do; copy the values and do an :s on them. What I was wondering though was basically can I make vim insert every entry from the ^N popup menu?, which is listing all

Re: Script to create automatic case statements

2006-06-22 Thread Tim Chase
What I would really like is to just do the ^N on the initial _some_root, see that the popup menu shows the correct four values, and press some key combo to insert them all on consecutive lines like above. I'm not even fussy if it inserts the case and the :, I can very easily do them myself with