TLDR: Can I make Vim automatically switch to the buffer that I just opened?
Please tell me if I'm using Vim wrong in this case or something.
I'm currently working with
foo.txt. I want to look at
bar.txt. I type
:badd bar.txt. I now have a new buffer for
bar.txt, but I'm still looking at
foo.txt, and I'm annoyed that Vim didn't switch to
The thing I just opened should be the focus, not put in the background. It seems like every other piece of software acts differently. I use
set hidden, so it shouldn't matter if I have unsaved changes in