Re: Inverse Folding?

2006-12-03 Thread Vigil
On Fri, 1 Dec 2006, Tim Chase wrote: A similar stunt could be done to clear all folding, and then fold the two ranges 1,'- and '+,$ something like this untested vnoremap h :c-u1,'lt-foldbar'+,$foldcr That, combined with foldmethod=manual, is perfect. Thanks, Tim and Charles. -- .

Re: Inverse Folding?

2006-12-03 Thread Vigil
On Sun, 3 Dec 2006, Vigil wrote: vnoremap h :c-u1,'lt-foldbar'+,$foldcr That, combined with foldmethod=manual, is perfect. Thanks, Tim and Charles. Sooo... vnoremap h set foldmethod=manual | :c-u1,'lt-foldbar'+,$foldcr doesn't work :) -- .

Re: Inverse Folding?

2006-12-03 Thread Tim Chase
vnoremap h :c-u1,'lt-foldbar'+,$foldcr That, combined with foldmethod=manual, is perfect. Thanks, Tim and Charles. Sooo... vnoremap h set foldmethod=manual | :c-u1,'lt-foldbar'+,$foldcr doesn't work :) I think you want vnoremap h :c-uset foldmethod=manualbar 1,'lt-foldbar'+,$foldcr (on

Re: Inverse Folding?

2006-12-03 Thread Vigil
On Sun, 3 Dec 2006, Tim Chase wrote: vnoremap h :c-uset foldmethod=manualbar 1,'lt-foldbar'+,$foldcr What is the c-u for? I don't see any :help for it and ctrl-u just goes up a page normally, and clears the line to the left of the cursor in command mode. -- .

Re: Inverse Folding?

2006-12-03 Thread Tim Chase
vnoremap h :c-uset foldmethod=manualbar 1,'lt-foldbar'+,$foldcr What is the c-u for? I don't see any :help for it and ctrl-u just goes up a page normally When in visual mode, when you press the colon, Vim prepopulates the command-line with ','. The ^U clears the line of that text.

Re: Inverse Folding?

2006-12-03 Thread Vigil
When in visual mode, when you press the colon, Vim prepopulates the command-line with ','. The ^U clears the line of that text. Aha, thanks. -- .

Inverse Folding?

2006-12-01 Thread Vigil
Because I often want to concentrate on a small section of code in a large script, and because my terminal window is large, I wondered if it was possible to select some text and have all other text, ie. the surrounding text, fade out in colour, or use a darker colour or something, so that when I

Re: Inverse Folding?

2006-12-01 Thread Charles E Campbell Jr
Vigil wrote: Because I often want to concentrate on a small section of code in a large script, and because my terminal window is large, I wondered if it was possible to select some text and have all other text, ie. the surrounding text, fade out in colour, or use a darker colour or

Re: Inverse Folding?

2006-12-01 Thread Tim Chase
Because I often want to concentrate on a small section of code in a large script, and because my terminal window is large, I wondered if it was possible to select some text and have all other text, ie. the surrounding text, fade out in colour, or use a darker colour or something, so that when I