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.
--
.
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 :)
--
.
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
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.
--
.
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.
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.
--
.
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
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
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