Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
関数のスコープ、つまり{...}をVimで表示する方法はありますか?私はEclipseADTを使用していますが、それが可能であり、非常に優れた機能であることがわかりました。
関数スコープを確認する1つの方法は、folding(:help fold)を使用することです。このfoldcolumnオプションは、foldがどこにあるかを表します。
:help fold
foldcolumn
もう1つの便利なスコープ機能は[{、と]}です。これは、次のレベルの中括弧に前後にジャンプします。
関数のスコープの制限がわからない場合のもう1つの便利な方法は、関数を小さくすることです:-)