Sunday, April 22, 2012

Syntax highlighting...

I have a few hundred text files, mostly documentation, and all of them
basically have the following structure:

| 1. first section
| ...
| 2. second section
| ...
| etc..

I would like to have Vim automatically create folds so that I could use
the usual 'z' commands to easily collapse 'first', 'second'.. above, for
a quick overview of the contents..

Any way I can do this using Vim's native folding capabilities..?

CJ

P.S. I'm NOT interested in outliner plugins, writing a parser and even
less spending the next couple of weeks manually adding markers to all
these files. :-)

--
HOW ARE YOU GENTLEMEN?

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment