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

guide flickering on unknown binding

Open vitaly opened this issue 5 years ago • 3 comments

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.

vim-leader-guide

vitaly avatar Mar 12 '19 15:03 vitaly

Hi,

same here, encounter this now way more often as a bought a new mechanical keyb with very light keys ...

Stocki avatar Mar 25 '19 15:03 Stocki

For anyone interested, I have a slightly hacky fix for this, PR referenced above.

BodneyC avatar Nov 20 '19 20:11 BodneyC

@BodneyC Thanks, it seems fix this issue for me.

markwu avatar Dec 30 '19 10:12 markwu