You can also use :e path/to/file.txt to open any file or if you want to write a buffer to another file you can do :w path/to//other/file.txt.
Also not that you can open a new empty buffer with :new (in split view) or :enew.
If you want to get rid of a buffer without saving it, you can do :bd!.
Thanks Jorin. :w with filepath is new to me. :)
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.