'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.
This commit is contained in:
Matthew Malcomson
2018-01-24 13:16:27 +00:00
parent d989051220
commit 3b304fc04a
2 changed files with 80 additions and 80 deletions

View File

@@ -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;