This will switch to buffer #N or previously displayed buffer if current buffer is #N (it uses option weechat.look.jump_current_to_previous_buffer). Default keys alt-1 to alt-0 are now /buffer *N