On 04/12/08 15:24, Yongwei Wu wrote:
[...]
> Strictly speaking, my results make more sense.  Vim help file does not
> say that the first value in ffs will be used as the default encoding.
> On the contrary, I know that setting the value of fenc will affect the
> encoding of the empty file.  And it does not persist, since neither
> fenc nor ff is really 'global': Vim help states clearly that they are
> local to buffer.
[...]

All buffer-local option have a global counterpart. ":set option=value" 
sets both. ":setlocal option=value" sets only the current local value. 
":setglobal option=value" sets only the global default. OTOH, ":set 
option?" displays the current local value if any; you need ":setglobal 
option?" to display the global value. In the latter two cases, prefixing 
with ":verbose " tells you where the value in question was set.

        See ":help local-options".

Normally, the global setting is used when creating a file which doesn't 
yet exist. However, in the case of 'fenc' 'ff' and 'binary', the ++enc, 
++ff, ++bin and ++nobin arguments to ":edit" (and some other commands) 
can override this.

        See ":help ++opt".


Best regards,
Tony.
-- 
"I'd love to go out with you, but I'm doing door-to-door collecting for
static cling."

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to