Repeat key when editing command lines in "set -o vi" mode
To have full use of repeating characters, disable Apple's press-and-hold support as detailed here: https://apple.stackexchange.com/a/332770/55242
Most likely it works in vim because vim changes the terminal mode, while bash does not.