zhengquan wrote:
>
> On Jan 2, 4:32 pm, Tony Mechelynck <[email protected]>
> wrote:
>
>> On 02/01/09 23:05, zhengquan wrote:
>>
>>
>>> Thanks Tony,
>>> the output of the two verbose commands shows no mappings.
>>>
>> You did issue them with your latex file current didn't you?
>>
>> What are you hoping that this Alt-I should do?
>>
>
> yes I did issue the commands with my latex file, and the output show
> no mappings.
> I am hoping that in an itemize environment, when I type alt-i in the
> environment, it will automatically insert a \item
>
> \begin
> {itemize}
> \item (\item is inserted as the result of alt-
> i)
>
> \end{itemize}
>
I suggest that you find out what's being delivered to vim when you press
Alt-i. What is being delivered is
a) likely to be different between vim and gvim
b) likely not to be what vim/gvim thinks <m-i> is
I constructed the following two maps by pressing ctrl-v and then alt-i
after typing "nmap ". They "work for me"; that's not to say that the
email won't mutilate it nor that your terminal interface will deliver
the same thing in vim's case.
if has("gui_running")
nmap é :echo "gvim's alt-i"<cr>
else
nmap i :echo "vim's alt-i"<cr>
endif
Of course, you can modify the maps' payload to suit your needs.
Regards,
Chip Campbell
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---