DEV Community


Discussion on: Today I Learned: Some VIM tricks

jorinvo profile image

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!.

shriharshmishra profile image
Shriharsh Author

Thanks Jorin. :w with filepath is new to me. :)