0

In insert mode, scope indentation is not taken into account if I navigate rows during insert mode. Example:

enter image description here

In such a case, if I would press the up arrow key, Vim would place my caret at the start of the 19th line:

enter image description here

But I would instead prefer:

enter image description here

What can I do to have this behaviour?

1 Answer 1

0

The reason arrow keys don't indent is the indentation does not actually exist and is not created on movement. Instead, use normal mode.

Rather than pressing arrow keys, press O to make a new line.

Alternatively, on the new line, press escS

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.