Date: Tue, 23 Dec 2003 09:53:08 +0000 (GMT) From: Jan Grant <Jan.Grant@bristol.ac.uk> To: zhangweiwu@realss.com Cc: freebsd-questions@freebsd.org Subject: Re: use vi style in all line-edit environment Message-ID: <Pine.GSO.4.58.0312230948290.14217@mail.ilrt.bris.ac.uk> In-Reply-To: <Law11-F36TpWxPZk7wJ0005f3d5@hotmail.com> References: <Law11-F36TpWxPZk7wJ0005f3d5@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 23 Dec 2003, Zhang Weiwu wrote: > I have been using vi all the time, even in csh I set bindkey -v to use vi > style command-line edit. > > But when the context is switched to python, mysql, or scilab I have to warn > myself not to type in vi style. Very often in mysql I mistyped something > and try to type a "x" to correct it, or I press "A" and thought I would go > to the end of the line. > > Is it possible to make a global configuration to let all command-line > processor accept vi style key? Most of the tools you're referring to use the GNU readline library. The manpage (readline(3)) _claims_ that it offers a vi-style editing mode. You'll have to suck it and see: try echo set editing-mode vi > ~/.inputrc and check the man page for more information. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/ Solution: (n) a watered-down version of something neat.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.58.0312230948290.14217>