       else
         if @vimState.isMode('normal') and @peekTop().isOperator()
           @vimState.activate('operator-pending')
+
+        # Temporary set while command is running
+        if scope = @peekTop().constructor.getCommandNameWithoutPrefix?()
+          scope += "-pending"
+          @editorElement.classList.add(scope)
+          @subscribe new Disposable =>
+            @editorElement.classList.remove(scope)
     catch error
       if error.instanceof?('OperatorError')
         @vimState.activate('reset')

    @vimState.reset()

  peekTop: ->
    _.last @stack

  reduce: ->
    until @stack.length is 1
      operation = @stack.pop()
      _.last(@stack).setTarget(operation)

  reset: ->
    @stack = []

    operation

  run: (klass, properties) ->
    klass = Base.getClass(klass) if _.isString(klass)
    try
      # When identical operator repeated, it set target to MoveToRelativeLine.
