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.
:e path/to/file.txt
:w path/to//other/file.txt
Also not that you can open a new empty buffer with :new (in split view) or :enew.
:new
:enew
If you want to get rid of a buffer without saving it, you can do :bd!.
:bd!
Thanks Jorin. :w with filepath is new to me. :)
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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. :)