Am 17.01.2012 16:51, schrieb Ben Fritz:


On Jan 13, 3:42 pm, Bram Moolenaar<[email protected]>  wrote:

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}


All the ftplugin files in the official runtime use "setlocal option<"
for the b:undo_ftplugin variable, except for qf.vim.

If I'm understanding correctly, they should all instead use "set
option<", and qf.vim is the ONLY one doing it correctly.

Is this a valid assessment?

Don't worry,  :setlocal option<  is mostly correct: most options set in
ftplugins are buffer-local (not global-local) and for buffer-local
options there is always a local value that needs a reasonable default
(which is the current global value).

'stl' is global-local,  :set stl<  is correct also (to remove the local
value).

--
Andy

--
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

Raspunde prin e-mail lui