     _.times @getCount(@defaultCount), ->
       fn()
 
-  isAt: (cursor, where) ->
+  at: (where, cursor) ->
     switch where
-      when 'BoL' then cursor.isAtBeginningOfLine()
-      when 'EoL' then cursor.isAtEndOfLine()
-      when 'EoF' then cursor.getEofBufferPosition().isEqual(@editor.getEofBufferPosition())
-      when 'BoF' then cursor.getEofBufferPosition().isEqual(Point.ZERO)
+      when 'BOL' then cursor.isAtBeginningOfLine()
+      when 'EOL' then cursor.isAtEndOfLine()
+      when 'BOF' then cursor.getBufferPosition().isEqual(Point.ZERO)
+      when 'EOF' then cursor.getBufferPosition().isEqual(@editor.getEofBufferPosition())
 
   getLastScreenRow: ->
     @editor.getLastScreenRow()


      if next.isEqual(current)
        cursor.moveRight()
        if cursor.isAtEndOfLine()
          cursor.moveDown()
          cursor.moveToBeginningOfLine()


  moveCursor: (cursor) ->
    @countTimes =>
      cursor.moveToBeginningOfWord()
      while not @isWholeWord(cursor) and not @at('BOF', cursor)
        cursor.moveToBeginningOfWord()

  isWholeWord: (cursor) ->
    char = cursor.getCurrentWordPrefix().slice(-1)
    AllWhitespace.test(char)

class MoveToNextWord extends Motion
  @extend()
