How to map mac command key in vim?

前端 未结 3 1744
自闭症患者
自闭症患者 2021-02-12 10:20

I want to map my NERDTREE toggle to Cmd + space but I don\'t know what character represents Mac\'s command key in .vimrc. I searched and found that we can use \

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-12 10:36

    It is true that maps to command key. You can see it by :help .

    However, this will not work in your vim+terminal. It only works in MacVim. See here

    The best shot for your intention is to map the combination as hex code, sending to terminal.

    Still I will not recommend doing this. command is too important for mac os environment. For example, anyone uses an input method can't map it to command+space.\

    Please consider using the usual method here: .

提交回复
热议问题