[Vim-latex-devel] Latex Suite utf8 problem (LookupCharacter error)
Brought to you by:
srinathava,
tmaas
From: Stephen W. <sw...@gm...> - 2007-08-10 14:31:07
|
Hello All, I've encountered a problem when using encoding=utf-8 with filetype=tex. I use Vim 7.1 and I've upgraded to the latest LatexSuite (March 25, 2006). In insert mode, if I type \ (backslash) I get the following error message: Error detected while processing function <SNR>28_LookupCharacter: line 12: E54: unmatched \( I can only reproduce the problem when the filetype is tex (so I presume the problem is in vim-latex plugins) AND encoding is utf-8. If encoding=latin-1 and fileencoding=utf-8, I encounter no problem (the file is converted to uft-8 on writing). But on my home machine I normally have encoding set to utf-8 (same as locale)... so I can get around this by adding the comment line at the end of the file: % vim:encoding=latin-1:fileencoding=utf-8: I searched the VIM mailing list for a similar problem: in the thread entitled " new weirdness with vim-latex" started on 23/03/2006 (http://marc.info/?l=vim&m=114307450126576&w=2 ) it was said the problem is with plugin/imaps.vim . I had a look at line 12 of the function LookupCharacter in that file, but I must admit I don't understand it (despite the comments) and I can't tell if there is a problem. For the moment, I get around this with the comment line at the end of my latex files, but I was wondering if there's a more permanent and better solution, and if anyone else has encountered this problem. Thanks, Steve |