i think i find the problem. you can try to set <M-CR>, vim shows it catched it, and can't recognized it. btw, in enc-cp936, after set <M-CR>=<M-CR>, the map works well, but not in utf-8.
On 12月23日, 上午10时45分, Bill McCarthy <[email protected]> wrote: > On Mon 22-Dec-08 10:32am -0600, Marc Weber wrote: > > > > > On Mon, Dec 22, 2008 at 07:59:59AM -0800, StarWing wrote: > > >> thank you for notice my issue. > > You can. But you have to make sure that you map after > > set encoding=utf-8 > > > The help does tell you so as well. > > The help states: > > In the GUI Vim handles the Alt key itself, thus mapping keys > with ALT should always work. > > Starting gvim in windows has encoding=latin1. However > Alt-CR doesn't map. > > For example: > > :map <M-CR> :echo "abc"<CR> > > does nothing apparent. > > I tried: gvim --cmd "set encoding=utf-8" > > My simple map still doesn't work. > > -- > Best regards, > Bill --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
