I am looking for a key mapping hint plugin, which has a similar functionality to the spacemacs' space key. Here is a window that displays the key mappings after pressing a spacebar:
... and when I press g
, I can access git functions:
... then, pressing S
would close the hint window and stage the file.
It is great, because I can learn key mappings of plugins very easily, without reading the docs. Needless to say, it is impossible to remember all those bindings for longer time, even those defined by myself in vimrc.
Is there a plugin with similar functionality, where pressing a leader key would open such window, awaiting for further user input?
It would be still great if it only accepted custom bindings from a config, so I can read the docs once, create bindings, add some labels with info for each entry, and forget about the details.
:map
. Also if I may give an unsolicited opinion:Needless to say, it is impossible to remember all those bindings for longer time, even those defined by myself in vimrc.
I think that you should define your mappings by yourself and by small steps: first define 2 or 3 mappings use them for a while, when they are in your muscle memory add some more and do it again... Plugins which defines mappings for you are not a good thing because they prevent you from learning Vim. (But that's just my opinion)map
. Its not that visually appealing but it shows you the full list. Similarly,imap
for Insert mode mappings,nmap
for Normal mode mappings and so on.<space>gS
so fast the window wouldn't even pop, staging the file immediately. It also makes such rare functions like toggle spell checking with dictionary a breeze, where muscle memory doesn't reach.<leader>gs
for:Gstatus
,<leader>gp
for:Gpush
, ... I tend to recommend not going with an existing full mapping, but to create yours over time. Anyhow, the screen does looks good for sure and it sure help during training.