A little disappointed so far
Graham Nicholls
graham at rockcons.co.uk
Mon May 19 17:04:11 EDT 2003
Guy Middleton wrote:
> In article <NBmdnesebY8Gb1WjXTWcqg at comcast.com>,
> Terry Reedy <tjreedy at udel.edu> wrote:
>>
>> "Graham Nicholls" <graham at rockcons.co.uk> wrote in message
>> news:Mv2ya.4193$573.1871 at news-binary.blueyonder.co.uk...
>> > I find it easy in c to press % and jump to the bottom of a loop.
>> How can I
>> > do this for Python files. The increment was a legal, sensible
>> command, but
>> > not indented enough, so the loop
>>
>> By collapsing the intervening blocks down to a line or so. I
>> sometimes use the PythonWin editor which has little +s and -s in the
>> left column that, when clicked on, expand and collapse compound
>> statement blocks. This make it *much* easier to line up a statement
>> with one above that would otherwise be off the screen.
>
> Is there an editor on Unix that can do this? In particular, is there a
> way to get gvim to do it?
:(cursor motion string)fo
-eg to fold the next 20 lines
:.,+20fo
This is _nice_ so thanks whoever it was (and Bram, for Vim)
to delete the fold, move cursor to it and zd.
Theres more - :help fold is how I found these, after it had been pointed out
that vim did folding. Works in vim & gvim (of course)
Graham
--
Graham Nicholls
All round good guy.
More information about the Python-list
mailing list