How to match the command key when configuring .vimrc?

I am using mac and I want to configure .vimrc, for example :map <Ca> p means ctrl-a -> p

now, I want to do this using the command key on a Mac keyboard, how can I do this? I tried :map <Da> p , but I failed. is whick word a command key?

+1
source share
1 answer

The display should work. If macvim has already displayed this key in the menu. First you need to undo it from the menu by adding something like the following to your .gvimrc NOT .vimrc .

 macmenu Edit.Select\ All key=<nop> 

to disconnect <DA> from Select All.

After that, nnoremap <Da> p map <DA> to p .

+1
source

Source: https://habr.com/ru/post/1260856/


All Articles