

I have, in the past, recommended, if you use Unix systems in a technical way, knowing at least how to do the following in vi (and I use emacs):
-
Close the program, discarding changes. From vim’s command mode,
: q ! RET. -
Exit writing changes. From vim’s command mode,
: w q RET. -
Move the cursor around. Today, usually you can get by with arrow keys – I haven’t been on a system where one thing or another was dicked up in a way that rendered arrow keys unusable in many years, but from Vim’s command mode, “h”, “j”, “k”, and ""l.
-
Enter insert mode to Insert text. From vim’s command mode, “i”.
-
Exit insert mode. From vim’s insert mode, ESC.
-
Search for text. From vim’s command mode, “/”, the text to search for, and RET.
-
Replace text. From vim’s command mode, “: %s/foo/bar/g” to change all instances of foo to bar in a given file.
If you’ve got that much and you ever find yourself on a system that only has vi available (and it may not be vim), you can at least do the basics.
But the widespread deployment of nano has made learning basic vi less important than was once the case. Even very small systems that I’ve run into tend to have nano.
Note that busybox, a popular statically-linked shell often used in a rescue-the-horribly-broken-system scenario, does not have nano but does have a minimal “vi”-alike, so you might still want to know vi in that case.

Well, cool. Hope it was helpful, then.
I’ll also mention one other point, if you’re a big emacs and Firefox user. Won’t solve the issue for URL bars or other non-webpage text, but if you do a fair bit of writing in HTML textareas in webpages, like on Lemmy instances or something, you can hand that off to emacs.
Install the
edit-serverpackage for emacs (M-x list-packages, wait for the emacs package manager to load the list, go toedit-server, hit “i” to flag for install and “x” to execute, orM-x package-installand just type out “edit-server”).In an emacs instance run
M-x edit-server-start(or set it up to always run automatically at emacs startup but I run multiple emacs instances).Grab the Edit with Emacs Firefox addon. Install.
Now, by default all textareas will have a little blue button at the bottom reading “edit”. Click it, and your textarea will open up in emacs.
C-c C-cto commit changes back to the textarea (OrC-x C-c, if you’re exiting that instance of emacs). You can also right-click on the textarea and choose “Edit with Emacs”.