c function 自動排版問題 - Linux

Table of Contents

用 gg=G 自動排版
可是 function 裡都是貼著最左邊
func()
{
if (1)
printf("hello world");
}

請問這要怎麼調呢?

--

All Comments

Mia avatarMia2012-12-31
{ 跟 fun 同行就沒問題
Odelette avatarOdelette2013-01-02
:set cindent
Dorothy avatarDorothy2013-01-04
有editor板