Vim: Smart indent when entering insert mode on blank line?

cc will replace the contents of the current line and enter insert mode at the correct indentation – so on a blank line will do exactly what you’re after.

I believe that the behaviour of i you describe is correct because there are many use cases where you want to insert at that specific location on a blank line, rather than jumping to wherever vim guesses you want to insert.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)