diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-02-10 22:23:24 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-02-10 22:31:52 +0100 |
| commit | 197ab824206335eab7ceed774ddeccac18fafc09 (patch) | |
| tree | 3f31dcbb2b0c2031675c97fb5e6084f115649556 /config.def.h | |
| parent | 66a56c827efcac36e07d6ac34bd05681ab8364e9 (diff) | |
| download | vis-197ab824206335eab7ceed774ddeccac18fafc09.tar.gz vis-197ab824206335eab7ceed774ddeccac18fafc09.tar.xz | |
vis: simplify modes implementation
Make replace mode a child of insert mode and visual line a
child of visual mode. This means any key binding for the
former is automatically available in the latter. Also keys
can not be unmapped solely from the child modes.
Diffstat (limited to 'config.def.h')
| -rw-r--r-- | config.def.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/config.def.h b/config.def.h index 774871b..5d53e41 100644 --- a/config.def.h +++ b/config.def.h @@ -330,11 +330,6 @@ static const KeyBinding **default_bindings[] = { }, [VIS_MODE_VISUAL_LINE] = (const KeyBinding*[]){ bindings_visual_line, - bindings_visual, - bindings_textobjects, - bindings_operators, - bindings_motions, - bindings_basic, NULL, }, [VIS_MODE_INSERT] = (const KeyBinding*[]){ @@ -345,9 +340,6 @@ static const KeyBinding **default_bindings[] = { }, [VIS_MODE_REPLACE] = (const KeyBinding*[]){ bindings_replace, - bindings_insert, - bindings_readline, - bindings_basic, NULL, }, }; |
