Command key in MacVim

后端 未结 2 1625
清酒与你
清酒与你 2021-02-07 06:51

How do I use the command key in MacVim? For example I would like to be able to press Cmdt to open CtrlP or Cmdn to open NerdTree.

2条回答
  •  广开言路
    2021-02-07 07:28

    The command key on OS X is known as the Super key in Vim, so you can do the following:

    map  :CtrlP
    map  :NERDtree
    

    You can read more about the different key mappings in :help key-notation. You can't use the command key as a leader because it doesn't lead off a command, but is instead a modifier.

提交回复
热议问题