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.

--
Benjamin D. Esham
[EMAIL PROTECTED]  |  AIM: bdesham128  |  Jabber: same as e-mail
“...when two opposite points of view are expressed with equal
intensity, the truth does not necessarily lie exactly halfway
between them. It is possible for one side to be simply wrong.”
                                               — Richard Dawkins

Attachment: PGP.sig
Description: This is a digitally signed message part

Reply via email to