Hello again,

I have a custom keyboard shortcut for moving quicker in VIM (for Emacs I use EVIL) where I hold down CTRL and press HJKL I move faster in the direction.

Like this:

;; Movement changes - BUG: When I release CTRL it still does one last 5 line jump when pressing one of my keys (define-key evil-normal-state-map (kbd "C-h") (kbd "h5")) (define-key evil-normal-state-map (kbd "C-j") (kbd "j5")) (define-key evil-normal-state-map (kbd "C-k") (kbd "k5")) (define-key evil-normal-state-map (kbd "C-l") (kbd "l5")) 

However, in EMACS when I use this, it does work. But once I let go off CTRL it does ONE last 5 jump, despite that it should have stopped. It also feels a bit like there is a small delay when doing this.

Does anyone know a possible solution for this to make it more responsive and NOT have a "last" jump after letting CTRL go.

Thanks in advance.

submitted by /u/AtZeroOne
[link] [comments]