Le vendredi 14 novembre 2014 16:10:42 UTC+1, Ben Fritz a écrit :
> On Friday, November 14, 2014 5:44:45 AM UTC-6, Enno wrote:
> > Is there, perhaps via a Plugin, a way to recover the second last text 
> > editing operation in normal mode ? The dot '.' operator keeps only the last 
> > operation.
> 
> Nope. This would not be possible, unless every single key is remapped in 
> every single mode, or if somehow macros were being recorded constantly. But 
> what are you trying to accomplish, exactly? I.e. why do you want this or what 
> problem are you encountering?

Hello Ben,

It's my lack of foresight. Let's say I search for "Loch Ness", have a couple of 
matches, and replace the first match by "Love Nest" by placing my cursor on `v` 
and typing `ceve<esc>ert`. Then on the next match, I cannot repeat this 
operation by placing my cursor on `v` and hitting `.` because this is `rt`.

It would be nice go back and forth between the last edit operations by 
<c-p>/<c-n> say right after hitting `.` to compensate for this lack of 
foresight. But perhaps there is a better way from the outset to handle this.

  Enno

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to