VIM: available shortcuts?

前端 未结 5 985
轻奢々
轻奢々 2021-01-30 17:31

I use many shortcuts for my work in vim. Other shortcuts are taken by plugins.

Sometimes I would like to add a shortcut for a new command but note afterwards that the sh

5条回答
  •  耶瑟儿~
    2021-01-30 17:31

    If you want a sorted, searchable list of your current mappings to look for unused keys, see my answer at: How to search in the Vim mapping listing?

    As a starting point, for the keys are not mapped by default, see :help map-which-keys

    You can use :map < key > to check a specific mapping. Example: to check Shift-F2, :map S-.

    AFAIK, there's no way of getting a list of what's unmapped without writing code to iterate through each possible key combination and check if there is any output from running :map < key > for that particular key.

提交回复
热议问题