[Tutor] What has Editor X got that PyWin32 hasn't?
ALAN GAULD
alan.gauld at btinternet.com
Wed Aug 13 17:50:28 CEST 2008
> If I want to delete 10 lines of code, 10dd does it.
> If I want to change a word, cw. If I want to change
> several words, the number of words followed by cw.
Yes thats what I mean about consistency.
10dd - delete 10 lines
10cc - change10 lines
10yy - yank(copy) 10 lines
etc...
I rarely use the numbersthough becase the magic feature for me is the range commands.
/fromstr/,/tostring/<cmd>
applies cmd to the range of lines containing fromstr to the next
line containing tostring
And cmd can be almost any editing command.
similarly you can apply commands to only those lines
containing a given string.
Also rectangular mode is great for messing with
comments (almost essential in assembler code!)
etc etc etc....
However I'll stop here because its got little
to do with python and the vim advocacy pages have
more than enough of this kind of promo material :-)
Although of course you can get aversion of vim that
uses python as its macro language! (But actually I
don't use it)
Alan G.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20080813/38161c39/attachment.htm>
More information about the Tutor
mailing list