sun wrote:
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 type an arbitrary character, then delete it immediately, does the extra
whitespace stay in place when you move the cursor away? If it does, you may
resort to adding a placeholder comment, like:
function MyFunc()
{
/* TODO: code needed here */
};
Best regards,
Tony.
--
Nuke the gay, unborn, baby whales for Jesus.