Sun Mar 04 14:05:14 PST hot vim tip sandwich (au jus): vim has a cool "delete-from-here-to" feature. In command mode, put your cursor where you want to start deleting. Then, type 'd/n', where n is a regex describing where you want to stop deleting. vim should show you where you are deleting to, either by highlighting, or by moving the cursor. When you're pleased with your regex, hit enter. Bam!
Unless otherwise noted, all content licensed by Peter A. H. Peterson under a Creative Commons License. |