On Di, 09 Okt 2012, Ben Fritz wrote:
> On Tuesday, October 9, 2012 8:10:29 AM UTC-5, Christian BrabandtEven better, store the result for each window and execute it afterwards:
> > You need to loop over each line and get the diff_hlID() for that
> > Each line, where diff_hlID() returns zero you need to delete.
> > Of course, you can do it in one step ;)
> > exe ':g/'. join(map(filter(range(1,line('$')), '!diff_hlID(v:val,
> > ''\%''.v:val."l"'), '\|'). '/d'
> > But, this works only once, you can't do this for all buffers at the
> > same time, since after you changed the first buffer the syntax
> > for the other will be completely different and there will be no more
> > items being in common at the following buffers.
> But, you could next undo the (single) change in the first buffer,
(each line starting with ':' is a single line, no linewraps)
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.