RE: Script to create automatic case statements

2006-06-24 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 i

Re: Script to create automatic case statements

2006-06-24 Thread Luc Hermitte
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

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-23 Thread Max Dyckhoff
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

RE: Script to create automatic case statements

2006-06-23 Thread Halim, Salman
; 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

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 befor

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