6 ms·
vi is a posix requirement, emacs is not. If the system you're working on has ed, it'll have some version of vi or vim as well.
by kec 11y ago
vi is a posix requirement, emacs is not. If the system you're working on has ed, it'll have some version of vi or vim as well.
- shabble 11y agoand not having to know ed is an excellent reason to learn vi :) obCompulsoryEdJoke: https://www.gnu.org/fun/jokes/ed-msg.html https://www.gnu.org/fun/jokes/ed-msg.html
- CPLX 11y agoThat was pretty damm amusing.
- endgame 11y agoa I learned ed for a joke and found myself actually liking some features so much that I started porting them to emacs. . w
- bch 11y agoI've used ed(1) to do complex(ish) programmatic edits to files that I think would have been extremely painful otherwise. An interesting editor worth spending at least a small amount of brainpower on.
- emidln 11y agoI don't think this is true. I've certainly been in a bunch of hairy situations over the years where I had nothing fancier than ed available to me because I was in some sort of recovery mode. The single user mode that FreeBSD comes with is lacking vi if, for example, you don't have / mounted yet. Thankfully ed is in the ramdisk.
- cbd1984 11y agoNot in Ubuntu.
- cogburnd02 11y agoV7/x86 [1] has both vi and ed, but ed is easier to get to. "Of course, we are not absolutely compelled to use ed, since V7/x86 comes with the full-screen editor vi (as well as the related line editor ex), but getting access to vi in this context would involve mounting the /usr filesystem and changing various environment variables and settings to allow editing in full-screen mode. Some basic ed skills are particularly useful in the V7 world, and most of all when one is involved on system administration tasks." [2] [1] http://www.nordier.com/v7x86/ http://www.nordier.com/v7x86/ [2] http://www.nordier.com/v7x86/doc/v7x86intro.pdf http://www.nordier.com/v7x86/doc/v7x86intro.pdf