Vim-vertical: Get around 2-dimensionally in vim
github.com
github.com
As clever as these motions are though, easymotion simply blows them out of the water and there's no reason to use them. With easy motion it only takes as long as it takes your eye to move to where you want to move and you're there...you really can't beat that.
In some cases of course easymotion isn't enough because the place to which you need to move isn't on screen. So far all files I edit are short enough that I can scan the whole thing relatively easily by just holding down "J" or "K" (which I have mapped to "10j" and "10k")
https://github.com/justinmk/vim-sneak
Otherwise relative numbers and gj/ gk work well enough for me when it comes to moving vertically to a position I can see on the screen.
For me there's a tension between a growing number of very specific features and my ability to remember them all. These days I opt for minimal vim addons, as there's usually a good enough way to get something done by default.
But for people who need exactly this sort of thing, this thing is exactly the sort of thing they'll like.
Op's plugin is like transposing the buffer like a matrix, and then using normal word motions on the line that was a column.
https://code.tutsplus.com/tutorials/vim-essential-plugin-eas...
I believe Sublime, Emacs, and Atom all have one.
> Many times, I have been at the end of a line after editing it and needed to go to a nearby long line.
And how much time do you save, compared to placing the cursor using the mouse?
In vim some operations require a movement, where vim's movement has an advantage over using the mouse. For example, dt. deletes until the next period, or ci( which deletes the text inside parentheses and then enters insert mode.
It's also quite alarming to reach a level of proficiency where you can make non-trivial edits without looking at what you're editing, and know that the edits are correct. Again, this avoids context-switches.
That's why Vim is so focused on precision ("do exactly this") rather than DWIM ("Do What I Mean [usually]": the emacs/IDE approach).
Certainly whether the ramp-up cost is worth the "payoff" is debatable, but for me, editing text became so irritating that my initial experiments with Vim were driven from pure exhaustion after years of blub-craft.
:set nu
:20 # go to line 20
:set rnu
G20
Therefore, I think that it's quite a bad idea to use any of this plugins. The reason is that the most powerful Vim's concept is text-object and such shortcuts ruining muscle memory and mixing core technology understanding.
IMHO easy-motion gives excellent text-object visualization which helps me to understand text structure better.