[Vim-latex-devel] Re: [Vim-latex-cvs] vimfiles/plugin imaps.vim,1.7,1.8
Brought to you by:
srinathava,
tmaas
From: Luc H. <her...@fr...> - 2002-12-08 22:20:59
|
* On Sun, Dec 08, 2002 at 11:38:24AM -0800, Srinath Avadhanula <sr...@fa...> wrote: > call s:Tex_SpecialMacros('', 'EnvCommands.&Slides.', '&onlyslides{}', > \ '\onlyslides{«»}«»', 0) > in envmacros.vim. > > Will it be possible to somehow change things so that in the > initialization of latex-suite, we change the encoding once while > sourcing envmacros.vim and such files and from then on in the > functions themselves use the "\xab" character? > Will this make it possible to keep envmacros.vim unchanged? the « > characters are used all over the place. May be you could wrap these call into commands that will automatically build the different environments and TeX commands. That's what I've done in my lh-tex package. Thus, patching the files will be quite easy. [1] My problem now regarding encoding is to change some mappings ; e.g. '¡jump!' will be changed to '!jump!' or something like that. My advice (as we have some similar concerns): don't use '«»' or 'ä' when you need to define the different mappings, but something else that will be easy to read and independent of encoding. [I chose to continue to use ¡jump! and ¡mark! ... but It won't last]. > In envmacros.vim, someplaces in the packages/* files, and other places. > So some way of being able to work with all of them unchanged is ideal. Yes. But right now they need to be changed. I completly with Benji: don't use explicetly and so often '«»', 'ä' or anything else so dependant on encoding in the Vim files. [1] To give an idea, here is the kind of definitions done into lh-tex: :MapMenu 50.370.100.400 &LaTeX.&Fonts.S&hort\ Scope.&Emphasize ]em emph that defines 3 menus and 3 mappings. The insert mode mapping ']em' inserts: '\emph{µ}«»' where 'µ' symbolises where the cursor will be placed and '«»' the marker inserted (can be anything else depending on configuration) or: call <SID>MapMenu4Env("50.370.200", '&LaTeX.&Environments.&itemize', \ ']ei', 'itemize', '\item ') that also defines 3 mappings and 3 menus. The insert mode mapping ']ei' inserts: \begin{itemize} \item µ \end{itemize}«» -- Luc Hermitte http://hermitte.free.fr/vim/ |