From owner-freebsd-questions Fri Oct 20 10:53:47 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id D788437B4D7 for ; Fri, 20 Oct 2000 10:53:44 -0700 (PDT) Received: (from dan@localhost) by dan.emsphone.com (8.11.1/8.11.1) id e9KHojG28907; Fri, 20 Oct 2000 12:50:45 -0500 (CDT) (envelope-from dan) Date: Fri, 20 Oct 2000 12:50:45 -0500 From: Dan Nelson To: Drew Cc: freebsd-questions@FreeBSD.ORG Subject: Re: vi key bindings Message-ID: <20001020125045.A12319@dan.emsphone.com> References: <20001020173547.32212.qmail@web9208.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.3.10i In-Reply-To: <20001020173547.32212.qmail@web9208.mail.yahoo.com>; from "Drew" on Fri Oct 20 10:35:47 GMT 2000 X-OS: FreeBSD 5.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Oct 20), Drew said: > This is slightly off topic so please excuse me, or please point me to > the correct list. I have a FreeBSD 4.1.1 box. I have heard a lot of > really cool things about zsh from a number of ppl. I have installed > zsh via the ports collection. I set it as my shell and I can not get > vi keybindings to work. In bash I use "set -o vi". This errors in > zsh with: > > set: no such option: vi > > Can anyone please provide me with the correct syntax? The correct list would be zsh-users@sunsite.auc.dk From the zsh manpage: There are two keymaps - the main keymap and the alternate keymap. The alternate keymap is bound to vi command mode. The main keymap is bound to emacs mode by default. To bind the main keymap to vi insert mode, use bindkey -v. However, if one of the VISUAL or EDITOR environment vari- ables contain the string vi when the shell starts up the main keymap will be bound to vi insert mode by default. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message