tag:blogger.com,1999:blog-930637731409800108.post1641895032203369969..comments2023-02-08T02:10:03.246+11:00Comments on Software Salariman: Vim Delete Lines With RegexTemporaryhttp://www.blogger.com/profile/17713488190792612370noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-930637731409800108.post-79568316858856012292010-07-14T11:12:51.121+10:002010-07-14T11:12:51.121+10:00Undo works for 'ex' (or colon-based) comma...Undo works for 'ex' (or colon-based) commands, too.<br /><br />You can constrain a command to a range of lines, e.g. line 4 to the last line, like this:<br />:4,$g/s1/dTemporaryhttps://www.blogger.com/profile/17713488190792612370noreply@blogger.comtag:blogger.com,1999:blog-930637731409800108.post-81195801893228788692010-07-14T09:56:45.737+10:002010-07-14T09:56:45.737+10:00A ! can make so much difference. Let us hope vim h...A ! can make so much difference. Let us hope vim has a good undo command...<br /><br />So can you specify lines? I have some dim memory of having to go 1,G or something like that.Anonymoushttps://www.blogger.com/profile/07944395656912660341noreply@blogger.com