// Change move left public void testMoveLeft7() throws Exception { console.init(); console.toInsert(); console.on(KeyStrokes.of("word")); console.on(Operation.VI_MOVEMENT_MODE); console.on(Operation.VI_CHANGE_TO); console.on(Operation.BACKWARD_CHAR); console.on(Operation.SELF_INSERT, 'X'); assertEquals("woXd", getCurrentLine()); }
// Change move left public void testMoveLeft6() throws Exception { console.init(); console.toInsert(); console.on(KeyStrokes.of("0123456789ABCDEFHIJLMNOPQRSTUVWXYZ")); console.on(Operation.VI_MOVEMENT_MODE); console.on(Operation.VI_ARG_DIGIT, '1'); console.on(Operation.VI_ARG_DIGIT, '3'); console.on(Operation.VI_CHANGE_TO); console.on(Operation.BACKWARD_CHAR); console.on(Operation.SELF_INSERT, '_'); console.on(Operation.SELF_INSERT, 'H'); console.on(Operation.SELF_INSERT, 'I'); assertEquals("0123456789ABCDEFHIJL_HIZ", getCurrentLine()); }