Implemented 'replace-char' and bind for vim mode

I've implemented 'replace-char' command for 'r' binding in vim mode. I hope it will be correct enough.