Re: Summarizing encoding issues

2007-10-17 Fir de Conversatie Ben Schmidt
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

Re: fileencoding and stdin

2007-10-17 Fir de Conversatie Ben Schmidt
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

Re: Summarizing encoding issues

2007-10-17 Fir de Conversatie Ben Schmidt
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:

Re: Summarizing encoding issues

2007-10-17 Fir de Conversatie Tony Mechelynck
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

Patch for VIM dosbatch syntax file

2007-10-17 Fir de Conversatie Alexei Alexandrov
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

Patch for VIM dosbatch syntax file

2007-10-17 Fir de Conversatie Alexei Alexandrov
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

Re: Patch for VIM dosbatch syntax file

2007-10-17 Fir de Conversatie Tony Mechelynck
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

Re: Summarizing encoding issues

2007-10-17 Fir de Conversatie Yongwei Wu
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