4
4

2 回答 2

6

Instead of autoindent, use smartindent. It does exactly what you're looking for.

于 2011-12-08T02:01:05.007 回答
0

You could try turning cindent on. There are a huge number of options available for controlling how it works, see :help cinoptions-values.

于 2011-12-08T19:40:44.320 回答