Live data from Hacker News

My Ed(1) Toolbox

aartaka.me

21–28 of 28 posts

Re: My Ed(1) Toolbox

#24
post #22

Is there really an advantage to using Ed instead of vim in any situation whatsoever? (Assuming you're totally comfortable with vim)

Very low bandwidth situations, or when you want to apply the same steps to other files afterwards.

But if you're totally comfortable with vim you'd better use ex, which basically is both an extension to ed, and the non-interactive part of vim.

Re: My Ed(1) Toolbox

#25
post #22

Is there really an advantage to using Ed instead of vim in any situation whatsoever? (Assuming you're totally comfortable with vim)

when you're using a teletype terminal

Re: My Ed(1) Toolbox

#27
post #24
post #22

Is there really an advantage to using Ed instead of vim in any situation whatsoever? (Assuming you're totally comfortable with vim)

Very low bandwidth situations, or when you want to apply the same steps to other files afterwards. But if you're totally comfortable with vim you'd better use ex, which basically is both an extension to ed, and the non-interactive part of vim.

Not to be that person, but… ex is not ed-compatible, and it made really bad choices too.

Re: My Ed(1) Toolbox

#28

After reading this article, I need to learn :wq for ed. Edit - I suppose that shouldn't have been surprising: w q

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.
Post reply on HN