o, RET, and indentation

Keshav Kini keshav.kini at gmail.com
Thu Nov 21 20:37:12 CET 2013


Hi,

It seems that the behavior of the o key in normal state is a bit
different from Vim.  Suppose you have the following text in a file,
where '$' indicates the end of a line and not a literal '$' character:

foo$
    bar$

Then, positioning the cursor on the second line in Vim's normal mode and
typing o results in the following:

foo$
    bar$
    $

Now, typing RET results in the following:

foo$
    bar$
$
    $

On the other hand, in evil-mode you have this:

foo$
    bar$

↓

foo$
    bar$
    $

↓

foo$
    bar$
    $
$

Is this a bug?

Thanks,
    Keshav




More information about the implementations-list mailing list