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 i
Hello,
* On Fri, Jun 23, 2006 at 08:34:23AM -0700, Max Dyckhoff <[EMAIL PROTECTED]>
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 eve
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
2, 2006 7:44 PM
> To: Max Dyckhoff
> Cc: vim@vim.org
> 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
; From: Tom Purl [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 23, 2006 10:17 AM
> To: Max Dyckhoff
> Cc: vim@vim.org
> Subject: Re: Script to create automatic case statements
>
> > The number of times that I write something like this in a day is
> > ridiculous
> 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 befor
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
I did a quick search of the interwebs for this, but came up blank. I was
wondering, before I go off and do it myself, if anyone has already made
or heard of a script to fill out C case statements for you.
The number of times that I write something like this in a day is
ridiculous:
switch (some_va