Tip #240: Hideall for Vim
tip karma |
Rating 10/6, Viewed by 667
|
created: |
|
May 2, 2002 8:28 |
|
complexity: |
|
intermediate |
author: |
|
Wenzhi Liang |
|
as of Vim: |
|
6.0 |
Xemacs has a hide all function which can make all the function in your C file a fold and close them. And here is something small to achieve similiar under Vim.
func! HideAll()
syn region myFold start="{" end="}" transparent fold
syn sync fromstart
set foldnestmax=1
set foldmethod=syntax
endfunc
amenu Whatever.Hide\ all :call HideAll()<CR>
<<Scroll using arrow keys like browser: map shift-up and shift-down |
"Hide" Folding Markers >>
Additional Notes
|