vim Buffers Quickly switch to previous buffer, or to any buffer by number

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Example

<C-^> will switch to and from the previous edited file. On most keyboards <C-^> is CTRL-6.

3<C-^> will switch to buffer number 3. This is very quick, but only if you know the buffer number.

You can see the buffer numbers from :ls or from a plugin such as MiniBufExplorer.



Got any vim Question?