Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[vimpulse] Custom keybinding

6 views
Skip to first unread message

saheel1511

unread,
May 29, 2012, 2:54:52 AM5/29/12
to Help-gn...@gnu.org

Hello everyone,

Although I have been using http://www.emacswiki.org/emacs/Vimpulse Vimpulse
for quite some time now, I didn't really customize it to my liking. Today I
wanted to change the behavior of C-d in all vi modes. Currently, in
normal-mode and visual-mode C-d scrolls down, and in insert-mode C-d does
nothing. I want C-d to execute 'delete-char' in all modes. So I tried this:

(global-set-key (kbd "C-d") 'delete-char)
and
(vimpulse-global-set-key 'vi-state' (kbd "C-d") 'delete-char))

Both didn't work. C-d still has the same behavior -- it does not delete a
character.
Any help/suggestions/pointers on how to set custom keybindings for vimpulse?

Thank you,
Saheel.
--
View this message in context: http://old.nabble.com/-vimpulse--Custom-keybinding-tp33923351p33923351.html
Sent from the Emacs - Help mailing list archive at Nabble.com.


saheel1511

unread,
May 29, 2012, 11:18:35 AM5/29/12
to Help-gn...@gnu.org

Frank Fischer

unread,
May 29, 2012, 5:05:44 PM5/29/12
to help-gn...@gnu.org
On 2012-05-29, saheel1511 <saheel....@gmail.com> wrote:
>
> Hello everyone,
>
> Although I have been using http://www.emacswiki.org/emacs/Vimpulse Vimpulse
> for quite some time now, I didn't really customize it to my liking. Today I
> wanted to change the behavior of C-d in all vi modes. Currently, in
> normal-mode and visual-mode C-d scrolls down, and in insert-mode C-d does
> nothing. I want C-d to execute 'delete-char' in all modes. So I tried this:
>
> (global-set-key (kbd "C-d") 'delete-char)
> and
> (vimpulse-global-set-key 'vi-state' (kbd "C-d") 'delete-char))
>
> Both didn't work. C-d still has the same behavior -- it does not delete a
> character.
> Any help/suggestions/pointers on how to set custom keybindings for vimpulse?

I can't really help you with vimpulse, but note that vimpulse is no
longer actively developed. There's a new project called "Evil" [1]
that supersedes Vimpulse and has much more features but does not build
on viper (and it is configurable in the way you want).

Anyway, because the maintainer of Vimpulse is also the maintainer of
Evil it's probably a good idea to ask your question on evil's mailing
list [2] or in the irc channel #evil-mode on freenode.

Frank

[1] http://www.emacswiki.org/emacs/Evil
[2] http://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list


saheel1511

unread,
May 30, 2012, 3:16:35 AM5/30/12
to Help-gn...@gnu.org



Frank Fischer-7 wrote:
>
> There's a new project called "Evil" [1]
> that supersedes Vimpulse and has much more features but does not build
> on viper (and it is configurable in the way you want).
>
Hey, Frank.

Thanks a lot. I have started using Evil.
And guess what? The C-d operates, by default, just the way I want it to be!

Regards,
Saheel.
--
View this message in context: http://old.nabble.com/-vimpulse--Custom-keybinding-tp33923351p33929826.html
0 new messages