 Panes = require './panes'
 Scroll = require './scroll'
 {$$, Point, Range} = require 'atom'
+Marker = require 'atom'
 
 module.exports =
 class VimState

  setMark: (name, pos) ->
    # check to make sure name is in [a-z] or is `
    if (charCode = name.charCodeAt(0)) >= 96 and charCode <= 122
      @marks[name] = pos

  # Public: Append a search to the search history.
  #

  registerChangeHandler: (buffer) ->
    buffer.on 'changed', ({newRange, newText, oldRange, oldText}) =>
      return unless @setRegister?
      if newText == ''
        @setRegister('"', text: oldText, type: Utils.copyType(oldText))

