First scenario:
set enc=default
set fenc=latin1
set fencs=ucs-bom,utf-8,latin1
set tenc=latin1
vim file-- Correct (fenc=latin1)
vim file8 -- Correct (fenc=utf8)
cat file8 | view - -- Correct (fenc=)
Second scenario:
set enc=utf8
Vim doesn't set fileencoding when it reads stdin, but it still uses
fileencodings
to interpret the encoding of stdin, just like opening any other file. So if
some
latin1 text is valid utf8 text, Vim will interpret it as such if your
fileencodings=utf8,latin1. Only if it is invalid as
This is not true. In fact, if the file contains señor instead of
ññ, Vim does resort to Latin1. This said, Vim's failure here does
sound like a bug. But I would like to hear from Bram first.
Well spotted, Yongwei. So there is something more subtle about this bug, and I
believe it is this:
Ben Schmidt wrote:
This is not true. In fact, if the file contains señor instead of
ññ, Vim does resort to Latin1. This said, Vim's failure here does
sound like a bug. But I would like to hear from Bram first.
Well spotted, Yongwei. So there is something more subtle about this bug, and
Hi Mike,
In the VIM 7.1 distribution runtime files you're listed as the
maintainer of dosbatch.vim file which is a syntax file for Windows/DOS
batch files.
Currently this syntax file doesn't list correctly @Spell/@NoSpell
attributes of VIM 7.x which means it's very inconvenient to work with
Hi Mike,
In the VIM 7.1 distribution runtime files you're listed as the
maintainer of dosbatch.vim file which is a syntax file for Windows/DOS
batch files.
Currently this syntax file doesn't list correctly @Spell/@NoSpell
attributes of VIM 7.x which means it's very inconvenient to work with
Alexei Alexandrov wrote:
Hi Mike,
In the VIM 7.1 distribution runtime files you're listed as the
maintainer of dosbatch.vim file which is a syntax file for Windows/DOS
batch files.
Currently this syntax file doesn't list correctly @Spell/@NoSpell
attributes of VIM 7.x which means it's
On 18/10/2007, Ben Schmidt [EMAIL PROTECTED] wrote:
This is not true. In fact, if the file contains señor instead of
ññ, Vim does resort to Latin1. This said, Vim's failure here does
sound like a bug. But I would like to hear from Bram first.
Well spotted, Yongwei. So there is