Thread: [Vim-latex-devel] Alt+somekey mappings
Brought to you by:
srinathava,
tmaas
From: Mpiktas <mp...@de...> - 2003-06-09 19:25:01
|
Hi, I use latex-suite time from time, mostly when I need to write some report= :) I=20 think it is great tool, and it makes life with tex/latex much more easier= .=20 However I stumbled into some problems.=20 Namely I want to use shortcuts A-m and A-l. I tried to use call IMAP, yet= it=20 is overriden with menu shortcuts. A-m opens TeX-Math menu, A-l opens TeX- elements menu. Is there a way to elude these shortcuts and use mine inste= ad?=20 Another question would be where to find all default latex-suite shortcuts= ? In=20 texrc is a link to texmaps.vim, but there is no such file in latex-suite.= I'm=20 especialy interested in mappings like A-q which produces special letters = not=20 found in default iso8859-1 encoding. Another little problem is that latex-suite highlights all { in text if I = use=20 some special latex-suite shortcut like EEQ for example. This behaviour al= ways=20 appears with newly opened .tex files (when there are no other instances o= f=20 gvim). I would be very grateful for any explanations Mpiktas |
From: Mpiktas <mp...@de...> - 2003-06-10 04:48:30
|
Hi, As always I forgot to write about what OS I'm using:) So I'm using Debian= Gnu/ Linux up to date Sid. Or Gnome 2.2 with Sawfish 1.3 and vim 6.1-474+2. Mpiktas |
From: Mpiktas <mp...@de...> - 2003-06-10 18:12:12
|
Hi, > I use latex-suite time from time, mostly when I need to write some repo= rt:)=20 > I think it is great tool, and it makes life with tex/latex much more ea= sier.=20 > However I stumbled into some problems. Namely I want to use shortcuts A= -m=20 > and A-l. I tried to use call IMAP, yet it is overriden with menu shortc= uts.=20 > A-m opens TeX-Math menu, A-l opens TeX- > elements menu. Is there a way to elude these shortcuts and use mine ins= tead? Answering myself, yes there is. I edited file texmenuconf.vim and changed= =20 E&lements into Elements, and edited menu.vim in ../vim61 and changed &Buf= fers=20 into Buffers. So I can freely use mappings A-l and A-b, but I did not use= =20 them, because they are already used in brackets.vim in much more efficien= t way=20 than I wanted to use them:) > Another question would be where to find all default latex-suite shortcu= ts?=20 > In texrc is a link to texmaps.vim, but there is no such file in latex-s= uite.=20 > I'm especialy interested in mappings like A-q which produces special le= tters=20 > not found in default iso8859-1 encoding. I found in brackets.vim that European users have problems with A- mapping= s.=20 Yet my problem was to override the default shortcuts and imap surely does= that. >=20 > Another little problem is that latex-suite highlights all { in text if = I use=20 > some special latex-suite shortcut like EEQ for example. This behaviour=20 > always appears with newly opened .tex files (when there are no other=20 > instances of gvim). >=20 To this problem I found no cure. I think it is a bug. Should I file a bug= =20 report or what? Mpiktas |
From: Srinath A. <sr...@fa...> - 2003-06-10 18:29:39
|
Thanks for the tips! A few things... On Tue, 10 Jun 2003, Mpiktas wrote: > Answering myself, yes there is. I edited file texmenuconf.vim and changed > E&lements into Elements, and edited menu.vim in ../vim61 and changed &Buf= fers > into Buffers. So I can freely use mappings A-l and A-b, but I did not use > them, because they are already used in brackets.vim in much more efficien= t way > than I wanted to use them:) > Another way to have Alt not open up menus is =09:set nowinaltkeys However, that is much more aggressive in that you will never be able to access menus via the keyboard. But do you need to? > > Another question would be where to find all default latex-suite shortcu= ts? > > In texrc is a link to texmaps.vim, but there is no such file in latex-s= uite. > > I'm especialy interested in mappings like A-q which produces special le= tters > > not found in default iso8859-1 encoding. > I found in brackets.vim that European users have problems with A- mapping= s. > Yet my problem was to override the default shortcuts and imap surely does= that. I did not quite keep up with that discussion. If I remember correctly, European users want <M-l> to insert =ED or something similar. But again, some other European users find that there are some other ways to insert =ED which are easier or something. Is that the case with you? Or do you never need to insert =ED into your documents? If possible, please write a little about what you do so if someone else asks, I can sound a bit more intelligent :) > > Another little problem is that latex-suite highlights all { in text > > if I use some special latex-suite shortcut like EEQ for example. > > This behaviour always appears with newly opened .tex files (when > > there are no other instances of gvim). > > > > To this problem I found no cure. I think it is a bug. Should I file a bug > report or what? > I'll look into this. Thanks, Srinath |
From: Mpiktas <mp...@de...> - 2003-06-10 19:40:59
|
Hi, > Another way to have Alt not open up menus is > :set nowinaltkeys > However, that is much more aggressive in that you will never be able to > access menus via the keyboard. But do you need to? Thanks, I really do not need to:) >=20 > I did not quite keep up with that discussion. If I remember correctly, > European users want <M-l> to insert =C3=AD or something similar. But ag= ain, > some other European users find that there are some other ways to insert > =C3=AD which are easier or something. Is that the case with you? Or do = you > never need to insert =C3=AD into your documents? >=20 > If possible, please write a little about what you do so if someone else > asks, I can sound a bit more intelligent :) >=20 I am from Lithuania and Lithuanian alphabet differs from English that it = has=20 letters =C4=85=C4=8D=C4=99=C4=97=C4=AF=C5=A1=C5=B3=C5=AB=C5=BE and doesn'= t have letters xqwf. In the old days (5-6 years=20 ago :) there were problems with these letters, cause they weren't in defa= ult=20 English (ISO-8859-1) keyboard layout and there were no way to produce the= m=20 directly, so one way to elude this problem was to use special mappings to= =20 produce these letters. Nowadays there is no need to use special mappings = for=20 special letters. I can set my locale to lt_LT.utf-8 or lt_LT.iso8859-13,=20 configure a bit my X server and voila, I can type these special letters=20 directly, i.e. one letter with one key. So I do not need any special mapp= ings,=20 instead I want to use them for something else. For example I can use A-m to produce $<++>$<++> instead of =C4=A3, the letter which I= do not=20 use at all. Mpiktas |