vim undo

2020-03-04 Thread Chris Jones
Scenario: - I open a file - I make one big global change (C0)... say via substitute+regex - I proceed to make more changes (C1, C2, ... Cn). While *still editing the file* I realize that the initial change (C0) was in error. Can I undo the initial change (C0) and keep all the ensuing changes?

Re: vim undo

2020-03-04 Thread Tim Chase
On 2020-03-04 13:00, Chris Jones wrote: > Scenario: > > - I open a file > - I make one big global change (C0)... say via substitute+regex > - I proceed to make more changes (C1, C2, ... Cn). > > While *still editing the file* I realize that the initial change > (C0) was in error. > > Can I undo

Re: vim undo

2020-03-04 Thread Bram Moolenaar
Tim Chase wrote: > On 2020-03-04 13:00, Chris Jones wrote: > > Scenario: > > > > - I open a file > > - I make one big global change (C0)... say via substitute+regex > > - I proceed to make more changes (C1, C2, ... Cn). > > > > While *still editing the file* I realize that the initial change

Re: vim undo

2020-03-05 Thread Chris Jones
On Wed, Mar 04, 2020 at 01:00:54PM EST, Chris Jones wrote: Thanks to both for timely response. Interesting answers indeed. Looking at my problem from a different angle I eventually noticed something that allowed me to single out the outcome of the incorrect changes and let me reverse them witho