@register(u'forward-char')
def forward_char(event):
 buff = event.current_buffer
 buff.cursor_position += buff.document.get_cursor_right_position(count=event.arg)

@ register ( u'forward-char' ) def forward_char ( event ) : buff = event . current_buffer buff . cursor_position += buff . document . get_cursor_right_position ( count = event . arg )
move forward a character .