'Remapping Alt-rightcursor in Bash/Readline + PuTTY

I want to remap Alt-B (backward-word) in Bash (accessed over SSH/PuTTY). I managed to remap Alt-F (forward-word) in .inputrc:

set editing-mode vi

"^[": backward-word
"^[": forward-word

(obviously ^[ character is entered using Ctrl-V and then key combination like Alt-rightcursor)

Alt-rightcursor works. But Alt-leftcursor does not move one word back.

What's the reason and how can I fix this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source