From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ahei Newsgroups: gmane.emacs.help Subject: Re: How to change Viper-Mode behavior ? Date: Sun, 30 May 2010 10:19:26 +0800 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=00504502c5f08b57b10487c65e7b X-Trace: dough.gmane.org 1275186008 24858 80.91.229.12 (30 May 2010 02:20:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 30 May 2010 02:20:08 +0000 (UTC) To: help-gnu-emacs@gnu.org, astamatto@gmail.com, lennart.borgman@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 30 04:20:04 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 1OIY86-000688-RV for geh-help-gnu-emacs@m.gmane.org; Sun, 30 May 2010 04:19:59 +0200 Original-Received: from localhost ([127.0.0.1]:39779 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OIY85-0007KR-NG for geh-help-gnu-emacs@m.gmane.org; Sat, 29 May 2010 22:19:57 -0400 Original-Received: from [140.186.70.92] (port=53952 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OIY7e-0007IA-3n for help-gnu-emacs@gnu.org; Sat, 29 May 2010 22:19:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OIY7c-00065A-He for help-gnu-emacs@gnu.org; Sat, 29 May 2010 22:19:30 -0400 Original-Received: from mail-pw0-f41.google.com ([209.85.160.41]:47956) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OIY7c-000653-8p for help-gnu-emacs@gnu.org; Sat, 29 May 2010 22:19:28 -0400 Original-Received: by pwi6 with SMTP id 6so2924923pwi.0 for ; Sat, 29 May 2010 19:19:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=6QBuYtY90gIl/ApJ2zwRt50yHBBvVJf5EnRPPIGjlS4=; b=NF/IxSzVaBgp7twge37gr2YsDNzM9rT2l3pnvhO2BeQUfzrMI1QTs31grPnmIkHIeF rqZawHIkNt7CK9xSsrKsEMG02CgFFUn54Uq6dxqzsUR6tFcv6peOBGaWYnROWD13ci0+ 7EKQcEsmDXz9tjiyaPgehLf+Tzi5mcAU6Ckcg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=eEnChZPpWMlz3rHzIeAnCnihxEZwwtpWcEgXtyyHX65XcJpLFAWuxg0AAN0gPvZtbr jIYGMcifw43YgU60IERjXB7kmoH97Sh23iM4a/8fG5LjZEUEY9YDd8IAgSYEw2VSTbjh pY6iXUOHy6QsuqCJ9l0w9hH/NkUQsp2psOoaA= Original-Received: by 10.143.20.26 with SMTP id x26mr1718237wfi.270.1275185966306; Sat, 29 May 2010 19:19:26 -0700 (PDT) Original-Received: by 10.142.139.6 with HTTP; Sat, 29 May 2010 19:19:26 -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:73792 Archived-At: --00504502c5f08b57b10487c65e7b Content-Type: text/plain; charset=ISO-8859-1 I agree this, and I want to know, why you want to use Viper mode? Delete text more conveniently. BTW viper-mode already support up down left right. On Sun, May 30, 2010 at 4:53 AM, Lennart Borgman wrote: > 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: i -> up , j -> left, k -> down , l -> > right . > > change the 'Esc' key behavior to: If in Command Mode change to Insert > Mode > > as if i had pressed the 'i' key. > > > ---------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Is there an easy way to do those customizations? 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. > > --00504502c5f08b57b10487c65e7b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I agree this, and I want to know, why you want to use Viper mode? Delete te= xt more=A0conveniently. BTW viper-mode already support up down left right.<= br>
On Sun, May 30, 2010 at 4:53 AM, Lennart = Borgman <= lennart.borgman@gmail.com> wrote:
On Fri, M= ay 28, 2010 at 11:44 PM, Alessandro Stamatto
<astamatto@gmail.com> wrot= e:
> Hi,
>
> I'm using Viper-Mode in emacs. And i don't like the movement k= eys of Vi... I
> would like to do those simple customizations in it:
> ----------------------------------------------------------------------= ---------------------------------------------------------------------------= ---------------
> change the movement keys to:=A0=A0 i -> up , j -> left, k -> = down , l -> right .
> change the 'Esc' key behavior to:=A0 If in Command Mode change= to Insert Mode
> as if i had pressed the 'i' key.
> ----------------------------------------------------------------------= ---------------------------------------------------------------------------= ---------------
> Is there an easy way to do those customizations?=A0 If yes, how can i = do it?


I think those movement keys in vi where chosen to optimize spee= d.
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.


--00504502c5f08b57b10487c65e7b--