Post B4kzWhuKHQ2NWUPt5M by justine@snac.smithies.me.uk
 (DIR) More posts by justine@snac.smithies.me.uk
 (DIR) Post #B4i7sNUr41YykYT1lY by justine@snac.smithies.me.uk
       0 likes, 0 repeats
       
       Currently I'm a #vim user with only two plugins loaded by vims own system no packer or anything. They are the gruvbox theme and colorizer to color HTML color codes.I've been researching to see if I could work with #nvi and wondered about undo history and found that it might be possible ?uUndo the last change made to the file.If repeated the u command alternates between these two states.The . command when used immediately after u causes the change log to be rolled forward or backward depending on the action of the u command.If you're an nvi user what other tips or hacks are there that I should know about ? I don't suppose there is some magical way to theme it ?
       
 (DIR) Post #B4iAmtHiGP8pSoOZ7Y by tseitr@mastodon.sdf.org
       0 likes, 0 repeats
       
       @justine not sure if nvi have registershttps://codeberg.org/ditchgithub/templates_and_code_snippets
       
 (DIR) Post #B4iAmtVBSJuu8ahK7M by justine@snac.smithies.me.uk
       0 likes, 0 repeats
       
       No it doesn't but thanks.
       
 (DIR) Post #B4iB702ar0zcD1ubBI by justine@snac.smithies.me.uk
       0 likes, 0 repeats
       
       Also something else that I have noticed as an #OpenBSD user is that vi and nvi undo functions seem to both work the same ? I mean you can press u in both to undo and then press . to do multiple undos. Yet I thought it was only nvi that had that feature? I'll have to read up more on both to find differences.
       
 (DIR) Post #B4iDK8dQPeC6XIX3xo by oxyhyxo@bsd.cafe
       0 likes, 0 repeats
       
       @justine I feel like u for undo has been in vi for as long as I can remember... Though my memory is rubbish so I am most likely wrong.
       
 (DIR) Post #B4iDK8tNSKxFKlznpQ by nuintari@bsd.cafe
       0 likes, 0 repeats
       
       @oxyhyxo @justine FreeBSD vi has this feature as well.u for undo has been in vi for freaking ever.. for multi-step undo? that is a TIL for me.
       
 (DIR) Post #B4iDK94imA1ptxIrVg by justine@snac.smithies.me.uk
       0 likes, 0 repeats
       
       Glad to have accidentally taught you something new. ;)CC: @oxyhyxo@bsd.cafe
       
 (DIR) Post #B4iJLlH2q3WuO5Dmgi by nmott@infosec.exchange
       0 likes, 0 repeats
       
       @justine OpenBSD vi should be nvi, or derived from it, at least based on my recollection and the vi man page: The ex editor first appeared in 1BSD. The nex/nvi replacements for the ex/vi editor first appeared in 4.4BSD.
       
 (DIR) Post #B4iJLlS2BCJuwAMYoi by justine@snac.smithies.me.uk
       0 likes, 0 repeats
       
       Thanks Nathaniel. I saw that in the man page but if that's true why is there an nvi package too ?
       
 (DIR) Post #B4ixMNFLeaFkK9H5Ye by hi@romanzolotarev.com
       0 likes, 0 repeats
       
       https://romanzolotarev.com/bsd/vi.html :)
       
 (DIR) Post #B4ixMNRkuSB4wd4ztg by justine@snac.smithies.me.uk
       0 likes, 0 repeats
       
       Thanks Roman.
       
 (DIR) Post #B4kzWhjKwHFMyPH6xM by mason@partychickens.net
       0 likes, 0 repeats
       
       @justine vi in OpenBSD *is* nvi, I thought. It's hard to imagine them digging up Joy's code and including it for fun.But of course if they've done something interesting there, I'd love to know about it.
       
 (DIR) Post #B4kzWhuKHQ2NWUPt5M by justine@snac.smithies.me.uk
       0 likes, 0 repeats
       
       Yeah on OpenBSD vi is nvi.