vim-leader-guide icon indicating copy to clipboard operation
vim-leader-guide copied to clipboard

Hiding a keybinding?

Open Tehnix opened this issue 6 years ago • 2 comments

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

Tehnix avatar Aug 24 '17 07:08 Tehnix

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 avatar Sep 05 '18 13:09 spinks

@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.

Tehnix avatar Sep 06 '18 09:09 Tehnix