Thread: [Vim-latex-devel] env <thebibliography> and Alt-key combinations
Brought to you by:
srinathava,
tmaas
From: Qiuye W. <qi...@gm...> - 2007-10-24 17:44:08
|
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. 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. any tip would be appreciated qiuye |
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 |
From: Qiuye W. <qi...@gm...> - 2007-11-05 14:02:05
|
Hi, thanks for the response,now everything is clear. On Mon, Nov 05, 2007 at 02:39:45PM +0200, Vaidotas Zemlys wrote: >Hi, > >Qiuye Wang a =E9crit : >> hello list, >>=20 >> during using the vim-latexsuite, i've found two things are weird: >>=20 >> 1st, when i input ETB, i'll get the code as follow: >> \begin{thebibliography} >> \item[<+biblabel+>]{<+bibkey+>} <++> >> <++> >> \end{thebibliography}<++> >>=20 >> 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 =3D >> '\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=20 >ftplugin/latex-suite/envmacros.vim and change the item to bibitem. > >>=20 >> 2nd, the Alt-key bindings dont work in console but in gvim. =20 >> 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. >>=20 >Alt-key bindings are screwed in VIM. Try reading the manual of setting=20 >map-alt-keys (just type :help map-alt-keys). I think it is possible to=20 >solve the console problem. Still you should now, that VIM sets 8bit=20 >when Alt is pressed, so for example on my system ALT-i provides =E9 (e=20 >with accute accent), and pressing =E9 invokes ALT-i mapping. So if you=20 >use accented letters there is a big chance, that you will have problems. > >Vaidotas Zemlys > >------------------------------------------------------------------------- >This SF.net email is sponsored by: Splunk Inc. >Still grepping through log files to find problems? Stop. >Now Search log events and configuration files using AJAX and a browser. >Download your FREE copy of Splunk now >> http://get.splunk.com/ >_______________________________________________ >Vim-latex-devel mailing list >Vim...@li... >https://lists.sourceforge.net/lists/listinfo/vim-latex-devel > QY |