When using j/k to navigate with vscodevim.vim vim extension, it’s pretty laggy. It feels like the FPS is much less than 60 FPS. If I use arrow up/down, it’s ok. The problem is more pronounced in an external monitor.
There seems to be some improvements recently: Vim mode navigation is very laggy - #17 by mohitjain, which makes it better than before, but it’s still laggy in my opinion. VSCode doesn’t have this lag, so i’m not sure where it comes from.
Steps to Reproduce
Install vscodevim.vim, then navigate with j/k. The problem is more pronounced in an external monitor.
Hey, thanks for coming back with an update. I saw thread 138606 fixed the main issue with Cursor Tab request flooding when holding j/k, but based on your report there’s still some residual lag. The note about the external monitor is helpful, we didn’t have that before.
To figure out what’s slowing things down now, a couple quick tests would help:
Compare with Cursor Tab turned off. Settings → Tab → turn off Cursor Tab, restart Cursor, and test holding j/k. If it becomes smooth, the issue is still in the Tab pipeline. If the lag stays, it’s not Tab.
Extension Monitor. Cmd+Shift+P → Developer: Open Extension Monitor (enable it via Settings → Application → Experimental → Extension Monitor Enabled). Please share CPU and memory for vscodevim while holding j/k.
External monitor refresh rate. What’s it set to in System Settings → Displays for that monitor 60Hz / 120Hz / ProMotion? Does it reproduce just as strongly on the built-in MacBook display?
A 10 to 15 sec screen recording showing j/k vs arrow keys in the same file would really help compare FPS.
Once you’ve got that, send it here and I’ll start a follow-up for the residual lag.
Hi, thanks for getting back. To answer your question:
Turning off Cursor Tab doesn’t make a difference
(Attached the screenshot) - the CPU for vim is minimal. But there was an extension host that has 100%, which seems to be from the agent (even though I don’t have any threads running at the moment)
External monitor refresh is at 60Hz. The built-in Macbook display is ProMotion. It doesn’t produce as pronounced in the built-in Macbook display.
I’ve attached the screen recording for cursor (on external monitor) and vscode.