Monday, October 4, 2010

Re: How to set utf-8 locally (for a buffer) on loading the file

Thank you very much for the patient answer, I'm sorry for my lengthy
post.

So, I think I kind of understand what fenc and fencs do, but I'm still
unsure as to what enc does.

Sets the character encoding used inside Vim. It applies to text in
the buffers, registers, Strings in expressions, text stored in the
viminfo file, etc. It sets the kind of characters which Vim can work
with.[...]

This seems to describe a kind of default value for fenc based on your
locale, but I'm not sure.

NOTE: Changing this option will not change the encoding of the
existing text in Vim. It may cause non-ASCII text to become invalid.

This sentence is somewhat obscure. If I change 'encoding' after having
loading a buffer, it effectively causes 'some non-ASCII text to become
invalid'. What does then the statement mean, that 'this option will
not change the encoding of the existing text in VIm'?

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

No comments:

Post a Comment