From 674f4b35abe68d0ceb333de0f7103017d5ce915f Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sat, 18 Apr 2026 07:28:12 +0800 Subject: [PATCH] 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 --- runtime/doc/options.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 1f8b3bd86a..834ba0ef4f 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