     else
       @activate('normal')
 
-    @subscriptions.add @editor.onDidDestroy(@destroy.bind(this))
+    @editor.onDidDestroy(@destroy)
     @constructor.vimStatesByEditor.set(@editor, this)
 
   getConfig: (param) ->

    @operationStack.reset() if @__operationStack?
    @mutationManager.reset() if @__mutationManager?

    # @register.reset()
    # @searchHistory.reset()
    # @hover.reset()
    # @operationStack.reset()
    # @mutationManager.reset()

  isVisible: ->
    @editor in getVisibleEditors()


    @editorElement = @editor.element
    @emitter = new Emitter
    @subscriptions = new CompositeDisposable
    @previousSelection = {}
    @observeSelections()

