Saturday, January 9, 2010

Folding Vim's help files.

The latex-suite help files provide per-section folding making it both
pleasurable and effective to read them 'cover to cover' in Vim.

It's as simple as ':h latex-suite' + 'zm', and you're presented with an
outline that fits on one screen, giving you a clear picture of the
structure of the document, with the added merit that navigating to a
given section, 'zo' to open it, and 'zc' to close it when done is a
matter of only a few key strokes.

Compliments to Srinath Avadhanula, who per the help file implemented
this. This is the very first time I feel comfortable reading complex
documents on a computer screen.

I'm currently reading the VIM USER MANUAL and I was curious whether
I could implement something comparable, without adding some modeline
magic to the files in $VIMRUNTIME/doc/.

Thanks,

CJ

No comments: