Implement buffer history for alt+a and alt+<, alt+>, and alt+/