On 9/10/06, Benjamin Esham <[EMAIL PROTECTED]> wrote:
Yakov Lerner wrote:

> Laurent Birtz wrote:
>
>> 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'.
>
> 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)

I get this behavior with 7.0.94, but it's done this for as long as I can
remember (I've been using Vim since 6.2, I think).  I always just
assumed
that it was standard (if annoying) behavior.  Some relevant options
set are
autoindent, ts=4, sw=4, noet, and bs=2.

And actually, if I press 'o' on an indented line, press Enter a bunch of
times, and then Esc, /none/ of the newly-created lines are indented.

Yes with these two mappings mentioned earlier in this thread,
all lines are indented after o<Enter><Enter><Enter>:

                 :inoremap <Enter> <Enter><space><bs>
                 :nnoremap o o<space><bs>

Yakov

Reply via email to