mirror of
https://github.com/neovim/neovim.git
synced 2026-05-26 14:58:28 +00:00
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
e666597622
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user