diff options
author | Andrés M <andmarti1424@users.noreply.github.com> | 2021-03-21 11:57:38 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-21 11:57:38 -0300 |
commit | c263186300ff673c0426a86886948fe8502b3e7c (patch) | |
tree | 933b29a4cc56bc6de712fb4f706c44fa697dcd2f /src/gram.y | |
parent | c8cb3205919b7e224e59edeb187920be94e1a91f (diff) | |
parent | ac7acf6567f1afa2d0ccb2cef8600525f02a5ad9 (diff) |
Merge pull request #353 from ayroblu/add_visual_mode
Add visual mode mapping
Diffstat (limited to 'src/gram.y')
-rwxr-xr-x | src/gram.y | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -204,10 +204,13 @@ token S_YANKCOL %token S_UNDO %token S_IMAP %token S_NMAP +%token S_VMAP %token S_INOREMAP %token S_NNOREMAP +%token S_VNOREMAP %token S_NUNMAP %token S_IUNMAP +%token S_VUNMAP %token S_COLOR %token S_CELLCOLOR %token S_UNFORMAT @@ -603,6 +606,11 @@ command: scxfree($2); scxfree($3); } + | S_VMAP STRING STRING { + add_map($2, $3, VISUAL_MODE, 1); + scxfree($2); + scxfree($3); + } | S_NNOREMAP STRING STRING { add_map($2, $3, NORMAL_MODE, 0); scxfree($2); @@ -614,6 +622,11 @@ command: scxfree($2); scxfree($3); } + | S_VNOREMAP STRING STRING { + add_map($2, $3, VISUAL_MODE, 0); + scxfree($2); + scxfree($3); + } | S_NUNMAP STRING { del_map($2, NORMAL_MODE); @@ -624,6 +637,10 @@ command: del_map($2, INSERT_MODE); scxfree($2); } + | S_VUNMAP STRING { + del_map($2, VISUAL_MODE); + scxfree($2); + } | S_COLOR STRING { #ifdef USECOLORS |