I can not display the key of my command (Apple) in vim

I'm having problems displaying my apple key in vim. I know that ā€œDā€ is the display character for the command button, but it does not work!

I tried with: map! <Ds> <Esc>:w<Enter> map! <Ds> <Esc>:w<Enter> , but this does not work !! I'm upset - does anyone know why it is not working?

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

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

+4
source share
2 answers

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

+5
source

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

0
source

All Articles