After starting ed
, help mode can be enabled using the H
command. Is there a way to enable help mode by default, so that I do not have to type H
every time I use ed
?
Asked
Active
Viewed 88 times
1 Answers
3
With standard ed
, you will have to enter H
manually at the start of an interactive editing session, or include H
at the start of any ed
editing script.
The OpenBSD ed
manual suggests this for ed
scripts:
H
Toggles the printing of error explanations. By default, explanations are not printed. It is recommended thated
scripts begin with this command to aid in debugging.
The GNU ed
implementation has a command line option, -v
(or --verbose
), which enables H
in the editing session. You may alias ed
to ed -v
if you want this to be the default behavior.
-v
,--verbose
be verbose; equivalent to theH
command

Kusalananda
- 333,661
-
Excellent. For GNU ed, all I need to do is to run
rlwrap ed -vp'*'
to get a comfortable editing session. – Flux Nov 15 '21 at 07:54 -
man ed
, you cannot. – waltinator Nov 15 '21 at 06:12