         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", ->

        editor.setCursorScreenPosition([0, 0])

      it "repeats N times", ->
        keydown('3')
        keydown('x')

        expect(editor.getText()).toBe '456789abc'

      it "repeats NN times", ->
        keydown('1')
        keydown('0')
        keydown('x')

        expect(editor.getText()).toBe 'bc'

    describe "with motions", ->

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

  keystroke = (keys, options={}) ->
    options.element ?= editorElement
    for key in keys.split('')
      helpers.keydown(key, options)

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