[Vim-latex-devel] latex-suite and vim in utf8 (fwd)
Brought to you by:
srinathava,
tmaas
From: Srinath A. <sr...@fa...> - 2002-12-01 21:09:24
|
Hello, I am forwarding this to the group hoping that someone has a better idea than I about whats going on... The problem Andrey reports below is quite a show-stopper imo. I tried telling him to set g:Imap_PlaceHolderStart =3D '<', but even that doesn't work... The reason is that vim seems to do strange things with encoding... (or I dont understand encoding very well). Please try out the following steps: 1. open a new .vim file with encoding set to latin1. 2. type in the following stuff: let MyVar =3D '=AB' if MyVar =3D~ '=AB' echo 'does contain quotes' else echo 'no quotes here' endif 3. trying sourcing it (:so %) you will see 'does contain quotes' 4. now set encoding to utf8. (:set encoding=3Dutf8) 5. source it again. this time you will see 'no quotes here' Could someone explain? Thanks, Srinath ---------- Forwarded message ---------- Date: Thu, 28 Nov 2002 15:51:49 +0600 From: Andrey R. Urazov <co...@ng...> To: sr...@fa..., mi...@wp... Subject: latex-suite and vim in utf8 Dear Srinath and Mikolaj, I'm using the wonderful package latex-suite (many thanks for it) with vim 6.1 in utf8 mode. And I have some problems with diversified abbreviations. For example, when I type {} I got {=E4}=AB=BB ({<a umlaut>}<opening double quote><closing double quote>) instead. I think the expected behavior would be typing {} and putting the cursor between the braces, but in utf8 mode all the control sequences have lost their special meaning and I get what I get. Think, this won't be a rare problem since with the issue of Red Hat 8.0 many users will use utf8. I wonder whether these macros could be rewritten avoiding control sequences. Is it really possible? P.S. And again thanks a lot for the package. It makes preparation of LaTeX documents so handy! Best regards, Andrey Urazov --=20 Remember the good old days, when CPU was singular? -- jeudi 28 novembre, 2002, 15:45:10 +0600 - Andrey R. Urazov (mailto:coola@ng= s.ru) |