unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to change Viper-Mode behavior ?
@ 2010-05-28 21:44 Alessandro Stamatto
  2010-05-29 20:53 ` Lennart Borgman
  0 siblings, 1 reply; 6+ messages in thread
From: Alessandro Stamatto @ 2010-05-28 21:44 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 753 bytes --]

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?

Best Regards, Alessandro Stamatto.

[-- Attachment #2: Type: text/html, Size: 838 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How to change Viper-Mode behavior ?
  2010-05-28 21:44 How to change Viper-Mode behavior ? Alessandro Stamatto
@ 2010-05-29 20:53 ` Lennart Borgman
  2010-05-30  2:19   ` ahei
  0 siblings, 1 reply; 6+ messages in thread
From: Lennart Borgman @ 2010-05-29 20:53 UTC (permalink / raw)
  To: Alessandro Stamatto; +Cc: help-gnu-emacs

On Fri, May 28, 2010 at 11:44 PM, Alessandro Stamatto
<astamatto@gmail.com> 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.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How to change Viper-Mode behavior ?
  2010-05-29 20:53 ` Lennart Borgman
@ 2010-05-30  2:19   ` ahei
  2010-05-30  5:32     ` Alessandro Stamatto
       [not found]     ` <mailman.7.1275197567.19569.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 6+ messages in thread
From: ahei @ 2010-05-30  2:19 UTC (permalink / raw)
  To: help-gnu-emacs, astamatto, lennart.borgman

[-- Attachment #1: Type: text/plain, Size: 1607 bytes --]

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
<lennart.borgman@gmail.com>wrote:

> On Fri, May 28, 2010 at 11:44 PM, Alessandro Stamatto
> <astamatto@gmail.com> 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.
>
>

[-- Attachment #2: Type: text/html, Size: 2085 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How to change Viper-Mode behavior ?
  2010-05-30  2:19   ` ahei
@ 2010-05-30  5:32     ` Alessandro Stamatto
  2010-05-30  9:53       ` Lennart Borgman
       [not found]     ` <mailman.7.1275197567.19569.help-gnu-emacs@gnu.org>
  1 sibling, 1 reply; 6+ messages in thread
From: Alessandro Stamatto @ 2010-05-30  5:32 UTC (permalink / raw)
  To: ahei; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1975 bytes --]

Alright, you guys convinced me! Im gonna get used to the usual keybinds.

I love emacs, but i read in some blogs about viper-mode for emacs and wanted
to experiment the modal keybinds.

Thanks for the answers and sorry to disturbing you guys.

Best Regards, Alessandro Stamatto.

2010/5/29 ahei <ahei0802@gmail.com>

> 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 <
> lennart.borgman@gmail.com> wrote:
>
>> On Fri, May 28, 2010 at 11:44 PM, Alessandro Stamatto
>> <astamatto@gmail.com> 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.
>>
>>
>

[-- Attachment #2: Type: text/html, Size: 2774 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How to change Viper-Mode behavior ?
  2010-05-30  5:32     ` Alessandro Stamatto
@ 2010-05-30  9:53       ` Lennart Borgman
  0 siblings, 0 replies; 6+ messages in thread
From: Lennart Borgman @ 2010-05-30  9:53 UTC (permalink / raw)
  To: Alessandro Stamatto; +Cc: help-gnu-emacs

On Sun, May 30, 2010 at 7:32 AM, Alessandro Stamatto
<astamatto@gmail.com> wrote:
> Alright, you guys convinced me! Im gonna get used to the usual keybinds.
>
> I love emacs, but i read in some blogs about viper-mode for emacs and wanted
> to experiment the modal keybinds.
>
> Thanks for the answers and sorry to disturbing you guys.


Oh, maybe you misunderstood me. I am using Viper all the time. Without
Viper key bindings I could not stand Emacs. And I am using Emacs a
lot... ;-)



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How to change Viper-Mode behavior ?
       [not found]     ` <mailman.7.1275197567.19569.help-gnu-emacs@gnu.org>
@ 2010-05-31  7:44       ` José A. Romero L.
  0 siblings, 0 replies; 6+ messages in thread
From: José A. Romero L. @ 2010-05-31  7:44 UTC (permalink / raw)
  To: help-gnu-emacs

On 30 Maj, 07:32, Alessandro Stamatto <astama...@gmail.com> wrote:
> Alright, you guys convinced me! Im gonna get used to the usual keybinds.
(...)

There is a whole lot more to vi-style modal editing in emacs. You may
want also to have a look at Vimpulse:

    http://www.emacswiki.org/emacs/Vimpulse

Cheers,
--
José A. Romero L.
escherdragon at gmail
"We who cut mere stones must always be envisioning cathedrals."
(Quarry worker's creed)


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-05-31  7:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-28 21:44 How to change Viper-Mode behavior ? Alessandro Stamatto
2010-05-29 20:53 ` Lennart Borgman
2010-05-30  2:19   ` ahei
2010-05-30  5:32     ` Alessandro Stamatto
2010-05-30  9:53       ` Lennart Borgman
     [not found]     ` <mailman.7.1275197567.19569.help-gnu-emacs@gnu.org>
2010-05-31  7:44       ` José A. Romero L.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).