Mercurial > vim
diff src/ex_docmd.c @ 12457:dfb8254aa735 v8.0.1108
patch 8.0.1108: cannot specify mappings for the terminal window
commit https://github.com/vim/vim/commit/69fbc9e1dab176f345719436cd89d854df0a2abd
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Sep 14 20:37:57 2017 +0200
patch 8.0.1108: cannot specify mappings for the terminal window
Problem: Cannot specify mappings for the terminal window.
Solution: Add the :tmap command and associated code. (Jacob Askeland,
closes #2073)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 14 Sep 2017 20:45:05 +0200 |
parents | da55ea30842c |
children | 937356f8f8d6 |
line wrap: on
line diff
--- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -4209,6 +4209,7 @@ set_one_cmd_context( case CMD_cmap: case CMD_cnoremap: case CMD_lmap: case CMD_lnoremap: case CMD_smap: case CMD_snoremap: + case CMD_tmap: case CMD_tnoremap: case CMD_xmap: case CMD_xnoremap: return set_context_in_map_cmd(xp, cmd, arg, forceit, FALSE, FALSE, ea.cmdidx); @@ -4220,6 +4221,7 @@ set_one_cmd_context( case CMD_cunmap: case CMD_lunmap: case CMD_sunmap: + case CMD_tunmap: case CMD_xunmap: return set_context_in_map_cmd(xp, cmd, arg, forceit, FALSE, TRUE, ea.cmdidx); @@ -4231,6 +4233,7 @@ set_one_cmd_context( case CMD_cmapclear: case CMD_lmapclear: case CMD_smapclear: + case CMD_tmapclear: case CMD_xmapclear: xp->xp_context = EXPAND_MAPCLEAR; xp->xp_pattern = arg;