On Friday, July 18th, 2025 at 6:13 PM, Larry McVoy <lm(a)mcvoy.com> wrote:
On Fri, Jul 18, 2025 at 06:05:37PM -0700, Bakul Shah
wrote:
On Jul 18, 2025, at 4:59???PM, Larry McVoy
lm(a)mcvoy.com wrote:
I sort of get "." to repeat the undo
but does nvi have a way to redo the
changes you originally did? I've used that to try and track down what
change I did that caused things to break, being able to go back and forth
is useful in a long debugging session.
Let us say you want do undo last 4 changes. You type u...
Now you want to redo 3 of them. You type u..
Basically the second u undoes the undo, and . means repeat!
Hmm, I might be dense but I like vims way of "u" means undo, ^R means
put it back. I do like nvi's u...., I like the . but having "u" mean
undo and redo seems weird.
You say tomato I say tomato :)
--
---
Larry McVoy Retired to fishing
http://www.mcvoy.com/lm/boat
This undo behavior is one of the things that catches me off guard when I wind up in vim
instead of nvi. Not to say which is better or worse I'm just wired for the nvi
approach so when I hit 'u' again and it does another undo instead of undoing the
undo, it throws me for a second.
- Matt G.