Thanks Bailey and Tony,
Turning on opt as Meta only sends a ESC before the character. Still, vim cannot 
recognize it as <M-x>. Instead <ESC>x mapping does work that way as I 
summarized.

A remapping of ESC to M- is what I just find in the fandom vim wiki. It appears 
to be working well. I don't quite understand why Vim developers chose not to 
enable this, since NeoVim seems to be recognizing ESC prefix as M-. `` for i in 
range(97,122) let c = nr2char(i) exec "map \e".c." <M-".c.">" exec "map! 
\e".c." <M-".c.">" endfor ``
Could you explain a bit about when I would need the timeout setting? I'm using 
many combination keys with no issues so far.
Best regards, Haodong Du
On Sat, Mar 6, 2021 at 8:33 PM, Bailey Stoner <[email protected]> wrote:
If you’re in the default terminal app, you’ll need to go to the keyboard 
settings and change option to meta instead of the default :)
On Sat, Mar 6, 2021 at 14:27, Haodong Du < [email protected] 
[[email protected]] > wrote: Hi All, I'm wondering if there is a way to enable 
meta key for vim on mac. I'm using it from terminal. I read an earlier post in 
the mail list about MavVim.app GUI. But I want to stick to the stock Vim. What 
I have found out working:
1. NeoVim works with <M-x> out of the box. Of course you need to turn on Meta 
emulation of your terminal. 2. Vim works with <M-n>-->˜ kind of mapping when 
turning meta emulation off. 3. Vim works with <ESC>n kind of mapping when 
turning meta emulation on.
So far, my best option seems to use <ESC>n types of mapping. But not sure if 
this kind of mapping works with linux or not. Also for plugins using Meta, I 
have to remap manually. I hope there are better options to have Meta natively 
on Mac.
Regards, Haodong Du

--
--
You received this message from the "vim_mac" 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 
[http://www.vim.org/maillist.php]

---
You received this message because you are subscribed to the Google Groups 
"vim_mac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected] [[email protected]] .
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_mac/7a504a47-a86e-43a9-b017-b3ed4ce5ede1n%40googlegroups.com
 
[https://groups.google.com/d/msgid/vim_mac/7a504a47-a86e-43a9-b017-b3ed4ce5ede1n%40googlegroups.com?utm_medium=email&utm_source=footer]
 .




--
--
You received this message from the "vim_mac" 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 
[http://www.vim.org/maillist.php]

---
You received this message because you are subscribed to the Google Groups 
"vim_mac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected] [[email protected]] .
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_mac/F0_yNBdm9hBt8ZgX1RDXu8I-5uFopBB_q5BHixOBlyH9uhqnfI204PnG1oqI8LupSlq_jy5TQVgdWzMEWcQaYtjma_9qKZNU0nLJ_bnJ9BA%3D%40monokro.me
 
[https://groups.google.com/d/msgid/vim_mac/F0_yNBdm9hBt8ZgX1RDXu8I-5uFopBB_q5BHixOBlyH9uhqnfI204PnG1oqI8LupSlq_jy5TQVgdWzMEWcQaYtjma_9qKZNU0nLJ_bnJ9BA%3D%40monokro.me?utm_medium=email&utm_source=footer]
 .

-- 
-- 
You received this message from the "vim_mac" 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_mac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_mac/57e3241f-4aa8-4bd3-bdcf-e0d2739e98b3%40gmail.com.

Reply via email to