sun <[EMAIL PROTECTED]> 写于 2007-04-15 17:27:28:
> Dear all,
>
> The question is:
>
> When I insert a line then <Esc> to edit other place, vim of C filetype
> delete the auto-indented space. But i want to keep the indent there
> for the future editing? Then how to make the auto-indent always insert
> the indent-space regardless whether the line is empty or not?
>
> I read the help file about the 'cpoption' option, it says 'set
> cpoption+=I' can avoid the indent deleting when move the cursor
> updown, but I can't let that work.
>
> Best Regards,
> sun

If you insert a line, and then go somewhere else, and then come back, you
can just type dd to delte the newly inserted line and type o to insert a
new line again. This is only 3 keystrokes and it solves all problem, your
indent come back.

Anyway, this behavior is good for avoid trailing blanks.

--
Sincerely, Pan, Shi Zhu. ext: 2606

Reply via email to