PSU uses emacs?
Alex Martelli
aleaxit at yahoo.com
Fri Jan 19 17:04:25 EST 2001
"D-Man" <dsh8290 at rit.edu> wrote in message
news:mailman.979929746.2047.python-list at python.org...
> On Fri, Jan 19, 2001 at 05:55:45PM +0100, Alex Martelli wrote:
[snip]
> | nice to have movement commands based on indent-levels, but, to be
> | quite honest with you, I've never bothered programming them...
>
> I'd like this too. In C/C++/Java it is nice to type "%" to jump
> between begin and end of blocks.
Guess I've found a project on which to use gvim's Python
programmability...
> | (shame's about to engulf me...). I like :set expandtab always
> | on -- no tab/space confusion; I also like :set ff unix, so that my
> | scripts can be shared between Win and Unix machines (and why
> | waste one byte per line to tell a 'carriage' that is not there
> | to 'return' [to where?]...?!-).
>
> Exactly. DOS/Windows never did operate from a teletype did it? I
No, but QDOS strictly imitated CP/M (rumor has it that it was little
more than an 8086 reassembly of a disassembly of CP/M...) which
in turn took most of its conventions from an Intel OS which in turn
got them from some Digital Equipment one (I ain't kidding...!).
> | may have inserted, :%s/^Q^M// is what one types (with ^ to mean
> ^
> What does the % mean here? I usually use :g/^V^M/s/// (working on NT
> or in cygwin's console vim).
:%s means to do the substitution on all lines (I know it always did
in all vi's, and I think it also always did in ex's). Note how many
keystrokes it saves compared to your chosen idiom!-)
Alex
More information about the Python-list
mailing list