4 ms·
I have in my vimrc something I'm calling restrain.vim. In effect it allows me to rebind a double press such as jj, kk, hh and ll to do something else. That mean
by goldfeld 14y ago
I have in my vimrc something I'm calling restrain.vim. In effect it allows me to rebind a double press such as jj, kk, hh and ll to do something else. That means I can only press any of these keys once, if I press a second time it does a different thing (I'm using j and k for jumping to the next line number ending in 0, or ending with a digit if I supply a count, so it's kinda like relative line movement with absolute line numbering).
So when I press j once it moves down one line, and if I press any other command it's reset so I can press j once again next time (so it allows going down a line and pressing . repeatedly). But from the second consecutive press each single j press will be doing another thing. This is helping me a lot with retraining to using other methods to get around instead of spamming j. Wait, that's a good wordplay, restraining, retraining. Hmm..