       @selectCharacterwise()
     @vimState.operationStack.push new BlockwiseSelect(@vimState)
 
-  # Private: Used to re-enable visual mode
   resetVisualMode: ->
     @activateVisualMode(@submode)
 
-  # Private: Used to enable operator-pending mode.
   activateOperatorPendingMode: ->
     @deactivateInsertMode()
     @setMode('operator-pending')
 
-  # Private: Resets the normal mode back to it's initial state.
-  #
-  # Returns nothing.
   resetNormalMode: ->
     @vimState.operationStack.clear()
     @editor.clearSelections()

  constructor: (@vimState) ->
    {@editor, @editorElement} = @vimState

  isNormalMode: ->
    @mode is 'normal'

  isInsertMode: ->
    @mode is 'insert'

  isOperatorPendingMode: ->
    @mode is 'operator-pending'

  isVisualMode: (submode=null) ->
    if submode

        selection.selectLine(row)
    @hideCursors()

  selectCharacterwise: (oldSubmode) ->
    if @editor.getLastSelection().isEmpty()
      @editor.selectRight()
