add word navigation and scroll to BEGIN, END; and the emacs's stype undo