A.J.Mechelynck [EMAIL PROTECTED] 写于 2007-06-06 10:30:54:
1. will vim write BOM when writing to unicode files? or is there any
options for that?
:setlocal bomb
When opening a Unicode file, Vim will set or clear the buffer-local
'bomb'
option according to the presence or absence of a
[EMAIL PROTECTED] wrote:
A.J.Mechelynck [EMAIL PROTECTED] 写于 2007-06-06 10:30:54:
1. will vim write BOM when writing to unicode files? or is there any
options for that?
:setlocal bomb
When opening a Unicode file, Vim will set or clear the buffer-local
'bomb'
option according to the
Hello,
Recently I want to do some research about 'fileencodings', what I want is
to recognize utf-8, ucs-2le, euc-cn and cp936 encodings.
So I set the 'fencs' in my .vimrc:
set fencs=ucs-bom,utf-8,ucs-2le,euc-cn,cp936
However, cp936 files are always recognized as ucs-2le and I got everything
[EMAIL PROTECTED] wrote:
Hello,
Recently I want to do some research about 'fileencodings', what I want is
to recognize utf-8, ucs-2le, euc-cn and cp936 encodings.
So I set the 'fencs' in my .vimrc:
set fencs=ucs-bom,utf-8,ucs-2le,euc-cn,cp936
However, cp936 files are always recognized as
A.J.Mechelynck [EMAIL PROTECTED] 写于 2007-06-06 09:51:51:
Unicode files may or may not have a BOM, depending on who (or which
program)
created them and where they come from. If you remove ucs-2le from your
'fileencodings', but leave ucs-bom at the start, any Unicode
fileshaving a
BOM will still
[EMAIL PROTECTED] wrote:
A.J.Mechelynck [EMAIL PROTECTED] 写于 2007-06-06 09:51:51:
Unicode files may or may not have a BOM, depending on who (or which
program)
created them and where they come from. If you remove ucs-2le from your
'fileencodings', but leave ucs-bom at the start, any Unicode
On 6/6/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hello,
Recently I want to do some research about 'fileencodings', what I want is
to recognize utf-8, ucs-2le, euc-cn and cp936 encodings.
So I set the 'fencs' in my .vimrc:
set fencs=ucs-bom,utf-8,ucs-2le,euc-cn,cp936
However, cp936 files