From 0a6098a1d4debda1d57f4a7cd42bb5c49d65cddc Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Thu, 17 Nov 2016 12:28:41 +0100 Subject: 39962: bind vi case conversion widgets u/U in visual mode and g~ from normal mode --- ChangeLog | 3 +++ Src/Zle/zle_keymap.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index ce2e13871..f51d1a0de 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2016-11-17 Oliver Kiddle + * 39962: Src/Zle/zle_keymap.c: bind vi case conversion widgets + u/U in visual mode and g~ from normal mode + * 39959: Src/Zle/zle_vi.c, Test/X02zlevi.ztst: when repeating vi changes advance through the numbered killring registers. Also fix numeric arguments with vi-repeat-change. diff --git a/Src/Zle/zle_keymap.c b/Src/Zle/zle_keymap.c index 053b097bb..24e8d1964 100644 --- a/Src/Zle/zle_keymap.c +++ b/Src/Zle/zle_keymap.c @@ -1369,6 +1369,8 @@ default_bindings(void) bindkey(vismap, "\33", refthingy(t_deactivateregion), NULL); bindkey(vismap, "o", refthingy(t_exchangepointandmark), NULL); bindkey(vismap, "p", refthingy(t_putreplaceselection), NULL); + bindkey(vismap, "u", refthingy(t_vidowncase), NULL); + bindkey(vismap, "U", refthingy(t_viupcase), NULL); bindkey(vismap, "x", refthingy(t_videlete), NULL); bindkey(vismap, "~", refthingy(t_vioperswapcase), NULL); @@ -1379,6 +1381,7 @@ default_bindings(void) bindkey(amap, "gg", refthingy(t_beginningofbufferorhistory), NULL); bindkey(amap, "gu", refthingy(t_vidowncase), NULL); bindkey(amap, "gU", refthingy(t_viupcase), NULL); + bindkey(amap, "g~", refthingy(t_vioperswapcase), NULL); bindkey(amap, "g~~", NULL, "g~g~"); bindkey(amap, "guu", NULL, "gugu"); bindkey(amap, "gUU", NULL, "gUgU"); -- cgit 1.4.1