开发者

Vim: list free keybindings

开发者 https://www.devze.com 2023-03-04 21:13 出处:网络
Is there some way to list unused keybinds? I guess if the answer is no, it would be a good feature-request (especially for these undecided types like myself).

Is there some way to list unused keybinds? I guess if the answer is no, it would be a good feature-request (especially for these undecided types like myself).

Edit: To make it more precise, I know you can list bindings with:

:map
:nmap
开发者_JAVA技巧:imap

FFI see:

:help map-modes

and manually check whether given binding is used by typing e.g.:

:help Ctrl-w
:help ^w

FFI see:

:help map


To my knowledge there is no way to list the unused key-bindings (this would be impossible because there is an infinite number of them).

But if you want to go the other way around you can type:

:map

:imap 

to list the user defined key-bindings.

Also if you type

:help index

you can check if some key-binding is already assigned to a function in vim.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号