LinuxSA Mailing list archives

Index: [thread] [date] [subject] [author] [stats]
  From: Matthew Geddes <mgeddes@xavier.sa.edu.au>
  To  : David Lloyd <lloy0076@rebel.net.au>
  Date: Wed, 30 May 2001 09:18:36 +0930

Re: Bash and Vi Mode

David Lloyd wrote:
> 
> Under the default shell that one gets (as a user) in FreeBSD 4.2 one can
> do:
> 
> % set -o vi
> 
> And you get a vi emulation mode (where $ takes you to the end of the
> line, you have command modes and such). Is there any way to convince the
> default shell (bash) in Linux (specifically RH 7.1) to do the same
> thing?

I think:

$ export EDITOR=vi

works. That's what I use with ksh on Solaris (well, EDITOR=emacs, but
hey), but I was under the impression that bash was the same. I'm sure
the man page would mention it. Most of the emacs bindings I use on
Solaris work fine with bash by default. Perhaps the vi ones are also?

HIH,
Matt

-- 
LinuxSA WWW: http://www.linuxsa.org.au/  IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
  mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject


Index: [thread] [date] [subject] [author] [stats]
Return to the LinuxSA Mailing List Information Page