Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Start an external editor to edit the current zle buffer

On 2005-11-04 14:53:43 +0000, Peter Stephenson wrote:
> Vincent Lefevre wrote:
> > On 2005-11-04 13:49:25 +0000, Peter Stephenson wrote:
> > > See the ZLE function edit-command-line supplied with the shell.  It's
> > > quite short and you might want to tweak it.
> > 
> > Thanks. Is there any reason why it is not available by default and
> > not documented in the zshzle man page?
> Yes: it's not part of zle, it's a contributed function and like all such
> is documented in zshcontrib and needs to be loaded.

Shouldn't it become part of zle?

> > Also why does fc use $FCEDIT and not ${VISUAL:-${EDITOR:-vi}} like
> > edit-command-line (or the opposite)?
> FCEDIT is specific to the fc command.  edit-command-line assumes you
> want to use your normal editor.  You can easily change it.

Why doesn't fc assume I want to use my normal editor?
Is there any reason to have $FCEDIT different from $VISUAL or $EDITOR?

Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA

Messages sorted by: Reverse Date, Date, Thread, Author