     if name == '*'
       atom.clipboard.write(value.text)
     else
-      @registers[name] = value
+      atom.workspace.vimState.registers[name] = value
 
   ##############################################################################
   # Commands

  opStack: null
  mode: null
  submode: null
  registers: null

  constructor: (@editorView) ->
    @editor = @editorView.editor
    @opStack = []
    @history = []
    @registers = {}
    @mode = 'command'

    @setupCommandMode()

      type = utils.copyType(text)
      {text, type}
    else
      atom.workspace.vimState.registers[name]

  # Private: Sets the value of a given register.
  #
