Am 12.01.2012 01:28, schrieb Gary Johnson:
On 2012-01-11, Andy Wokula wrote:
Am 11.01.2012 17:40, schrieb Gary Johnson:
     :help tw

         'textwidth' 'tw'        number  (default 0)
                                 local to buffer

That doesn't say anything about a global value.

     :h local-options

     :h new-global-values

Thanks for the explanations.

Shouldn't 'textwidth' then be described as "global or local to
buffer" rather than just "local to buffer"?

Short comparison:

'textwidth' is local to buffer: every buffer has its own local copy of
it, the global value is only used to initialize new buffers.  The :set
command changes both the local and the global value.

"global or local to buffer": All buffers use the same global value,
unless a local value was explicitly set with :setlocal.  :set changes
both the local and the global value (but the local value only if
defined).

--
Andy

--
You received this message from the "vim_use" 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

Reply via email to