From: Alex Young Date: 2006-05-29T04:12:59+09:00 Subject: Re: Automatic code generation in vim. Minkoo Seo wrote: > I've tried snippet magic, but I can't figure out how to use. As an example, > when I type 'forin' it expands like > > for element in collection > element. > end > > and my cursor is at 't' of 'element*t*'. And the status of vim is > command-mode. > (The mode after key is pressed) > > Now, what I have to do? Because my cursor is at 't' of 'element', I can't > change > the name of element using 'cw'. I just stuck. caw should do what you want, I think? Surely it's collection that you want to change the name of, though? I mean, in a for loop, the inner loop variable name is less likely to be important than the collection name? -- Alex