Refactor how vi-mode repeated commands are treated. Also fixes the behavior of dw,cw,ce,etc. (see #86).