#148 #149: improve mode handling and enable repetition of commands performed in visual and visual line mode