在大型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