hecal3 / vim-leader-guide

295 stars 21 forks source link

guide flickering on unknown binding #51

Open vitaly opened 5 years ago

vitaly commented 5 years ago

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

Stocki commented 5 years ago

Hi,

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

BodneyC commented 4 years ago

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

markwu commented 4 years ago

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