Neovim-from-scratch icon indicating copy to clipboard operation
Neovim-from-scratch copied to clipboard

timeoutlen = 100ms

Open w-r-z-k opened this issue 2 years ago • 4 comments

Setting timeoutlen to 100 milliseconds in the options file makes it appears like the leader key is not working.

w-r-z-k avatar Dec 21 '21 00:12 w-r-z-k

This is issue was mentioned in vim-which-key repo here

You can find solution here
https://vi.stackexchange.com/questions/3964/timeoutlen-breaks-leader-and-vim-commentary

ghost avatar Dec 21 '21 02:12 ghost

I experienced a similar problem with the vim fugitive plugin when timeoutlen was set to 100 milliseconds. The fugitive dd mapping to show a diff view did not work. Instead nvim interpreted this as a regular dd (delete line). Solved by setting timeoutlen to 300 milliseconds. Downside is that whichkey now takes longer to show up, but this is probably inevitable.

tvdab avatar Jan 09 '22 20:01 tvdab

That is interesting... In all branches before 21-whichkey the timeoutlen to 1000 milliseconds and Leader works fine. There is probably a setting between 100-1000 that may work better.

eclectic-coding avatar May 03 '22 21:05 eclectic-coding

I hope I saw this post sooner. I spent two days on debugging this...

CharlesChiuGit avatar Jun 18 '22 05:06 CharlesChiuGit