Hi, On Tue, Aug 3, 2010 at 6:15 PM, John <[email protected]> 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, 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. > My first thought was to try added Shift-A to cinkeys, so it would > reindent the line before appending do it - but I couldn't get this to > work. > I could write a mapping I imagine, to check if the line is empty, and > if so delete it and go to the end of the previous line and 'press > enter' - but I figured vim might have a better solution. >
You can press CTRL-F in insert mode to re-indent the current line. This is described in the following help topic: :help i_CTRL-F - Yegappan -- 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 information, visit http://www.vim.org/maillist.php
