Reindenting an empty line using cindent and cinkeys?

2010-08-03 Thread John
Hi all, I've searched old indenting posts but not yet found the answer I seek to this one. When I'm editing code and press enter, it maintains my indent level as it adds a new line. If I press escape, it removes that whitespace, presumably to avoid having lines with nothing but whitespace - and th

Re: Reindenting an empty line using cindent and cinkeys?

2010-08-03 Thread Ivan S. Freitas
> If I press escape, it removes that whitespace, presumably to avoid > having lines with nothing but whitespace - and that's great.  But when > I want to recommence coding on that blank line, I'd like an easy way > of regaining the indentation it had before I pressed escape. One quick'n'dirty tri

Re: Reindenting an empty line using cindent and cinkeys?

2010-08-04 Thread John
Thanks Ivan, reading the help I'm unsure whether or not it was meant to act this way, but 'cc' does indeed work perfectly! Brilliant! Thanks so much! -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more informatio

Re: Reindenting an empty line using cindent and cinkeys?

2010-08-05 Thread Yegappan Lakshmanan
Hi, On Tue, Aug 3, 2010 at 6:15 PM, John wrote: > Hi all, > > I've searched old indenting posts but not yet found the answer I seek > to this one. > When I'm editing code and press enter, it maintains my indent level as > it adds a new line. > If I press escape, it removes that whitespace, presum

Re: Reindenting an empty line using cindent and cinkeys?

2010-08-11 Thread John
Thanks Yegappan, yep, this would indeed work too - though in my case I've already mapped i_CTRL-F to i_CTRL-X_CTRL-F, so I'll stick with cc. Cheers, John -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more informa

Re: Reindenting an empty line using cindent and cinkeys?

2010-08-11 Thread Joan Miquel Torres Rigo
2010/8/4 John : > Thanks Ivan, reading the help I'm unsure whether or not it was meant > to act this way, but 'cc' does indeed work perfectly!  Brilliant! > Thanks so much! Another solution: If I underestood you correctly, 'ddko' does exactly what you want. Regards. -- Joan Miquel Torres___