aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-02-25 08:19:43 +0800
committerGitHub <noreply@github.com>2024-02-25 08:19:43 +0800
commit52fe3741aa68e3175500b80bd0d5f85579c70712 (patch)
treea1510701983d068c99f4a07442a0761dabe8db12
parent091e374c7f4886ef875e801ae0473b88f6caefe2 (diff)
downloadrneovim-52fe3741aa68e3175500b80bd0d5f85579c70712.tar.gz
rneovim-52fe3741aa68e3175500b80bd0d5f85579c70712.tar.bz2
rneovim-52fe3741aa68e3175500b80bd0d5f85579c70712.zip
vim-patch:374e26aba2e5 (#27617)
runtime(doc): clarify ':set[l] {option}<' behaviour closes: vim/vim#14062 https://github.com/vim/vim/commit/374e26aba2e5e0a220b1a7ce1934b0eb5f493e6c Co-authored-by: Matt Ellis <m.t.ellis@gmail.com>
-rw-r--r--runtime/doc/options.txt23
1 files changed, 18 insertions, 5 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
index a74071ef12..dc52504048 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -302,11 +302,24 @@ created, thus they behave slightly differently:
For a global option the global value is
shown (but that might change in the future).
-:setl[ocal] {option}< Set the local value of {option} to its global value by
- copying the value.
-
-:se[t] {option}< For |global-local| options: Remove the local value of
- {option}, so that the global value will be used.
+:se[t] {option}< Set the effective value of {option} to its global
+ value.
+ For string |global-local| options, the local value is
+ removed, so that the global value will be used.
+ For all other options, the global value is copied to
+ the local value.
+
+:setl[ocal] {option}< Set the effective value of {option} to its global
+ value.
+ For number and boolean |global-local| options, the
+ local value is removed, so that the global value will
+ be used.
+ For all other options, including string |global-local|
+ options, the global value is copied to the local
+ value.
+
+Note that the behaviour for |global-local| options is slightly different
+between string and number-based options.
*:setg* *:setglobal*
:setg[lobal][!] ... Like ":set" but set only the global value for a local