aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-09-10 18:30:18 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-09-10 19:11:25 +0200
commit47761c6e954a39b93515e3d3193d8736014d1b48 (patch)
tree74b8d5b5ff2113ef8c40dde86371b55ac206b2f3 /config.def.h
parent5fbe797b8aa50c434634da30bad1ad67f2ef98fb (diff)
downloadvis-47761c6e954a39b93515e3d3193d8736014d1b48.tar.gz
vis-47761c6e954a39b93515e3d3193d8736014d1b48.tar.xz
Add normal mode commands 'A', 'C', 'D' and 'I'
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/config.def.h b/config.def.h
index c704b2d..b56ce4a 100644
--- a/config.def.h
+++ b/config.def.h
@@ -332,6 +332,10 @@ static KeyBinding vis_normal[] = {
{ { CONTROL('w'), NONE('k') }, call, { .f = editor_window_prev } },
{ { CONTROL('F') }, cursor, { .m = window_page_up } },
{ { CONTROL('B') }, cursor, { .m = window_page_down } },
+ { { NONE('A') }, insertmode, { .i = MOVE_LINE_END } },
+ { { NONE('C') }, change, { .i = MOVE_LINE_END } },
+ { { NONE('D') }, delete, { .i = MOVE_LINE_END } },
+ { { NONE('I') }, insertmode, { .i = MOVE_LINE_START } },
{ { NONE('.') }, repeat, { } },
{ { NONE('n') }, movement, { .i = MOVE_SEARCH_FORWARD } },
{ { NONE('N') }, movement, { .i = MOVE_SEARCH_BACKWARD } },
@@ -374,7 +378,7 @@ static KeyBinding vis_readline_mode[] = {
{ { CONTROL('c') }, switchmode, { .i = VIS_MODE_NORMAL } },
BACKSPACE( call, f, editor_backspace_key ),
{ { CONTROL('D') }, call, { .f = editor_delete_key } },
- { { CONTROL('W') }, delete_word, { NULL } },
+ { { CONTROL('W') }, delete, { .i = MOVE_WORD_START_PREV } },
{ /* empty last element, array terminator */ },
};