From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: How to change Viper-Mode behavior ? Date: Sat, 29 May 2010 22:53:48 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1275166832 14685 80.91.229.12 (29 May 2010 21:00:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 29 May 2010 21:00:32 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Alessandro Stamatto Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat May 29 23:00:31 2010 connect(): No such file or directory Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OIT8u-0003dT-Ic for geh-help-gnu-emacs@m.gmane.org; Sat, 29 May 2010 23:00:29 +0200 Original-Received: from localhost ([127.0.0.1]:43875 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OIT7n-0004s3-3W for geh-help-gnu-emacs@m.gmane.org; Sat, 29 May 2010 16:59:19 -0400 Original-Received: from [140.186.70.92] (port=52624 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OIT6e-00041K-KH for help-gnu-emacs@gnu.org; Sat, 29 May 2010 16:58:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OIT2r-0006pd-Ie for help-gnu-emacs@gnu.org; Sat, 29 May 2010 16:54:14 -0400 Original-Received: from mail-gw0-f41.google.com ([74.125.83.41]:60399) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OIT2r-0006pZ-EF for help-gnu-emacs@gnu.org; Sat, 29 May 2010 16:54:13 -0400 Original-Received: by gwb19 with SMTP id 19so2361967gwb.0 for ; Sat, 29 May 2010 13:54:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=Y8c4h+lqrsvKVwlEMVCWRaI4xX+V7oTLrk66yVT79Co=; b=quHTjnnP96AmfHtqY6s4aC32/986sskaJkcsHC1LUnpUzbyTufg+CJQS7xefp+S/Fd h8qk62JcsGXYG6tjEi3f3DUvJ9M2hGi2s9BLTE2G0a2fvXhSiiOIdM6fAlaKD15Bc6gs Rapam82PGpDJIgOU68oxtDPecYLVor3qKcMOs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=p7lWjnSNyceZCI0LnCyH5oPqY5+C6NcY6Q+ZvO+L5a9PSN7nryfZX0ZcUjOxa3nlnU abi+SJQUk5pGCS1c6nNu5EQYe/1Baocdrvw+eO9XjnchKX3AZH1qgf+44de+rgTSjert pTTcQOXD0Gn1o7NBhDKgssYhzoOFRh6ZboXi4= Original-Received: by 10.101.3.38 with SMTP id f38mr2434611ani.90.1275166448104; Sat, 29 May 2010 13:54:08 -0700 (PDT) Original-Received: by 10.100.44.20 with HTTP; Sat, 29 May 2010 13:53:48 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:73791 Archived-At: On Fri, May 28, 2010 at 11:44 PM, Alessandro Stamatto wrote: > Hi, > > I'm using Viper-Mode in emacs. And i don't like the movement keys of Vi..= . I > would like to do those simple customizations in it: > -------------------------------------------------------------------------= ---------------------------------------------------------------------------= ------------ > change the movement keys to:=C2=A0=C2=A0 i -> up , j -> left, k -> down ,= l -> right . > change the 'Esc' key behavior to:=C2=A0 If in Command Mode change to Inse= rt Mode > as if i had pressed the 'i' key. > -------------------------------------------------------------------------= ---------------------------------------------------------------------------= ------------ > Is there an easy way to do those customizations?=C2=A0 If yes, how can i = do it? I think those movement keys in vi where chosen to optimize speed. Normally you rest your fingers on those keys (i.e h j k l). I don't think it takes long to get use to them. And there are other places outside Emacs where it is useful to know those keys (I use some of it in gmail for example). Do you really want to change the keys? If you do then just look for the keymaps where they are bound. Maybe some of it is hardcoded because the request to be able to move them is quite weak.