Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vim: list free keybindings

Tags:

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 :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 
like image 800
derenio Avatar asked May 09 '11 21:05

derenio


People also ask

How do I Unmap a key in vim?

On vim , command-mode keys can be mapped through the ex command :map <key> <macro> and insert-mode keys can be mapped through :map! <key> <macro> . After mapped, the commands to remove the mapping from the command-mode keys and insert-mode keys are unmap <key> and unmap!


1 Answers

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.

like image 108
skeept Avatar answered Sep 29 '22 17:09

skeept