Re: [Vim-latex-devel] e acute and the FAQ
Brought to you by:
srinathava,
tmaas
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/ |