     @submode = null
     @changeModeClass('insert-mode')
 
-    @editor.getCursor().marker.off 'changed', @moveCursorBeforeNewline
-
     @updateStatusBar()
 
   # Private: Used to enable visual mode.

    @mode = 'visual'
    @submode = type
    @changeModeClass('visual-mode')

    @editor.getCursor().marker.off 'changed', @moveCursorBeforeNewline

    if @submode == 'linewise'
      @editor.selectLine()

        commands[commandName] = (event) => @pushOperations(operationFn(event))
    @registerCommands(commands)

  # Private: Push the given operations onto the operation stack, then process
  # it.
  pushOperations: (operations) ->
