在大型PHP应用程序中,我想折叠当前块中的所有代码块,但不是当前块本身。例如:VIM:折叠当前块内的所有代码块
if ($something) {
if ($another) {
// some code;
}
| <--THIS IS MY CURRENT CURSOR POSITION
if ($yetAnother) {
// more code;
}
if ($stillAnother) {
// yet more code;
}
}
我如何可以折叠的三个内部if
秒,但没有外if
?
谢谢!
您是否已经在使用foldmethod = syntax/indent? – sehe 2012-01-04 22:37:21