dot

packages and services management
Log | Files | Refs | README

commit a5ded7682c74ddd1df16ff66c717ed540203534a
parent 5ce2ea0c32c09425d9db1a5a9d64272f08478138
Author: Josuah Demangeon <mail@josuah.net>
Date:   Fri, 21 Apr 2017 14:39:46 +0200

more keybindings

Diffstat:
Mvis/config.h | 37+++++++++++++++++++++++++------------
1 file changed, 25 insertions(+), 12 deletions(-)

diff --git a/vis/config.h b/vis/config.h @@ -26,6 +26,8 @@ static const KeyBinding bindings_basic[] = { { "<M->>", ACTION(CURSOR_LINE_LAST) }, { "<M-v>", ACTION(WINDOW_PAGE_UP) }, { "<C-v>", ACTION(WINDOW_PAGE_DOWN) }, + { "<M-{>", ACTION(CURSOR_PARAGRAPH_PREV) }, + { "<M-}>", ACTION(CURSOR_PARAGRAPH_NEXT) }, { "<C-p>", ACTION(CURSOR_LINE_UP) }, { "<C-n>", ACTION(CURSOR_LINE_DOWN) }, { "<M-a>", ACTION(CURSOR_SENTENCE_PREV) }, @@ -36,6 +38,17 @@ static const KeyBinding bindings_basic[] = { { "<M-f>", ACTION(CURSOR_WORD_END_NEXT) }, { "<C-b>", ACTION(CURSOR_CHAR_PREV) }, { "<C-f>", ACTION(CURSOR_CHAR_NEXT) }, + + { "<C-o>", ACTION(OPEN_LINE_ABOVE) }, + { "<C-y>", ACTION(PUT_BEFORE) }, + + { "<C-l>", ACTION(WINDOW_REDRAW_CENTER) }, + + { "<C-_>", ACTION(UNDO) }, + + { "<C-k>", ALIAS("<Escape>d$i") }, + { "<M-d>", ALIAS("<Escape>dei") }, + { "<C-d>", ACTION(DELETE_CHAR_NEXT) }, { 0 /* empty last element, array terminator */ }, }; @@ -98,8 +111,8 @@ static const KeyBinding bindings_motions[] = { { "l", ACTION(CURSOR_CHAR_NEXT) }, { "L", ACTION(CURSOR_WINDOW_LINE_BOTTOM) }, { "M", ACTION(CURSOR_WINDOW_LINE_MIDDLE) }, - { "n", ACTION(CURSOR_SEARCH_NEXT) }, - { "N", ACTION(CURSOR_SEARCH_PREV) }, + { "n", ACTION(CURSOR_SEARCH_REPEAT_FORWARD) }, + { "N", ACTION(CURSOR_SEARCH_REPEAT_BACKWARD) }, { "T", ACTION(TILL_LEFT) }, { "t", ACTION(TILL_RIGHT) }, { "W", ACTION(CURSOR_LONGWORD_START_NEXT) }, @@ -198,15 +211,15 @@ static const KeyBinding bindings_normal[] = { { ".", ACTION(REPEAT) }, { "~", ALIAS("<vis-operator-case-swap>ll") }, { "C", ALIAS("c$") }, - { "<C-b>", ALIAS("<PageUp>") }, +/* { "<C-b>", ALIAS("<PageUp>") }, */ { "<C-c>", ACTION(CURSORS_REMOVE_COLUMN) }, - { "<C-d>", ACTION(CURSORS_NEXT) }, - { "<C-e>", ACTION(WINDOW_SLIDE_UP) }, - { "<C-f>", ALIAS("<PageDown>") }, +/* { "<C-d>", ACTION(CURSORS_NEXT) }, */ +/* { "<C-e>", ACTION(WINDOW_SLIDE_UP) }, */ +/* { "<C-f>", ALIAS("<PageDown>") }, */ { "<C-i>", ACTION(JUMPLIST_NEXT) }, { "<C-j>", ACTION(CURSORS_NEW_LINE_BELOW) }, { "<C-k>", ACTION(CURSORS_NEW_LINE_ABOVE) }, - { "<C-l>", ACTION(CURSORS_REMOVE_COLUMN_EXCEPT) }, +/* { "<C-l>", ACTION(CURSORS_REMOVE_COLUMN_EXCEPT) }, */ /* { "<C-n>", ACTION(CURSOR_SELECT_WORD) }, */ { "<C-o>", ACTION(JUMPLIST_PREV) }, /* { "<C-p>", ACTION(CURSORS_REMOVE_LAST) }, */ @@ -280,14 +293,14 @@ static const KeyBinding bindings_visual[] = { { "<", ALIAS("<vis-operator-shift-left>gv") }, { ">", ALIAS("<vis-operator-shift-right>gv") }, { "<Backspace>", ALIAS("d") }, - { "<C-b>", ALIAS("<PageUp>") }, +/* { "<C-b>", ALIAS("<PageUp>") }, */ { "<C-c>", ACTION(CURSORS_REMOVE_COLUMN) }, - { "<C-d>", ACTION(CURSORS_NEXT) }, - { "<C-f>", ALIAS("<PageDown>") }, +/* { "<C-d>", ACTION(CURSORS_NEXT) }, */ +/* { "<C-f>", ALIAS("<PageDown>") }, */ { "<C-h>", ALIAS("<Backspace>") }, { "<C-j>", ALIAS("<C-d>") }, { "<C-k>", ALIAS("<C-u>") }, - { "<C-l>", ACTION(CURSORS_REMOVE_COLUMN_EXCEPT) }, +/* { "<C-l>", ACTION(CURSORS_REMOVE_COLUMN_EXCEPT) }, */ { "<C-n>", ACTION(CURSORS_NEW_MATCH_NEXT) }, { "<C-p>", ACTION(CURSORS_REMOVE_LAST) }, { "<C-u>", ACTION(CURSORS_PREV) }, @@ -329,7 +342,7 @@ static const KeyBinding bindings_readline[] = { }; static const KeyBinding bindings_insert[] = { - { "<C-d>", ALIAS("<vis-operator-shift-left><vis-operator-shift-left>") }, +/* { "<C-d>", ALIAS("<vis-operator-shift-left><vis-operator-shift-left>") }, */ { "<C-i>", ALIAS("<Tab>") }, { "<C-j>", ALIAS("<Enter>") }, { "<C-m>", ALIAS("<Enter>") },