Andy Wokula wrote:
> I think I just found a minor bug in the help:
>
> :h :setl|/^:se\[t].*}<
> ,----
> | :se[t] {option}<
> | Set the local value of {option} to its global value by
> | making it empty. Only makes sense for |global-local|
> | options.
> `----
> The command should be :setlocal, not :set. The example under
> *global-local* is ok.
>
> Example to show the difference:
>
> Bad:
> :setl ar&
> :set ar< ar?
> noautoread
>
> Good:
> :setl ar&
> :setl ar< ar?
> --autoread
>
> Either the help is wrong or :set ar< should actually remove the local
> value.
The help is correct. When you do ":set path<" it copies the global
value to the global value and makes the local value empty. Thus the
local value then follows the global value.
I can see why you are confused. This text should be better:
:se[t] {option}< For |global-local| options: Remove the local value of
{option}, so that the global value will be used.
{not in Vi}
--
Another bucket of what can only be described as human ordure hits ARTHUR.
ARTHUR: ... Right! (to the KNIGHTS) That settles it!
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php