In my previous question How to toggle case of word under cursor in vi mode in bash?, I have asked how to make word under cursor upper. The command for that is
upcase-word. But unfortunately, that is only for uppering from start of word, to its end. I would like to it the other way and upper from end of word to the start. An example (suppose brackets
 as cursor position)
bla bla someword
bla bla [S]OMEWORD
In vi editor, I can achieve this with this:
:inoremap uu <esc>viwUea
So I have tried to it in
.bashrc like this
-set o vi bind '"uu":"\eB"upcase-word'
That is, I am trying to make regular movement
B to the end of word and then apply the command
upcase-word, But I have no clue how to sting them together. I now it would work separately (e.g. this work -
bind '"jk":vi-movement-mode', but stringing movements and comands does not. Is it possible?