 
         # How to simulate typing?
         editor.commandModeInputView.editor.setText 'def'
-        # How do I tell the view to simulate'enter'?
-        editor.commandModeInputView.trigger 'vim-mode:command-mode-input-confirm'
+        editor.commandModeInputView.editor.trigger 'core:confirm'
 
         expect(editor.getCursorBufferPosition()).toEqual [1, 0]
 

        beforeEach ->
          keydown '/'
          editor.commandModeInputView.editor.setText 'def'
          editor.commandModeInputView.trigger 'vim-mode:command-mode-input-confirm'

        describe "the n keybinding", ->
          it "repeats the last search", ->

        editor.setCursorBufferPosition([3, 0])
        keydown '/'
        editor.commandModeInputView.editor.setText 'def'
        editor.commandModeInputView.editor.trigger 'core:confirm'

        expect(editor.getCursorBufferPosition()).toEqual [1, 0]

