Re: Questions regarding auto-guessing the encoding

2006-10-03 Thread Yongwei Wu
On 10/3/06, Yegappan Lakshmanan [EMAIL PROTECTED] wrote: Hello, On 10/2/06, Yongwei Wu [EMAIL PROTECTED] wrote: * Is there a way to tell a user-defined command to have file name completion? Yes. You can use the -complete=file option when defining the command. For example, Thanks. It's

Questions regarding auto-guessing the encoding

2006-10-02 Thread Yongwei Wu
Hi Bram and Vim gurus, I wrote a little program to guess the encoding of a text file, and I intend to use it with vim. (So it currently supports ASCII, Latin1, GB2312, GBK, and Big5 files, but no UTF-x, since it might not be necessary.) While trying to make it work together, I encountered some

Re: Questions regarding auto-guessing the encoding

2006-10-02 Thread Yongwei Wu
On 10/3/06, Yongwei Wu [EMAIL PROTECTED] wrote: * Why keymap/accents.vim is opened as UTF-8 and fails the conversion when fencs=ucs-bom,utf-8,cp936? (It is opened as Latin1 when fencs=ucs-bom,utf-8,latin1, and this inconsistency is a little annoying to me to determine in a handler whether the

Re: Questions regarding auto-guessing the encoding

2006-10-02 Thread Yegappan Lakshmanan
Hello, On 10/2/06, Yongwei Wu [EMAIL PROTECTED] wrote: * Is there a way to tell a user-defined command to have file name completion? Yes. You can use the -complete=file option when defining the command. For example, command -nargs=1 -complete=file EditFile edit args For additional