Reputation: 3355
Is there any way to show the function's scope, I mean {...}, in Vim? I use Eclipse ADT, and found that it can do it and it is a very good feature.
Upvotes: 1
Views: 988
Reputation: 49108
One way to see function scope is to use folding (:help fold
) and the foldcolumn
option will provide a representation of where the folds are.
Another useful scope feature is [{ and ]}, which jump backward and forward to the next level of braces.
The other useful method if you're having trouble seeing the limits of a function's scope is to make your functions smaller :-)
Upvotes: 1