DEV Community

Discussion on: Today I Learned: Some VIM tricks

Collapse
 
jorinvo profile image
jorin

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

Collapse
 
shriharshmishra profile image
Shriharsh

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