diff options
author | Matthew Malcomson <hardenedapple@gmail.com> | 2018-01-24 13:16:27 +0000 |
---|---|---|
committer | Matthew Malcomson <hardenedapple@gmail.com> | 2018-03-14 10:39:14 +0000 |
commit | 3b304fc04ac0ac7ffe24ba4b83fc0d0ba4b80cfd (patch) | |
tree | bfe3b284814aabe71bfd4b66bc7dc31f7dbcb334 /src/nvim/digraph.c | |
parent | d989051220a5137e7490ca5020225da109e0af0b (diff) | |
download | rneovim-3b304fc04ac0ac7ffe24ba4b83fc0d0ba4b80cfd.tar.gz rneovim-3b304fc04ac0ac7ffe24ba4b83fc0d0ba4b80cfd.tar.bz2 rneovim-3b304fc04ac0ac7ffe24ba4b83fc0d0ba4b80cfd.zip |
'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.
Diffstat (limited to 'src/nvim/digraph.c')
-rw-r--r-- | src/nvim/digraph.c | 4 |
1 files changed, 2 insertions, 2 deletions
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), "<buffer> %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; |