How do I switch to the previous buffer in Vim?
:bprev
The :bprev (or :bp for short) command switches to the previous buffer in Vim's buffer list.
:bprev
The :bprev (or :bp for short) command switches to the previous buffer in Vim's buffer list.
:ls
The :ls command displays a list of all open buffers in Vim, showing their buffer number, status indicators, file name, and the line the cursor was last on.
:split
The :split command (or s) splits the current window horizontally, creating a new window above with the same file.