Skip to content
loading...

re: Today I Learned: Some VIM tricks VIEW POST

FULL DISCUSSION
 

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. :)

code of conduct - report abuse