       type = utils.copyType(text)
       {text, type}
     else
-      @registers[name]
+      atom.workspace.vimState.registers[name]
 
   # Private: Sets the value of a given register.
   #

    if name == '*'
      atom.clipboard.write(value.text)
    else
      @registers[name] = value

  ##############################################################################
  # Commands

  opStack: null
  mode: null
  submode: null

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

    @setupCommandMode()
