aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-02-13 11:18:33 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-02-18 16:22:20 +0100
commitb2e2b449d26a794f10929a2861df4c1b33af7966 (patch)
tree81ecce2e25d000197e1bffa974f67fdbbeedca2a /config.def.h
parentefc9b14dcee610a494401abf483126c8d6dd9e0a (diff)
downloadvis-b2e2b449d26a794f10929a2861df4c1b33af7966.tar.gz
vis-b2e2b449d26a794f10929a2861df4c1b33af7966.tar.xz
vis: add insfrastructure to support global key mappings
Except for insert/replace mode keys get translated before any key bindings are evaluated. This is useful for non-english/latin keyboard layouts.
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index b7a797e..4902415 100644
--- a/config.def.h
+++ b/config.def.h
@@ -3,6 +3,10 @@
#define ALIAS(name) .alias = name,
#define ACTION(id) .action = &vis_action[VIS_ACTION_##id],
+static const char *keymaps[] = {
+ NULL
+};
+
static const KeyBinding bindings_basic[] = {
{ "<C-z>", ACTION(EDITOR_SUSPEND) },
{ "<Left>", ACTION(CURSOR_CHAR_PREV) },