6 ms·
This sounds very similar to EasyMotion, which is an amazing plugin that I hope everyone tries. EasyMotion allows make any movement, say "w" for forward by word
by edanm 14y ago
This sounds very similar to EasyMotion, which is an amazing plugin that I hope everyone tries.
EasyMotion allows make any movement, say "w" for forward by word, and will then highlight the beginning of every word on the screen with a "target key". Pressing that target key will take you to that word. Similarly, doing "<EasyMotion Key>j" will do the same, but with every line down from your line (j=down), making jumping to any line, anywhere, as easy as "<EM>j{letter}".
I have EasyMotion bound to the "space" key, and I use a fork of EasyMotion that automatically highlight with 2 letters instead of one (the default is to higlight with one, and if anything is ambiguous, after pressing the first key you'll get another key to press. With this fork, you never have to "press a key then wait", you always press the two keys that appear).
I also have the letters to use mapped to something like: "asdfghjkl", e.g. the homerow keys in order, because if I mistype one of the keys, EasyMotion will take me pretty near.
- goldfeld 14y agoI should have mentioned EasyMotion in the readme! Or should I.. I should right? I love it, and also recommend everyone to try. But there's just one thing about it: you need to trigger it first to see what you have to press to get to your target. By creating seek I was able to literally make it a three-keystrokes action, I don't need to wait a split second to know what I need to type as the target, I'm already looking at it before I hit even the first key. So I find EasyMotion great for getting across lines and around the screen, but within the line I think seek is a more fundamental solution.
- edanm 14y agoFair enough. I'll give it a try. And I think you should mention EasyMotion in the Readme, I'm probably not the only one around who uses that plugin and many people probably have the same question/
- SilasX 14y agoInteresting, that's like what Pentadactyl (a vim-based plugin everyone should also use) does for links on websites, but for text in vim instead. (And I also had to remap the default keys away from the number row ...)
- goldfeld 14y agoYes, EasyMotion is very like the browser vim keybindings. I personally use Luakit which is very minimalistic and dead easy to reprogram your way from interface to behavior.
- SatvikBeri 14y agoVimium for Chrome is yet another similar plugin (but the keys start mapped to home row, similar to vim.)
- gnosis 14y agoAlso see PreciseJump, which was the first vim plugin to do this.
- tednaleid 14y agoWhen I switched from Vim to Sublime Text 2 (with Vintage vim mode), I missed EasyMotion so much that I created a ST2 plugin for it: https://github.com/tednaleid/sublime-EasyMotion https://github.com/tednaleid/sublime-EasyMotion
- shabble 14y agoFor Emacseers, this sounds essentially equivalent to ace-jump-mode[1] There's a nice intro video by EmacsRocks at [2]. [1] https://github.com/winterTTr/ace-jump-mode https://github.com/winterTTr/ace-jump-mode [2] http://emacsrocks.com/e10.html http://emacsrocks.com/e10.html
- martinced 14y agoace-jump-mode is the absolute Emacs nuts and every Emacseers ought to spend the two minutes it takes to understand how it works because it is the biggest time saver ever. You must be able to type any letter/number on your keyboard without looking at your keyboard that said because the way to use it efficiently consist in first looking where you want move your cursor, then invoking the shortcut while keeping your eyes on your target. That's how you can be really very efficient. Note that the latest version can also "ace jump" across various Emacs frames (previously it was limited to buffer(s) inside the current frame). But to be honest the thing posted here for vim is different: Emacs' ace-jump-mode is vim's easymotion and the author of this new vim navigation feature suggest also using easymotion. But, yeah... Anyone using Emacs or vim and not using ace-jump-mode / easymotion is totally unaware of what he is losing. Every single time I demonstrate that to coworkers I see a jaw dropping ; )