vim-leader-guide
vim-leader-guide copied to clipboard
guide flickering on unknown binding
I noticed recently that when I make a mistake typing some key combination I sometimes get the leader guide flickering. I have to Ctrl-C
to stop it, and sometimes it leaves the guide window behind. (see attached gif)
I thought that may be my particular configuration was responsible, but eventually I succeeded to reduce vimrc
to the following (I'm using vim-plug)
call plug#begin('~/.vim/bundle')
Plug 'junegunn/vim-plug'
Plug 'hecal3/vim-leader-guide'
call plug#end()
let mapleader = " "
set timeoutlen=500
noremap <plug>guide(global) :<c-u>LeaderGuide '<space>'<CR>
map <silent> <leader> <plug>guide(global)
nmap <leader>x :echo 'ok'<cr>
the last <leader>x
mapping is needed to have at least one mapping defined in the guide.
So, with this vimrc
, install the plugin, then in vim type <space>1x
. Anything will work instead of 1
.
e.g. the flickering starts when a non-existing key is followed by one that does exist in the mapping.
Hi,
same here, encounter this now way more often as a bought a new mechanical keyb with very light keys ...
For anyone interested, I have a slightly hacky fix for this, PR referenced above.
@BodneyC Thanks, it seems fix this issue for me.