From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: Re: [OT] Have you also got hooked by Vim? Date: Thu, 13 Jan 2011 15:42:44 +0100 Message-ID: References: <22132.1294921626@iu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=48252 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PdOOE-0003TT-M6 for emacs-orgmode@gnu.org; Thu, 13 Jan 2011 09:43:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PdONx-0004IQ-RF for emacs-orgmode@gnu.org; Thu, 13 Jan 2011 09:43:02 -0500 Received: from mail-iy0-f169.google.com ([209.85.210.169]:44676) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PdONx-0004IL-O7 for emacs-orgmode@gnu.org; Thu, 13 Jan 2011 09:42:45 -0500 Received: by iyj17 with SMTP id 17so1754944iyj.0 for ; Thu, 13 Jan 2011 06:42:45 -0800 (PST) In-Reply-To: <22132.1294921626@iu.edu> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Andrew J. Korty" Cc: Org Mode Hi Andrew On Thu, Jan 13, 2011 at 13:27, Andrew J. Korty wrote: > I've tried several times to use Viper, but I always give up. =A0The usual > showstopper is read-only Emacs modes with single-character key bindings, > like MH-E. =A0The d key deletes a message in an MH folder, but in vi, d > deletes text to a target. =A0So the obvious thing to do is turn Viper mod= e off > in folder buffers. =A0But I'd like to use the vi keys for motion (h, j, k= , l) > -- I can't get used to using them in some buffers and not others. =A0So u= nless > I'm unaware of some trick, I have to build my own keymap almost for each = of > these modes. I hope I understand you right and this helps: I use C-z for this with viper level 3 to have C-z bound to Emacs. When I open e. g. dired then the viper state in this buffer that is shown in the mode line is meaning Emacs. In this mode the Emacs keys are active like e. g. `f' to open the file in a new buffer or p/n to go up/down. Back in dired and after C-z the viper state changes to meaning viper. In this mode the vi keys are active like e. g. `f' to find a certain character or k/j to go up/down. C-z at any time toggles again to . Michael