From c108d565a1aa36d6c0cbd92fb198e9f7d72e4a0b Mon Sep 17 00:00:00 2001 From: Omnikar Date: Thu, 30 Dec 2021 22:10:21 -0500 Subject: [PATCH] Add documentation * `:write-quit` * `:write-quit!` * `:write-all` * `:write-quit-all` * `:write-quit-all!` * `:quit-all` * `:quit-all!` --- runtime/help/typable-commands/quit-all!.txt | 6 ++++++ runtime/help/typable-commands/quit-all.txt | 6 ++++++ runtime/help/typable-commands/write-all.txt | 7 +++++++ runtime/help/typable-commands/write-quit!.txt | 9 +++++++++ runtime/help/typable-commands/write-quit-all!.txt | 10 ++++++++++ runtime/help/typable-commands/write-quit-all.txt | 10 ++++++++++ runtime/help/typable-commands/write-quit.txt | 8 ++++++++ 7 files changed, 56 insertions(+) create mode 100644 runtime/help/typable-commands/quit-all!.txt create mode 100644 runtime/help/typable-commands/quit-all.txt create mode 100644 runtime/help/typable-commands/write-all.txt create mode 100644 runtime/help/typable-commands/write-quit!.txt create mode 100644 runtime/help/typable-commands/write-quit-all!.txt create mode 100644 runtime/help/typable-commands/write-quit-all.txt create mode 100644 runtime/help/typable-commands/write-quit.txt diff --git a/runtime/help/typable-commands/quit-all!.txt b/runtime/help/typable-commands/quit-all!.txt new file mode 100644 index 000000000..185533e0b --- /dev/null +++ b/runtime/help/typable-commands/quit-all!.txt @@ -0,0 +1,6 @@ +`:quit-all!` + +Aliases: `:qa!` + +Closes all views, exiting the editor. This will +discard any unsaved changes. diff --git a/runtime/help/typable-commands/quit-all.txt b/runtime/help/typable-commands/quit-all.txt new file mode 100644 index 000000000..69c570d71 --- /dev/null +++ b/runtime/help/typable-commands/quit-all.txt @@ -0,0 +1,6 @@ +`:quit-all` + +Aliases: `:qa` + +Closes all views, exiting the editor. This will +fail if there are any unsaved changes. diff --git a/runtime/help/typable-commands/write-all.txt b/runtime/help/typable-commands/write-all.txt new file mode 100644 index 000000000..3518402a8 --- /dev/null +++ b/runtime/help/typable-commands/write-all.txt @@ -0,0 +1,7 @@ +`:write-all` + +Aliases: `:wa` + +Writes (saves) all unsaved buffers to disk. +Scratch buffers (without associated paths) +will not be saved. diff --git a/runtime/help/typable-commands/write-quit!.txt b/runtime/help/typable-commands/write-quit!.txt new file mode 100644 index 000000000..916bd07f8 --- /dev/null +++ b/runtime/help/typable-commands/write-quit!.txt @@ -0,0 +1,9 @@ +`:write-quit! [path]` + +Aliases: `:wq!`, `:x!` + +Writes (saves) the buffer to disk, then +closes the view, discarding unsaved changes +if this would exit the editor. +Identical to `:write [path]` followed by `:quit!`. +See those commands for more info. diff --git a/runtime/help/typable-commands/write-quit-all!.txt b/runtime/help/typable-commands/write-quit-all!.txt new file mode 100644 index 000000000..cfb3394de --- /dev/null +++ b/runtime/help/typable-commands/write-quit-all!.txt @@ -0,0 +1,10 @@ +`:write-quit-all!` + +Aliases: `:wqa!`, `:xa!` + +Writes (saves) all unsaved buffers to disk, then +closes all views, exiting the editor. +Scratch buffers (without associated paths) will +not be saved, and will be discarded when the +editor exits. +Identical to `:write-all` followed by `:quit-all!`. diff --git a/runtime/help/typable-commands/write-quit-all.txt b/runtime/help/typable-commands/write-quit-all.txt new file mode 100644 index 000000000..b551bcb3f --- /dev/null +++ b/runtime/help/typable-commands/write-quit-all.txt @@ -0,0 +1,10 @@ +`:write-quit-all` + +Aliases: `:wqa`, `:xa` + +Writes (saves) all unsaved buffers to disk, then +closes all views, exiting the editor. +Scratch buffers (without associated paths) will +not be saved, and exiting the editor will fail +if there are any such buffers open. +Identical to `:write-all` followed by `:quit-all`. diff --git a/runtime/help/typable-commands/write-quit.txt b/runtime/help/typable-commands/write-quit.txt new file mode 100644 index 000000000..17629d5a1 --- /dev/null +++ b/runtime/help/typable-commands/write-quit.txt @@ -0,0 +1,8 @@ +`:write-quit [path]` + +Aliases: `:wq`, `:x` + +Writes (saves) the buffer to disk, then +closes the view. +Identical to `:write [path]` followed by `:quit`. +See those commands for more info.