From 98bca99b2aeffb55b8aee765a7a6de13bdac4506 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sun, 25 Sep 2016 11:38:00 +0200 Subject: vis: disable language map for replacement character of `r` command The character following the `r` command in normal mode should be treated as regular input given in insert/replace mode, that is no tranformation should be applied. Temporarily disable the language map for this reason. Close #382 --- vis.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vis.h') diff --git a/vis.h b/vis.h index a9ffb90..142123a 100644 --- a/vis.h +++ b/vis.h @@ -171,6 +171,8 @@ bool vis_action_register(Vis*, const KeyAction*); /* add a key mapping which is applied for all modes except insert/replace * before any key bindings are evaluated */ bool vis_keymap_add(Vis*, const char *key, const char *mapping); +/* disable the keymap for the next key press */ +void vis_keymap_disable(Vis*); enum VisOperator { VIS_OP_DELETE, -- cgit v1.2.3