And then in order to get Vim style navigation, I've attempted to remap hjkl to my arrow keys. I tried several approaches which did not work at all. I've settled on the following approach because it works for single key presses. But when I hold down, for instance, Caps lockJ in Eclipse, the CtrlAltJ keyboard shortcut fires instead of simply going down a line. It only goes off for automatic keyboard repeats, never for the original key press.

Scrolling down 20 lines by hitting J 20 times is too tedious. Does anyone have a solution, or am I using something inappropriately? I have some other commands mapped to Caps lock and CapslockWin (technically mapped to ^!+ and ^!+#), so fixes would preferably not break those. For instance:

Is there any particular reason why you must use Ctrl+Alt+Shift? I would think having CapsLock just toggle a variable would make this easier/simpler.
–
Elliot DeNolfDec 7 '12 at 20:21

I was using Ctrl+Alt+Shift because it also had the benefit of letting me set hotkeys in other programs without worrying about collision. But that wasn't working anyway with my attempt, so nothing was lost by switching to your solution below.
–
Daniel KovermanDec 10 '12 at 20:25

1 Answer
1

This is a sort of alternative to what you are currently doing. I have made it so CapsLock simply toggles the variable cmd. Based upon this variable, your movement keys are enabled. Any of these keys can be held in order to repeat multiple times.

I have also provided some methods, which may be overkill for right now but may prove to be useful to you later.