From 197ab824206335eab7ceed774ddeccac18fafc09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 10 Feb 2016 22:23:24 +0100 Subject: 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. --- config.def.h | 8 -------- 1 file changed, 8 deletions(-) (limited to 'config.def.h') 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, }, }; -- cgit v1.2.3