Hi Skotlex! You are right vimb can use <Up> or <Down> but not <C-Up> <C-Down> at the time and there is no logic to handle 'Alt' modifier. I know that the mapping possibilities are really limitated at the time, and I have some general changes in mind to sole some other mapping issues to. But I fear this plan have to wait for other issues. I've made a little patch for the current master branch that allows to map <C-Up> and <C-Down>. But this is only a quick and nearly untested patch. Hope this helps you a little.
daniel Skotlex <skot...@mailforce.net> wrote: > Greetings, > > I am trying out vimb (3.0-alpha), and so far it looks quite promising. > However, I can't quite get used to some of the default bindings and would > like to replace them with my own, yet I can't figure out how to get modifiers > working with the special keys. Specifically, what I'd like to get is Ctrl + > Up/Down for next / prev search result and Alt + Left/Right for back and > forward in the browser history. > > In vim the former could be done with <C-Up> and <C-Down>, whereas the latter > can be done using escape commands (see here: > https://stackoverflow.com/questions/5379837/is-it-possible-to-mapping-alt-hjkl-in-insert-mode > ). Sadly, these solutions don't work at all with vimb. Is support for these > keys planned for the future, or is there some alternative way to get it to > work as I want? > > Thanks in advance for any hints on how to get these bindings working. > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > vimb-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/vimb-users
From 47b7929b8ba6a29e3d08e86642a7fb1affa033ba Mon Sep 17 00:00:00 2001 From: Daniel Carl <danielc...@gmx.de> Date: Tue, 6 Jun 2017 01:17:43 +0200 Subject: [PATCH] Allow to map <C-Up> and <C-Down>. --- src/map.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/map.c b/src/map.c index 9f2a5ea..4b09a25 100644 --- a/src/map.c +++ b/src/map.c @@ -59,6 +59,9 @@ static struct { * See gdkkeysyms.h and gdkkeysyms-compat.h */ {GDK_SHIFT_MASK, GDK_Tab, 'k', 'B'}, + /* Keys with modifiers must be given before those without */ + {GDK_CONTROL_MASK, GDK_Up, 't', 'u'}, + {GDK_CONTROL_MASK, GDK_Down, 't', 'd'}, {0, GDK_Up, 'k', 'u'}, {0, GDK_Down, 'k', 'd'}, {0, GDK_Left, 'k', 'l'}, @@ -93,6 +96,8 @@ static struct { {"<Down>", 6, CSI_STR "kd", 3}, {"<Left>", 6, CSI_STR "kl", 3}, {"<Right>", 7, CSI_STR "kr", 3}, + {"<C-Up>", 6, CSI_STR "tu", 3}, + {"<C-Down>",8, CSI_STR "td", 3}, {"<F1>", 4, CSI_STR "k1", 3}, {"<F2>", 4, CSI_STR "k2", 3}, {"<F3>", 4, CSI_STR "k3", 3}, -- 2.13.0
signature.asc
Description: PGP signature
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________ vimb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vimb-users