Hi Charles, I think we are close to the solution to the problem. On Jan 2, 7:12 pm, "Charles E. Campbell, Jr." <[email protected]> wrote: > 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 > I copied this code snippet to my .vimrc and tried in mlterm, but alt-i still inserts a small e acute... in gvim alt-i inserts correctly, Could you tell how can I debug the mappings?
Thank you very much, I am pretty headstrong and don't want to use another mapping for the insertion. Zhang > 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 -~----------~----~----~----~------~----~------~--~---
