feat: ":wall ++p" creates parent dirs for each buf #36121

`:wall ++p` will create parent directories if they do not exist, for
each modified buffer
This commit is contained in:
Rob Pilling
2025-10-11 16:27:58 +01:00
committed by GitHub
parent f0b9232ad8
commit ce27423132
5 changed files with 39 additions and 9 deletions

View File

@@ -996,11 +996,13 @@ slower (but safer).
WRITING WITH MULTIPLE BUFFERS *buffer-write*
*:wa* *:wall*
:wa[ll] Write all changed buffers. Buffers without a file
:wa[ll] [++opt] Write all changed buffers. Buffers without a file
name cause an error message. Buffers which are
readonly are not written.
For ++opt see |++opt|, but only ++p is effective, and
applies to each written file.
:wa[ll]! Write all changed buffers, even the ones that are
:wa[ll]! [++opt] Write all changed buffers, even the ones that are
readonly. Buffers without a file name are not
written and cause an error message.

View File

@@ -197,6 +197,8 @@ EDITOR
• |gx| in help buffers opens the online documentation for the tag under the
cursor.
• |:Undotree| for visually navigating the |undo-tree|
• |:wall| permits a |++p| option for creating parent directories when writing
changed buffers.
EVENTS