Is it possible to select some text with visual line and undo all changes made to it from the beginning ?
+3
A:
I actually do that by undoing everything yanking the block then redoing everything to the last modification and then replacing the block with the yanked text.
KARASZI István
2010-02-10 10:41:09
why the down vote?
KARASZI István
2010-02-10 10:43:20
+1 May be ok when block fits on the screen and there are not many things to undo/redo. Troublesome otherwise.
eugene y
2010-02-10 10:48:04
why does it need to fit in the screen? but yes, the undolevel matters.
KARASZI István
2010-02-10 10:50:22
+1 I think this is the only option
soulmerge
2010-02-10 10:50:29
or you can save the file to a different name and then comparing the two versions with vimdiff - this solves the undolevel problem
KARASZI István
2010-02-10 10:58:14
@KARASZI It doesn't "need" to. But is easier for me to manipulate with.
eugene y
2010-02-10 11:04:25
I would like to note that multi-level undo requires 'set nocompatible', which is not default.
eugene y
2010-02-10 14:39:10