The Alternate Buffer Register


The alternate buffer register stores the name of the previously-accessed buffer, which makes it convenient to switching back and forth between buffers.

One of the simplest ways to leverage this buffer is using the command :buffer#, which switches to the buffer stored in the # register. The alternate buffer is updated each time the buffer changes, so that the command can be used to quickly switch back and forth between two buffers.