开发者

I can't map my command (Apple) key in vim

开发者 https://www.devze.com 2023-01-23 11:37 出处:网络
I\'m having some trouble mapping my apple key in vim. I know that \'D\' is the mapping symbol for the command button, but it doesn\'t work!

I'm having some trouble mapping my apple key in vim. I know that 'D' is the mapping symbol for the command button, but it doesn't work!

I've tried with: map! <D-s> <Esc>:w<Enter>开发者_如何学C;, but it doesn't work!! I'm getting real frustrated - does anyone know why it's not working?

It works with map! <F2> <Esc>:w<Enter>

I am using the terminal version: Vi IMproved 7.2 on Snow Leopard


MacVim version can map the command key. I do not believe any other version can (including the terminal version bundled by default with OS X).


I am not sure that you can map this key in the terminal version; can you try with gvim?

0

精彩评论

暂无评论...
验证码 换一张
取 消