<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:Courier New,courier,monaco,monospace,sans-serif;font-size:12pt"><div style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div dir="ltr">> If I want to delete 10 lines of code, 10dd does it. <br>> If I want to change a word, cw. If I want to change <br>> several words, the number of words followed by cw.<br><br>Yes thats what I mean about consistency.<br><br>10dd - delete 10 lines<br>10cc - change10 lines<br>10yy - yank(copy) 10 lines<br><br>etc...<br><br></div>I rarely use the numbersthough becase the magic feature for me is the range commands.<br><br>/fromstr/,/tostring/<cmd><br><br>applies cmd to the range of lines containing fromstr to the next <br>line containing tostring<br><br>And cmd can be almost any editing
command.<br><br>similarly you can apply commands to only those lines <br>containing a given string.<br><br>Also rectangular mode is great for messing with <br>comments (almost essential in assembler code!)<br><br>etc etc etc....<br><br>However I'll stop here because its got little <br>to do with python and the vim advocacy pages have <br>more than enough of this kind of promo material :-)<br>Although of course you can get aversion of vim that <br>uses python as its macro language! (But actually I <br>don't use it)<br><br>Alan G.<br></div></div></div></body></html>