autoindent is set, and you have the buffer below. Note the cursor is represented as
for i in range(1, 6): print(i)I
When you hit Enter key, you get this.
for i in range(1, 6): print(i) I
Question: is there any simple way to move the cursor back to the place before the press of Enter key? These are solutions but too complicated:
- Five presses of backspace key
- Ctrl+d (decrease indent by one) and one press of backspace
- Esc (exit insert mode) and k (move cursor up) and Shift+a (append to current line).
If it is possible, I would like to realize that without exiting insert mode. In the other words, I would like to avoid Esc, Ctrl+o (execute one normal command), and so on.