3 ms·
If emacs is not installed on a system, I use sed. In addition to not getting stuck inside it when you don't remember the magic exit incantation, you can immedia
by wafflemaker 4mo ago
If emacs is not installed on a system, I use sed. In addition to not getting stuck inside it when you don't remember the magic exit incantation, you can immediately reuse the command on a different file. And it doesn't play sounds while you do it. Plus when you're typing the sed command, you can use emacs key bindings to move around!
- bananamogul 4mo ago"If emacs is not installed on a system, I use sed." Bill Joy (creator of vi) once said that if he sits down on a foreign system, he reaches for ed [1]. To be fair, both emacs and vi have "magic exit incantations", though if you have emacs perhaps you have a menu in GUI mode. If not, C-x C-c is really not any more memorable than :wq! The vi one at least has an obvious mnemonic ("write quit") but either way, you need to know an arbitrary sequence of keystrokes. [1] http://xahlee.info/comp/interview_with_bill_joy.html http://xahlee.info/comp/interview_with_bill_joy.html