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

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



Vincent Lefevre wrote:
> On 2005-11-04 13:49:25 +0000, Peter Stephenson wrote:
> > Vincent Lefevre wrote:
> > > Is there a way to start an external editor (e.g. given by $FCEDIT)
> > > to edit the current buffer and go back to zle?
> > > 
> > > This can be useful if some operations are easier with the mouse.
> > 
> > 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.

> 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.

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com



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