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
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
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
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
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