www-gem words

Speedup your vim motions

Published on

Bvim The first thing (would I dare saying the only one?) that should bother you in vim is the latency in vertical and horizontal motions. I mean, if you type and hold j for example, you cursor will move down and then freeze for few milliseconds before waking up and letting you scroll your document. This behavior can easily be fixed with a simple command to be added to your .xinitrc file (and as such this will affect your entire system, not only vim):

xset r rate 200 50

The r option of the xset command controls the autorepeat. The first number specifies the delay before autorepeat starts and the second specifies the repeat rate. Just play with the numbers to find out what works best for you.

Now, you’re ready to reveal your real typing power and become a typing master. Put your hood on, turn off the light, and hack your toaster at lightspeed :)


Thanks for your read. Hope it's been useful to you.


Interact with this post using Mastodon or

Comment on wwwgem's post

Copy and paste this URL into the search field of your favourite Fediverse app or the web interface of your Mastodon server.

✄ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈

More food for thoughts? Check other posts about: #Vim