I have a file which if read with the Windows-1252 encoding (cp1252 in
Vim) has an en dash character (encoded as byte 150). When I load this
file in a Vim with enc=latin1, and leave fenc blank, I would expect to
see a "no character" block in place of the en dash. However, I see the
en dash as if I loaded with enc/fenc set to cp1252.

If I set encoding to utf-8, and load the same file with default
fileencodings, it detects as latin1 and I see the "no character" glyph
as expected. If I do :e ++enc=cp1252, or if I modify my fileencodings
option to include cp1252 instead of latin1, I see the en dash, again
as expected.

Is this behavior intentional? It certainly could be considered
helpful, but it was very unexpected.

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

Raspunde prin e-mail lui