   # Prefixes the given command names with 'vim-mode:' to reduce redundancy in
   # the provided object.
   registerCommands: (commands) ->
-    for commandName, fn of commands
+    for name, fn of commands
       do (fn) =>
-        @subscriptions.add(atom.commands.add(@editorElement, "vim-mode:#{commandName}", fn))
+        @subscriptions.add atom.commands.add(@editorElement, "vim-mode:#{name}", fn)
 
   # Private: Register multiple Operators via an {Object} that
   # maps command names to functions that return operations to push.

        @processOperations()
    finally
      @processing = false
      @ensureCursorIsWithinLine(cursor) for cursor in @editor.getCursors()

  onDidFailToCompose: (fn) ->
    @emitter.on('failed-to-compose', fn)

      when '*', '+'
        atom.clipboard.write(value.text)
      when '_'
        null
      else
        if /^[A-Z]$/.test(name)
          @appendRegister(name.toLowerCase(), value)
