私は自分の関数を次のように書きます。
static int
foo_bar(const char *string)
{
}
Vim を使用してこれをインデントすると、次のようになります。
static int
foo_bar(const char *string)
{
}
の前に余分なスペースを追加しますstatic int
。どうすればこれを修正できますか?
私は自分の関数を次のように書きます。
static int
foo_bar(const char *string)
{
}
Vim を使用してこれをインデントすると、次のようになります。
static int
foo_bar(const char *string)
{
}
の前に余分なスペースを追加しますstatic int
。どうすればこれを修正できますか?
私はこれを最近見つけました:
http://thisblog.runsfreesoftware.com/?q=2009/04/20/indent-gnu-style-vim
これをvimrcに追加し==
、5行のインデントタイプが必要な場合は、 of と入力して再インデントします5==