How can I autoformat/indent C code in vim?

后端 未结 9 2479
青春惊慌失措
青春惊慌失措 2020-11-29 14:20

When I copy code from another file, the formatting is messed up, like this:

fun()
{
for(...)
{
for(...)
{
if(...)
{
}
}
}
}

How can I autof

9条回答
提交回复
热议问题