   constructor: (@vimState) ->
     {@editor, @editorElement} = @vimState
 
-  isNormalMode: ->
-    @mode is 'normal'
-
-  isInsertMode: ->
-    @mode is 'insert'
-
-  isOperatorPendingMode: ->
-    @mode is 'operator-pending'
+  isNormalMode: -> @mode is 'normal'
+  isInsertMode: -> @mode is 'insert'
+  isOperatorPendingMode: -> @mode is 'operator-pending'
 
   isVisualMode: (submode=null) ->
     if submode

        selection.selectLine(row)
    @hideCursors()

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

      @selectCharacterwise()
    @vimState.operationStack.push new BlockwiseSelect(@vimState)

  resetVisualMode: ->
    @activateVisualMode(@submode)

  activateOperatorPendingMode: ->
    @deactivateInsertMode()
    @setMode('operator-pending')

  resetNormalMode: ->
    @vimState.operationStack.clear()
    @editor.clearSelections()
