(The following is Google Translate, please forgive me for the misconduct)
How do I automatically indent after “:”, like the following,
if true: |
CR
if true:
|
(The following is Google Translate, please forgive me for the misconduct)
How do I automatically indent after “:”, like the following,
if true: |
CR
if true:
|
The smalest way to do that (replace 4
with wanted indenation level):
:set indentexpr=(getline(v:lnum-1)=~':$')*4