Re: [Vim-latex-devel] env <thebibliography> and Alt-key combinations
Brought to you by:
srinathava,
tmaas
From: Vaidotas Z. <ze...@gm...> - 2007-11-05 12:39:49
|
Hi, Qiuye Wang a écrit : > hello list, > > during using the vim-latexsuite, i've found two things are weird: > > 1st, when i input ETB, i'll get the code as follow: > \begin{thebibliography} > \item[<+biblabel+>]{<+bibkey+>} <++> > <++> > \end{thebibliography}<++> > > i'm wondering why would \item but not \bibitem be automatic inserted > in the environment ``thebibliography''. i am not very familiar with > the grammar of latex, but does the env thebibliography with \item make > any sense? > i have replaced the line TexLet g:Tex_ItemStyle_thebibliography = > '\item[<+biblabel+>]{<+bibkey+>} <++>' in > $VIM/ftplugin/latex-suite/envmacros.vim with bibitem, so if i press > Alt-I, i will get /bibitem. But i dont know how could i changed the > thebibliography env, and make it with the \bibitem as default. Find the Tex_thebibliography function in file ftplugin/latex-suite/envmacros.vim and change the item to bibitem. > > 2nd, the Alt-key bindings dont work in console but in gvim. > i dont understand why do the bindings work in gvim but not in console > vim. If i press Alt-I in vim in console, then i get the cursor move > to the head of the line. > Alt-key bindings are screwed in VIM. Try reading the manual of setting map-alt-keys (just type :help map-alt-keys). I think it is possible to solve the console problem. Still you should now, that VIM sets 8bit when Alt is pressed, so for example on my system ALT-i provides é (e with accute accent), and pressing é invokes ALT-i mapping. So if you use accented letters there is a big chance, that you will have problems. Vaidotas Zemlys |