Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 401 Bytes

tip44.md

File metadata and controls

13 lines (8 loc) · 401 Bytes

Tip44: Save Files to Nonexistent Directories

<C-g>

echo the name and status of the current file.

When we run the :write command, Vim will attempt to write the contents of that buffer to a new file using the filepath that was specified when the buffer was created.

:!mkdir -p %:h

-p: tell mkdir to create intermediate directories.

:write