mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	'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:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Matthew Malcomson
					Matthew Malcomson