diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2014-09-30 16:08:26 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2014-09-30 16:08:26 +0200 |
| commit | fb80e02464b06e81c2c7e68cd3323fa56c4b9a6d (patch) | |
| tree | 7b6c006ab856cd5afb700a184e99a76787946ed8 /config.def.h | |
| parent | 9a0407119f41dab3264f9d6e52a6adf35b433cac (diff) | |
| download | vis-fb80e02464b06e81c2c7e68cd3323fa56c4b9a6d.tar.gz vis-fb80e02464b06e81c2c7e68cd3323fa56c4b9a6d.tar.xz | |
Promote join to an operator
Make 'J' work on a selection in visual mode.
Diffstat (limited to 'config.def.h')
| -rw-r--r-- | config.def.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config.def.h b/config.def.h index a10b2ad..ab44ddd 100644 --- a/config.def.h +++ b/config.def.h @@ -385,7 +385,7 @@ static KeyBinding vis_mode_normal[] = { { { NONE('.') }, repeat, { NULL } }, { { NONE('o') }, openline, { .i = MOVE_LINE_NEXT } }, { { NONE('O') }, openline, { .i = MOVE_LINE_PREV } }, - { { NONE('J') }, joinline, { .i = MOVE_LINE_NEXT } }, + { { NONE('J') }, join, { .i = MOVE_LINE_NEXT } }, { { NONE('x') }, delete, { .i = MOVE_CHAR_NEXT } }, { { NONE('r') }, replace, { NULL } }, { { NONE('i') }, switchmode, { .i = VIS_MODE_INSERT } }, @@ -421,6 +421,7 @@ static KeyBinding vis_mode_visual[] = { { { NONE('c') }, operator, { .i = OP_CHANGE } }, { { NONE('r') }, operator, { .i = OP_CHANGE } }, { { NONE('s') }, operator, { .i = OP_CHANGE } }, + { { NONE('J') }, operator, { .i = OP_JOIN } }, { /* empty last element, array terminator */ }, }; |
