On Sat, Jul 19, 2025 at 01:45:24AM +0200, Christian Hopps wrote:
On Jul 18, 2025, at 22:58, Bakul Shah via TUHS
<tuhs(a)tuhs.org> wrote:
And I don't understand the dislike of vim.
It is more that some of us *prefer* nvi to vim. [I might've used
vim when it was first posted on Usenet but Braam refused to make
at least provide an option to make multiple undo/redo behavior
compatible to nvi. So it goes!]
Agreed! nvi `u` undo/redo with the `.` repeat cmd is what nvi got very right and vim got
wrong by comparison IMO. That feature alone had me preferring nvi forever (they both
supported split windows :)
Huh, I had to go play with how vim does it. vim, you hold down "u" to undo
everything you've done (screen flashes when there is nothing left to undo)
and you can go forward with ^R to replay your changes if you went too far.
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.
Another thing I like about vim is when you put stuff in a buffer, I don't
know how it does this, but it remembers what you stored in a buffer across
vim sessions. I have a giant .procmailrc where I filter every sales
droid or whatever that spams me. I have yanked into a buffer an entry
that I put back and change with the latest, I like that obscure feature.