Tuesday, November 23, 2010

Undo in vimdiff

I'm finally setting out to create some useful mappings for the way I
like to use vimdiff. As part of this, I noticed that 'u' for undo
doesn't revert a :diffput command. It makes sense, since the change
technically occurs in a different buffer, but I was wondering whether
anyone had a clever mapping or workaround for that.

Really the main thing I'm adding is to map both '>' and '<' to
':.diffput', so that < and > feel like pushing lines from one buffer
into another. So, I guess I'd also be open to generally-useful vimdiff
mappings.

--
Best,
Ben

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: