Vim: Smart indent when entering insert mode on blank line?
Posted
by TheDeeno
on Stack Overflow
See other posts from Stack Overflow
or by TheDeeno
Published on 2010-06-09T05:58:21Z
Indexed on
2010/06/09
6:02 UTC
Read the original article
Hit count: 233
When I open a new line (via 'o') my cursor jumps to a correctly indented position on the next line. On the other hand, entering insert mode while my cursor is on a blank line doesn't move my cursor to the correctly indented location.
How do I make vim correctly indent my cursor when entering insert mode (via i) on a blank line?
© Stack Overflow or respective owner