 CountManager = require './count-manager'
 MarkManager = require './mark-manager'
 ModeManager = require './mode-manager'
+
+path = require 'path'
 
 module.exports =
 class VimState

      'generate-introspection-report': => @generateIntrospectionReport()
      'jump-to-related': => @jumpToRelated()
      'report-key-binding': => @reportKeyBinding()

    # InsertMode
    # -------------------------


  ensureCursorIsWithinLine: (cursor) =>
    return if @operationStack.isProcessing() or (not @isNormalMode())
    # [FIXME] I'm developping in buffer 'tryit.coffee'.
    # So disable auto-cursor modification especially for this bufffer temporarily.
    return if path.basename(@editor.getPath()) is 'tryit.coffee'

    {goalColumn} = cursor
    if cursor.isAtEndOfLine() and not cursor.isAtBeginningOfLine()
