 
     @vimState.activateCommandMode()
 
-    if @motion.isLinewise?()
+    if @motion? and @motion.isLinewise?()
       @editor.moveToPreviousWordBoundary()
       @editor.moveToFirstCharacterOfLine()
 


    @vimState.activateCommandMode()

    if @motion.isLinewise?()
      @editor.moveToPreviousWordBoundary()
      @editor.moveToFirstCharacterOfLine()



    @vimState.activateCommandMode()

    if @motion? and @motion.isLinewise?()
      @editor.moveToPreviousWordBoundary()
      @editor.moveToFirstCharacterOfLine()

