@register(u'end-of-line')
def end_of_line(event):
 buff = event.current_buffer
 buff.cursor_position += buff.document.get_end_of_line_position()

@ register ( u'end-of-line' ) def end_of_line ( event ) : buff = event . current_buffer buff . cursor_position += buff . document . get_end_of_line_position ( )
move to the end of the line .