how to map command key when configurate .vimrc?

后端 未结 1 1694
终归单人心
终归单人心 2021-01-25 10:11

I use mac , and I want to configurate .vimrc , for example: :map p means ctrl-a -> p

now , I want to do this using command ke

相关标签:
1条回答
  • 2021-01-25 10:51

    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.

    0 讨论(0)
提交回复
热议问题