vim-leader-guide
vim-leader-guide copied to clipboard
Hiding a keybinding?
Heya,
Is it possible to hide a keybinding added to vim-leader-guide?
As an example, I want to emulate the Spacemacs behaviour of having commands for <Space> 1
going to <Space> 9
for switching to windows. Currently, plainly adding them adds a lot of noise with 1
, 2
, 3
etc, cluttering the UI. I'm aiming at hiding their keybinding and simply showing a [0-9]
instead.
To make it a bit clearer, this is my current view in vim,
![screenshot 2017-08-24 16 03 44](https://user-images.githubusercontent.com/1189998/29653748-d9f9a534-88e5-11e7-8a8a-da31168cc6b8.png)
Hi! If you're still looking for this functionality I have a fork where I've implemented this. The commit is here https://github.com/spinks/vim-leader-guide/commit/40af6b74cce51dd4869b86524f4193ef30d2aada
Personally I have the same window number mappings as you are aiming to have and it works well. The mapping below would be hidden from the menu.
nnoremap <leader>1 :1wincmd w<CR>
let g:lmap.1 = [ 1.'wincmd w', 'leader_ignore']
@spinks awesome! :) That'll allow me to greatly clean up my overview. I'll keep this open, until your fork (if ever) gets merged though, for visibility.