Thread: Re: [Vim-latex-devel] e acute and the FAQ
Brought to you by:
srinathava,
tmaas
From: corentin b. <cor...@gm...> - 2006-12-04 16:33:55
|
I've found that typing <Alt-i> works, I get that way a "\item" but the e-<acute> remains a "\item" despite what is told in the faq. Corentin 2006/12/4, corentin barbu <cor...@gm...>: > Hi ! > > I'm under ubuntu and I've downoloaded the last version of latex suite, > as it is described in the faq I'm not able to understand the answer in > the > FAQ for at least the 3 following reasons. A tour on the french > forums show it's a common problem. > > The text of the faq is on : > http://vim-latex.sourceforge.net/index.php?subject=3Dfaq&title=3DFAQ#faq-= e-acute > > The problems are : > > - the tex.vim file doesn't exixt in the > ~/.vim/ftplugin repertory > I've created it, inserted the line, changed <leader>it by <alt>it and > the problem remain. > > - I really don't understand the link between this change and the e-acute. > > - I don't understand which is the <M-i> key if it's <Maj> + i it doesn't = work. > > Thanks in advance. > > Corentin > > -- > ___________________ > Corentin Barbu > http://corentin.barbu.free.fr/ > 91 avenue Gabriel P=E9ri > 95200 Sarcelles > France > +33679284434 > --=20 ___________________ Corentin Barbu http://corentin.barbu.free.fr/ 91 avenue Gabriel P=E9ri 95200 Sarcelles France +33679284434 |
From: corentin b. <cor...@gm...> - 2006-12-04 17:53:17
|
Finally it works. But I can no more access to the "\item" facility with <Alt-i> this key make an "=E9" ?!?. I have putted the following line in ~/.vim/ftplugin/tex.vim : imap <buffer> <Alt-i> <Plug>Tex_InsertItemOnThisLine Any idea ? Otherway, I sugest to modify that way the faq (which is mainly for french people I think) : Insert the following line in your ~/.vim/ftplugin/tex.vim file (you may have to create it) : imap <buffer> <leader>it <Plug>Tex_InsertItemOnThisLine Replace <leader>it with any other key-sequence (for example <Alt-i>). This should make <leader>it key (in the example key <Alt> and key <i>) insert an \item command corresponding to the last opened environment in the current line in insert mode. The <=E9> key which is used for inserting the e-acute character will remain unmapped and able to produce this letter. Regards, Corentin 2006/12/4, corentin barbu <cor...@gm...>: > I've found that typing <Alt-i> works, I get that way a "\item" but the > e-<acute> remains a "\item" despite what is told in the faq. > > Corentin > > 2006/12/4, corentin barbu <cor...@gm...>: > > Hi ! > > > > I'm under ubuntu and I've downoloaded the last version of latex suite, > > as it is described in the faq I'm not able to understand the answer in > > the > > FAQ for at least the 3 following reasons. A tour on the french > > forums show it's a common problem. > > > > The text of the faq is on : > > http://vim-latex.sourceforge.net/index.php?subject=3Dfaq&title=3DFAQ#fa= q-e-acute > > > > The problems are : > > > > - the tex.vim file doesn't exixt in the > > ~/.vim/ftplugin repertory > > I've created it, inserted the line, changed <leader>it by <alt>it and > > the problem remain. > > > > - I really don't understand the link between this change and the e-acut= e. > > > > - I don't understand which is the <M-i> key if it's <Maj> + i it doesn'= t work. > > > > Thanks in advance. > > > > Corentin > > > > -- > > ___________________ > > Corentin Barbu > > http://corentin.barbu.free.fr/ > > 91 avenue Gabriel P=E9ri > > 95200 Sarcelles > > France > > +33679284434 > > > > > -- > ___________________ > Corentin Barbu > http://corentin.barbu.free.fr/ > 91 avenue Gabriel P=E9ri > 95200 Sarcelles > France > +33679284434 > --=20 ___________________ Corentin Barbu http://corentin.barbu.free.fr/ 91 avenue Gabriel P=E9ri 95200 Sarcelles France +33679284434 |
From: Luc H. <her...@fr...> - 2006-12-06 00:27:07
|
Hello, * On Mon, Dec 04, 2006 at 06:53:05PM +0100, corentin barbu <corentin.barb= u...@gm...> wrote: > Finally it works. But I can no more access to the "\item" facility > with <Alt-i> this key make an "=E9" ?!?. I have putted the following > line in ~/.vim/ftplugin/tex.vim : >=20 > imap <buffer> <Alt-i> <Plug>Tex_InsertItemOnThisLine >=20 > Any idea ? Vim does not distiniguish '=E9' from '<m-i>', and '<a-i>' is '<m-i>'. Just find another keys sequence that better suits your taste -- I advise you against playing with <m-*> for insert mode mappings. > Otherway, I sugest to modify that way the faq (which is mainly for > french people I think) : We aren't the only ones concerned by this point of FAQ. > Insert the following line in your ~/.vim/ftplugin/tex.vim file (you > may have to create it) : >=20 > imap <buffer> <leader>it <Plug>Tex_InsertItemOnThisLine >=20 > Replace <leader>it with any other key-sequence (for example <Alt-i>). > This should make <leader>it key (in the example key <Alt> and key <i>) > insert an \item command corresponding to the last opened environment > in the current line in insert mode. The <=E9> key which is used for > inserting the e-acute character will remain unmapped and able to > produce this letter. IMHO, <localleader> is preferable over <leader> --=20 Luc Hermitte http://hermitte.free.fr/vim/ |
From: corentin b. <cor...@gm...> - 2006-12-06 09:49:13
|
Finally I used the <Ctrl> key as it's proposed at the following question of the FAQ. Probably better to group both questions in one as writed below, is any chance that an administrator of the web-site change it ? Corentin <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Help e-<acute> and other european letters doesn't work !!! To cut off the problem quickly, insert the following lines in your ~/.vim/ftplugin/tex.vim file (you may have to create it) : imap <C-i> <Plug>Tex_InsertItemOnThisLine imap <C-b> <Plug>Tex_MathBF imap <C-c> <Plug>Tex_MathCal imap <C-l> <Plug>Tex_LeftRight It frees <=E9> <=E2> and others and allow <Ctrl> +<i> to insert a \item ; <Ctrl>+<b> to insert a \mathbf{ } ; <Ctrl>+<c> to insert a \cite{} and <Ctrl> +<l> to insert \label{ } If you want to change the keys for this shortcuts, just replace <C> with any other key-sequence. <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 2006/12/6, Luc Hermitte <her...@fr...>: > Hello, > > * On Mon, Dec 04, 2006 at 06:53:05PM +0100, corentin barbu <corentin.barb= u...@gm...> wrote: > > Finally it works. But I can no more access to the "\item" facility > > with <Alt-i> this key make an "=E9" ?!?. I have putted the following > > line in ~/.vim/ftplugin/tex.vim : > > > > imap <buffer> <Alt-i> <Plug>Tex_InsertItemOnThisLine > > > > Any idea ? > > Vim does not distiniguish '=E9' from '<m-i>', and '<a-i>' is '<m-i>'. > Just find another keys sequence that better suits your taste -- I advise > you against playing with <m-*> for insert mode mappings. > > > > Otherway, I sugest to modify that way the faq (which is mainly for > > french people I think) : > > We aren't the only ones concerned by this point of FAQ. > > > Insert the following line in your ~/.vim/ftplugin/tex.vim file (you > > may have to create it) : > > > > imap <buffer> <leader>it <Plug>Tex_InsertItemOnThisLine > > > > Replace <leader>it with any other key-sequence (for example <Alt-i>). > > This should make <leader>it key (in the example key <Alt> and key <i>) > > insert an \item command corresponding to the last opened environment > > in the current line in insert mode. The <=E9> key which is used for > > inserting the e-acute character will remain unmapped and able to > > produce this letter. > > IMHO, <localleader> is preferable over <leader> > > -- > Luc Hermitte > http://hermitte.free.fr/vim/ > -- ___________________ Corentin Barbu http://corentin.barbu.free.fr/ 91 avenue Gabriel P=E9ri 95200 Sarcelles France +33679284434 --=20 ___________________ Corentin Barbu http://corentin.barbu.free.fr/ 91 avenue Gabriel P=E9ri 95200 Sarcelles France +33679284434 |