A coworker pointed out that part of the window-local example in ":help
local-options" is no longer accurate.

        :e one
        :set list
        :e two
Now the 'list' option will also be set in "two", since with the ":set list"
command you have also set the global value. >
        :set nolist
        :e one
        :setlocal list
        :e two
Now the 'list' option is not set, because ":set nolist" resets the global
value, ":setlocal list" only changes the local value and ":e two" gets the
global value.

So far so good, but now:

Note that if you do this next: >
        :e one
You will not get back the 'list' value as it was the last time you edited
"one".  The options local to a window are not remembered for each buffer.

This seems no longer to be true; the previous buffer does indeed seem to
remember its 'list' setting. Did the behavior change at some point?

The existing behavior seems superior, so here's a patch to delete that last
note and bring the docs in sync.

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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Attachment: doc-local-options.patch
Description: Binary data

Raspunde prin e-mail lui