4 ms·
Fortunately, I don't have to write up an explanation of this, as Joy and Horton already did. * https://ex-vi.sourceforge.net/viin/paper-7.html#section53 https:
by JdeBP 4mo ago
Fortunately, I don't have to write up an explanation of this, as Joy and Horton already did.
* https://ex-vi.sourceforge.net/viin/paper-7.html#section53 https://ex-vi.sourceforge.net/viin/paper-7.html#section53
It's basically the answer to the question of how one does vi-like visual editing when the cursor cannot be moved to arbitrary locations on the terminal, or sometimes cannot even be moved upwards.
Amusing factoid: It's actually sort of the other way around. open mode was added to ex before visual mode was. visual mode is the answer to the question of how you can take advantage of an ability to move the cursor around arbitrarily.
* https://www.oreilly.com/library/view/learning-the-vi/1565924266/1565924266_vi6-ch-9-sect-1.html https://www.oreilly.com/library/view/learning-the-vi/1565924...
VIM and STEVIE never implemented it. VIM makes :open do the same as :visual . nvi and nvi2 issue a 'not implemented' error for the :open nex command. Watcom vi does not even have :open . Nor do NeoVIM, nextvi, neatvi, and viless.
Mortice Kern vi has open mode. So does elvis version 2.
- Joker_vD 4mo agoHuh. So in open mode, ex basically works as if ed appended "p" to every text-editing command? Combined with "list" and "number" options, that sounds like a much more pleasant to use version of ed, even on a dumb "glass-tty".
- gpvos 4mo agoIt is more like a one-line visual mode, you can actually use the same commands as there. Depending on terminal capabilities (that's why there are apparently three submodes), you can move the cursor left and right, and insert and delete text. IIRC, I once somehow got it in a very limited "dumb terminal" mode, and it printed \ for every deleted character.
- gpvos 4mo agoI mostly used it when I logged in over a 1200 baud modem. The terminal would have supported working full-screen, but it was just quicker to not keep the entire screen visible all the time (even though classic vi is already very efficient about screen updates).