         editor.setCursorScreenPosition([0, 0])
 
       it "repeats N times", ->
-        keydown('d')
-        keydown('2')
-        keydown('w')
-
+        keystroke 'd2w'
         expect(editor.getText()).toBe 'three'
 
     describe "in visual mode", ->

    options.element ?= editorElement
    helpers.keydown(key, options)

  describe "Repeat", ->
    describe "with operations", ->
      beforeEach ->

        editor.setCursorScreenPosition([0, 0])

      it "repeats movements in visual mode", ->
        keystroke 'v2w'
        expect(editor.getCursorScreenPosition()).toEqual [0, 9]

  describe "Register", ->
