From b72493bbbb1cd6a41499c6bc16e06b832795c0af Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Wed, 10 Jun 2020 14:49:46 +0300 Subject: [PATCH] doc faq: Document `-buffer *` --- doc/pages/faq.asciidoc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doc/pages/faq.asciidoc b/doc/pages/faq.asciidoc index 3b765800..b3adf856 100644 --- a/doc/pages/faq.asciidoc +++ b/doc/pages/faq.asciidoc @@ -282,3 +282,16 @@ make room for characters, effectively extending the current selection since the anchor remains immobile, even when the anchor and the cursor are at the same location. By opposition, using the insert primitive (`i`) merely adds characters before the cursor, which never modifies the current selection. + +=== How to apply changes to all open buffers? + +The `:exec` and `:eval` commands can apply changes to a comma-separated +list of buffers, passed as argument to the `-buffer` flag. + +In order to the editor figure out which buffers are open, the special value +`*` is accepted as a wildcard. For example, in order to reload all open +buffers: + +---- +:eval -buffer * e! +----