Hello! is there a chance that IMAP (the wonderfull function shipped with imaps.vim) will accept multitbyte (unicode) characters in lhs strings in the future?
This is for use in a personal script which would convert on the fly LaTeX macros for math symbols in their corresponding unicode characters, as unilatex.vim from Jos van den Oever, but based on IMAP instead of imap. Since IMAP applies immediately this requires in some cases to chain IMAP mappings as follows (I hope the UTF-8 characters below will be readable for you, they represent \subset and \subseteq): call IMAP("\\subset", "⊂", "") call IMAP("⊂eq", "⊆", "") This does not work with my version of imaps.vim, which is puzzled by the multibyte caracters in the lhs (more than 3 caracters are cancelled when ⊂eq is replaced by ⊆). Version number: imaps.vim 997 2006-03-20 09:45:45Z srinathava $ VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Dec 1 2008) I have succeeded to modify imaps.vim so that it accepts unicode characters in lhs and the above commands work, without disturbing the latex-suite (apparently). I can post it here if you are interested, but it's only a trick, not a patch: I do not understand enough how imaps.vim (and the latex-suite) works to be sure that this solution will work properly in other contexts than mine. Best regards, LuX. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Vim-latex-devel mailing list Vim-latex-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vim-latex-devel