I use mac , and I want to configurate .vimrc , for example: :map <C-a> p means ctrl-a -> p
now , I want to do this using command key on mac keyboard, how can I do this? I tried :map <D-a> p , but I failed . whick word represent command key?
The mapping should work. Unless macvim has already mapped that key to a menu. You first need to unmap it from the menu by adding something like the following into your .gvimrc NOT .vimrc.
macmenu Edit.Select\ All key=<nop> to unmap <D-A> from Select All.
After that nnoremap <D-a> p will map <D-a> to p.
.gvimrc. What do you mean that you don't have macvim?map <F4> :Ack -i <D-v> after I used command+c copied a word ? I did this map <F5> :Ack -i <D-v>, but it will show :Ack -i <D-v> after I used F5 key.
map <F5> :Ack -i <D-v>, but it will show:Ack -i <D-v>after I used F5 key.