Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
mikeocool
· 1y ago · 0 comments
After reading this article, I need to learn :wq for ed.
Edit - I suppose that shouldn't have been surprising:
w
q
Comments
[–]
aartaka
1y ago
Both 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.
[–]
michaelsshaw
1y ago
Vi comes from ex, which itself came from ed.