On Sun, May 11, 2014 at 4:16 PM, Jacob Niehus <[email protected]>wrote:

> Hello,
>
> I have found that meta key mappings do not work properly when used in a
> recording/macro or the :normal command. This happens in both terminal and
> GUI Vim so I don't think it's a key code issue.
>
> Steps to reproduce:
>
> 1. Run vim, e.g. vim -u NONE -i NONE --noplugin -c "set nocp hid"
> 2. Run ex command :nnoremap <M-d> d
> 3. Insert text "word word" in the buffer
> 4. Place the cursor at row 1 column 1 (the first w)
> 5. Run ex command :execute "normal fw\<M-d>w"
>
> What should happen: the second "word" should be deleted leaving "word "
> with the cursor on the space
>
> What does happen: the word is not deleted, there is a beep/bell, and the
> cursor is on the first character of the second word
>
> Note that this command does as expected: :execute "normal fwdw"
> Typing "fw<M-d>w" in normal mode also behaves as expected.
> This ex command does NOT work (ä is the character corresponding to <M-d>
> in Latin): :execute "normal fwäw"
>
> This issue has been present in every version of Vim I've tried, but the
> attached bug report is for MacVim 7.4.183 running in terminal mode.
>
>
Sounds like in doing '-u NONE' and so forth, it caused the 'macmeta' option
to be off; if that's right, then it's no wonder the <M-> mapping isn't
working properly.  'macmeta' needs to be on if you want to map meta on mac.

But more importantly, even if you had it turned on, <M-> mappings on OSX
are finicky, and unpredictable.  I'd advise against using such mappings
even if turning on 'macmeta' seems to work.

Also, for future reference, the place to report bugs in MacVim is the
MacVim mailing list.

-Manny

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui