3 ms·
After reading this article, I need to learn :wq for ed. Edit - I suppose that shouldn't have been surprising: w q
by mikeocool 1y ago
After reading this article, I need to learn :wq for ed.
Edit - I suppose that shouldn't have been surprising:
w
q
- michaelsshaw 1y agoVi comes from ex, which itself came from ed.
- aartaka 1y agoBoth GNU ed and OpenBSD ed support wq as an extension to POSIX. But yeah, it all depends on whether you want to stick by POSIX or common practice. I personally prefer wq for interactive sessions and w\nq for scripts.