On 2007-04-16, sun <[EMAIL PROTECTED]> wrote: > > The idea of the comment shown above was to leave something to > > remind you that > > you had to come back later, since, as you said, you want to leave the > > indent > > there "for future use"; also, the comment would be sure to stay in place > > even > > if the "bare indent" didn't. But if just adding, let's say, a period, then > > backspacing over it, makes the indent remain, then you don't have to type a > > lengthy comment unless you need it. > > > > You may even try (untested) > > > > :inoremap <CR> <CR>.<BS> > > > > Note: Next time, please use "Reply to all" rather than "Reply to sender", > > unless you're straying off-topic. > > > > Best regards, > > Tony.
> Do I need always type a char then <BS>? > Is there a better solution? I wander whether the vim option can do > this automatically. A better solution to what problem? If vim automatically indents properly when you add a new line, what difference does it make whether it leaves leading spaces in that line you left or not? If you want to leave a blank line and add properly indented text to it later, you can resume editing that line by typing S which should automatically move your cursor to the proper indentation. Regards, Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | Mobile Broadband Division | Spokane, Washington, USA