When I press and hold j or k, they are repeated by the OS interface (I presume). Vim seems to scroll on each character produced by the keyboard. This makes the scroll pause shortly right after holding the key down, and then only being repeated at a speed I can not configure for vim.
I would like the scrolling to repeat immediately after holding the key down, and I would like to configure the rate at which the j/k command is executed while the key is being held. So it would be useful to map commands to a key up event, so I could maybe set scrolling on and off when the key is being released.
How could you achieve this?