       return unless @setRegister?
 
       if newText == ''
-        @setRegister('"', text: oldText, type: utils.copyType(oldText))
-
-  # Private: Creates the plugin's commands
+        @setRegister('"', text: oldText, type: Utils.copyType(oldText))
+
+  # Private: Creates the plugin's Commands
   #
   # Returns nothing.
   setupCommandMode: ->
     # Commands here start a new mode instead of popping the operation stack
     # immediately.
     @editorView.command 'vim-mode:search', =>
-      @currentSearch = new motions.Search(@editorView, @)
+      @currentSearch = new Motions.Search(@editorView, @)
     @editorView.command 'vim-mode:reverse-search', =>
-      @currentSearch = new motions.Search(@editorView, @)
+      @currentSearch = new Motions.Search(@editorView, @)
       @currentSearch.reversed()
     @editorView.command 'vim-mode:replace', =>
-      @currentReplace = new operators.Replace(@editorView, @)
+      @currentReplace = new Operators.Replace(@editorView, @)
 
     @editorView.command 'vim-mode:activate-command-mode', => @activateCommandMode()
     @editorView.command 'vim-mode:activate-insert-mode', => @activateInsertMode()


    for operation in operations
      # Motions in visual mode perform their selections.
      if @mode is 'visual' and operation instanceof motions.Motion
        operation.execute = operation.select

      @opStack.push(operation) if operation

      # If we've received an operator in visual mode, mark the current
      # selection as the motion to operate on.
      if @mode is 'visual' and operation instanceof operators.Operator
        @opStack.push(new motions.CurrentSelection(@))

      @processOpStack()


      return

    unless @topOperation().isComplete()
      if @mode is 'command' and @topOperation() instanceof Operators.Operator
        @activateOperatorPendingMode()
      return

