summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2026-04-18 07:28:12 +0800
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2026-04-18 00:45:52 +0000
commit19a54ad964a7d0b79ce9ac746c34d367b1e3f90a (patch)
tree8f3694628604a7353c1196f3fad843d5c54319f1
parentd3ef77639ac5cfa7faf889abd69e3860110b87f0 (diff)
vim-patch:e666597: runtime(doc): make window option description a bit less vague (#39173)
Say explicitly that ":setlocal" sets the local value, while ":set" also sets the global value. related: vim/vim#19993 https://github.com/vim/vim/commit/e666597622a4f75e36375a7a8ff500799d4b5fa9 (cherry picked from commit 674f4b35abe68d0ceb333de0f7103017d5ce915f)
-rw-r--r--runtime/doc/options.txt12
1 files changed, 6 insertions, 6 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
index 3b243109c8..8b6ed4260f 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -261,12 +261,12 @@ that was last closed are used again. If this buffer has been edited in this
window, the values from back then are used. Otherwise the values from the
last closed window where the buffer was edited last are used.
-It's possible to set a local window option specifically for a type of buffer.
-When you edit another buffer in the same window, you don't want to keep
-using these local window options. Therefore Vim keeps a global value of the
-local window options, which is used when editing another buffer. Each window
-has its own copy of these values. Thus these are local to the window, but
-global to all buffers in the window. With this you can do: >
+":setlocal" can be used to set a local window option specifically for a type
+of buffer. When you edit another buffer in the same window, you don't want to
+keep using these local window options. Meanwhile ":set" also sets a global
+value of a local window option, which is used when editing another buffer.
+Each window has its own copy of these global values, making them local to the
+window, but global to all buffers in the window. With this you can do: >
:e one
:set list
:e two