How to open previously opened buffer in Vim?

How to open previously opened buffer in Vim?

I have 4 buffers, say buf1 - buf4.

I currently open buf1 and then open buf3 by doing :b3 .

Now, how can I return to buf1 (previously open buffer) without execution :b1 ?

Ctrl + P will go to buf2, the previous buffer in the list.

+4
source share
1 answer
 :b# 

Opens a previously opened buffer.

Reusing the command switches between buffers.

Thanks to related questions on this site!

+6
source

All Articles