Tuesday, September 25, 2012

Re: E670: Mix of help file encodings within a language

2012-09-25 Tony Mechelynck <antoine.mechelynck@gmail.com>:

Hi Tony!

> Does the new helpfile have a BOM? If it does, try removing it.
>
> :e ~/.vim/doc/foobar.txt " replacing "foobar" by the filename
> :verbose setlocal bomb?

nobomb

> :setlocal nobomb
> :w
> :helptags ~/.vim/doc

E670: Mix of help file encodings within a language

> If that doesn't work, check your 'encoding':
>
> :verbose set encoding?

encoding=utf-8

> Mine is UTF-8, and it sees almost all helpfiles shipped with VIM as
> UTF-8 (eval.txt is an exception). But if a file contains as few as one
> character which is invalid for UTF-8, the file won't be seen as UTF-8
> even if the rest of it is OK
>
> :setl fenc?

fileencoding=utf-8

> 8g8

The cursor does not move. If I set fileencoding=latin1, then it
moves to a non-ascii character, but I guess that's expected.


Marco


--
You received this message from the "vim_use" 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

No comments: