diff options
author | Andrés <andmarti@gmail.com> | 2021-03-25 13:49:18 -0300 |
---|---|---|
committer | Andrés <andmarti@gmail.com> | 2021-03-25 13:49:18 -0300 |
commit | bbf3d6552cb9a9cc287220acc6d6e83c3091ca3f (patch) | |
tree | 1b409c9a1a06b40ee7a516525c2b10a37d65c631 /src/cmds_command.c | |
parent | dca777c8d1401590f530c26cee2924190116948d (diff) |
Added mappings for command mode.
Handle <ESC> key in mappings.
Fixed vmaps in get_mappings function.
Diffstat (limited to 'src/cmds_command.c')
-rw-r--r-- | src/cmds_command.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cmds_command.c b/src/cmds_command.c index 3f39000..5108b74 100644 --- a/src/cmds_command.c +++ b/src/cmds_command.c @@ -94,6 +94,9 @@ L"ccopy", L"cellcolor", L"color", L"cpaste", +L"cmap", +L"cnoremap", +L"cunmap", L"e csv", L"e tab", L"e txt", @@ -866,11 +869,14 @@ void do_commandmode(struct block * sb) { } else if ( ! wcsncmp(inputline, L"nmap", 4) || ! wcsncmp(inputline, L"imap", 4) || ! wcsncmp(inputline, L"vmap", 4) || + ! wcsncmp(inputline, L"cmap", 4) || ! wcsncmp(inputline, L"inoremap", 8) || ! wcsncmp(inputline, L"nnoremap", 8) || ! wcsncmp(inputline, L"vnoremap", 8) || + ! wcsncmp(inputline, L"cnoremap", 8) || ! wcsncmp(inputline, L"iunmap", 6) || ! wcsncmp(inputline, L"vunmap", 6) || + ! wcsncmp(inputline, L"cunmap", 6) || ! wcsncmp(inputline, L"nunmap", 6) ) { send_to_interp(inputline); |