When I use mapped key sequences which cause an immediate change in the file (e.g. cw
, dw
, D
, C
), i have a wait time of roughly 1 second. Other mappings which are just movement (e.g. 3w
) or movement and a mode change (e.g. A
or I
) do not cause any delay.
Currently my attempted solutions include:
- Changed
ttimeout
andtimeout
(neither was set to have a timeout, I tried messing with them anyway) - used
:profile file *
and:profile func *
- did not see anything which ran more than once or had a runtime over roughly ~0.1 seconds (my experiment was to open a file and type a bit - experienced the delay several times while profiling) - To make sure it wasn't my terminal (iTerm2) waiting for something, I loaded up vanilla vi (no plugins or anything) and tried that - no delays there.
I'm on neovim v0.4.4, in iTerm2. Any help or other avenues to explore are appreciated. Is there any way to use :profile
for mapped key sequences?
Edit: as per filbranden's feedback I loaded nvim using nvim --clean
, and the problem isn't there. Tomorrow I will try removing different plugins and see what causes the problem, then report back.
Edit 2: As per eyal karni's advice I checked nmap cw
, which reported no mapping found. I also don't see anything that looks relevant in au
, but to be honest, I'm new enough to neovim that I could be missing something - I searched it for cw
and didn't find anything.
init.vim
loaded? You can start NeoVim that way withnvim --clean
. Please edit the question to report whether that helps or not.nmap cw
. Or justnmap
and verify ok. Also, checkau