How to find out in Vim which command is triggered by some shortcut

后端 未结 2 1173
生来不讨喜
生来不讨喜 2021-02-10 05:42

I try to execute a command in some plugin by pushing it\'s keyboard shortcut F2. But some other command is executed, instead. But that command gives an error. So it i

相关标签:
2条回答
  • 2021-02-10 06:29

    You can check the shortcuts in ~/.vimrc file and ~/.vim/plugin/[you plugin name], maybe you find which action is bound to the F2 key.

    0 讨论(0)
  • 2021-02-10 06:34
    verbose map <F2>
    

    will give you information about both {rhs} and place where this mapping was defined. For insert mode mappings replace map with imap, same for other mapping modes.

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