On Mon, Apr 05, 2004 at 03:52:13AM -0700, Javier M Mora wrote:
>=20
> I\'m a spanish user of vim-latex (i use prepackaged vim-latexsuite from d=
ebian) and=20
> in my language we use these \"special\" caracters:
>=20
>=20
>=20
> =C1 =C9 =CD =D3 =DA =E1 =E9 =ED =F3 =FA =D1 =F1 =BF =A1 =FC =DC
>=20
>=20
>=20
> I can=20
> type all of them unless \"=E9\" than move the cursor in insert mode. I\'v=
e looked in=20
> sources of vim-latex but I cann\'t find anything.=20
>=20
>=20
>=20
> Can you change this=20
> \"feature\" to another macro? In spain \"=E9\" isn\'t a key. You must pus=
h \"\'\" key and=20
> them \"e\" key.
>=20
I have almost the same problem in french. "=E9" is an equivalent for
Alt-I, and alt-I is remapped by vim-latex to the Tex_InsertItem
function.
The documentation says that one should affect this function to another
key with this mapping (we should put this in .vimrc or
~/.vim/ftplugin/tex.vim):
imap =A7 <Plug>Tex_InsertItem
where =A7 is the new mapping
Unfortunately, there is a bug in vim-latexsuite. The mapping is only
tested in normal mode.
To fix this, you can:
- use a dead map:
map =A7=A7=A7 <Plug>Tex_InsertItem
Note the map instead of imap. Where =A7=A7=A7 is a very unlikely key sequen=
ce.
Or you can fix the vim-latexsuite package. On my system, this means
editing the following file:
/usr/share/vim/addons/ftplugin/latex-suite/envmacros.vim
and change the line 903 from
if !hasmapto("<Plug>Tex_InsertItem")
to
if !hasmapto("<Plug>Tex_InsertItem", 'i')
=20
and line 906 from
if !hasmapto("<Plug>Tex_InsertItemOnNextLine")
to
if !hasmapto("<Plug>Tex_InsertItemOnNextLine", 'i')
=20
=20
Regards,
DindinX
--=20
<dav...@cp...>
|