After adding a line with "o" (on an indented line with "autoindent" on)
then (while being in INSERT mode) using "^O" to enter a NORMAL mode command
the cursor jumps back to the beginning of the line (erasing the indent),
and will not return to the starting position after immediately pressing ESC
(i.e. "o^O<ESC>").
This behavior is not observed, if - indenting to the same cursor position -
the same keys are pressed (i.e. "<white_space>+^O<ESC>"). In this case the
cursor's position is unchanged.
Is this behavior intended?
Intended or not, it makes writing code difficult, as you have to know how
you got here ("o" vs. indenting) i.e. the behavior is different.
mode() shows "i" in both cases.
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/d4c174ad-3dcb-4dbc-9cc9-a1d5583c7e02n%40googlegroups.com.