on mac, how to get command/apple key to send Meta?

8,615 views
Skip to first unread message

David Lam

unread,
Aug 12, 2009, 12:40:03 AM8/12/09
to vim...@googlegroups.com
hmm just got a macbook, checkout and built vim ...  "Huge version with Carbon GUI"  patches 1-245

anyways, I have a bunch of keys in my .vimrc bound to <M-f> <M-b> <M-n> <M-p> <M-t> etc. etc.,
but it looks like Vim sees <D-f>  <D-b> <D-n> <D-p> etc.

is there a setting to make vim automatically translate <D-  to <M- or something?

bjorn.winckler

unread,
Aug 12, 2009, 7:28:54 AM8/12/09
to vim_use
Hi David,

"Meta" is the "Option"/"Alt" key on the Mac. The modifier "D" stands
for the "Command" key. So, no need to translate anything, just press
the key next to Cmd instead.

By the way, if you intend to use the GUI then you should know that the
Carbon version is horridly outdated. Go to

http://code.google.com/p/macvim/

for an up-to-date GUI version of Vim on the Mac. (If you do download
MacVim.app you might need to check out the 'macmeta' option to get
<M-..> mappings to work [requires the snapshot, not in the stable
build]. If you have any problems with MacVim you can ask on vim_mac.)

Björn
Reply all
Reply to author
Forward
0 new messages