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
ttimeoutandtimeout(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.vimloaded? You can start NeoVim that way withnvim --clean. Please [edit] the question to report whether that helps or not. – filbranden Sep 27 '20 at 21:28nmap cw. Or justnmapand verify ok. Also, checkau– eyal karni Sep 28 '20 at 01:09nvim --clean, I'll search tomorrow for the problem plugin and report back with another edit. – Exnur Sep 28 '20 at 01:39set clipboard=unnamed,unnamedplusand the lag was caused by clipboard interaction - pasting is slow with it on too. Any idea why this might have studdenly started, or should I just ask that separately? I've had this in my vimrc for over a year. – Exnur Sep 29 '20 at 22:10:versionorvim --versionetc. and whether you're settingg:clipboardor similar. I'm not super experienced in'clipboard'settings, but others will be able to help! – filbranden Sep 29 '20 at 22:28