To use it, source the file, then do :call HideFunctionDefs() to invoke the function, which will hide the bodies of the functions you don't care to see. The following example hides foo1, foo2, foo3, and foo4. function! HideFunctionDefs() if search("sub foo1") > 0 normal! jv%zf endif if search("sub foo2") > 0 normal! jv%zf endif if search("sub foo3") > 0 normal! jv%zf endif if search("sub foo4") > 0 normal! jv%zf endif endfunction If you bracket like this: sub foo { some code ... } Replace all instances of normal! jv%zf with normal! f{v%zf.
Attributes | Values |
---|---|
rdfs:label |
|
rdfs:comment |
|
Version |
|
dbkwik:vim/property/wikiPageUsesTemplate | |
Previous |
|
Category |
|
Author |
|
Complexity |
|
Created |
|
ID |
|
NEXT |
|
Rating |
|
abstract |
|