On 9/10/06, Laurent Birtz <[EMAIL PROTECTED]> wrote:

> Can you try this to see whether it does what you want ?:
>         :imap <Enter> <Enter><space><bs>
>
I get the following behavior:

When I press 'o', it starts an empty line correctly indented. If
I press 'escape' immediately, the indentation is removed and the
cursor moves to column 1. If I press 'enter' instead, the
indentation is removed for the first line, but the subsequent lines
remain indented when I finally press 'escape'. Picture:

if(1 < 2)
{
        int i; // press 'o' here.
.              // press 'enter' here: not correctly indented.

Correctly indented here for me, after o<Enter>.

Somewthing is wrnog either with eyour settings,
or with vim version. You didn't answer my question
regarding your vim version (:version)

Yakov

Reply via email to