Skip to content

07.Open Files and Save Them to Disk

42. Open a File by Its Filepath Using :edit

The :edit command allows us to open files from within Vim, either by specifying an absolute or a relative filepath. We'll also learn how to specify a path relative to the active buffer.

Open a File Relative to the Current Working Directory

Open a file Relative to the Active File Directory

43.