From owner-freebsd-questions Thu Nov 4 10: 5:17 1999 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 1E6371528B for ; Thu, 4 Nov 1999 10:05:08 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id MAA94972; Thu, 4 Nov 1999 12:04:32 -0600 (CST) (envelope-from dan) Date: Thu, 4 Nov 1999 12:04:32 -0600 From: Dan Nelson To: Ben Rosengart Cc: freebsd-questions@FreeBSD.ORG Subject: Re: emacs vs. vi key-bindings in zsh Message-ID: <19991104120432.A93189@dan.emsphone.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from ben@skunk.org on Thu, Nov 04, 1999 at 12:56:23PM -0500 X-OS: FreeBSD 4.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Nov 04), Ben Rosengart said: > I know this is only marginally appropriate for this list, please > forgive me. On some, but not all, of my FreeBSD machines, zsh is > using vi bindings. I have looked through the zsh docs and haven't > been able to find out how to control whether it uses vi or emacs > bindings. Does anyone here know? TIA. man zshzle, about 30 lines down: Bindings Command bindings may be set using the bindkey builtin. 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