From 3b304fc04ac0ac7ffe24ba4b83fc0d0ba4b80cfd Mon Sep 17 00:00:00 2001 From: Matthew Malcomson Date: Wed, 24 Jan 2018 13:16:27 +0000 Subject: 'keymap' now uses :lmap instead of :lnoremap This means that the major way that :lmap mappings are applied works as one would expect with macros. This also means that having a translation with 'keymap' does not preclude using mappings in insert mode with :imap. --- src/nvim/digraph.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nvim/digraph.c') diff --git a/src/nvim/digraph.c b/src/nvim/digraph.c index bc4c12e0b7..ffd13da48b 100644 --- a/src/nvim/digraph.c +++ b/src/nvim/digraph.c @@ -1827,12 +1827,12 @@ void ex_loadkeymap(exarg_T *eap) xfree(line); } - // setup ":lnoremap" to map the keys + // setup ":lmap" to map the keys for (int i = 0; i < curbuf->b_kmap_ga.ga_len; ++i) { vim_snprintf((char *)buf, sizeof(buf), " %s %s", ((kmap_T *)curbuf->b_kmap_ga.ga_data)[i].from, ((kmap_T *)curbuf->b_kmap_ga.ga_data)[i].to); - (void)do_map(2, buf, LANGMAP, FALSE); + (void)do_map(0, buf, LANGMAP, FALSE); } p_cpo = save_cpo; -- cgit