Okay, here's the thing: let's say you have a buffer, 1000 lines long (a source code for example). And you want a super-fast navigation, jumping to the right place. Example:
You are on a line 42, on character 44 (quotation after exclamation mark). You would like to access line 20, character 34 (w
of which_has
):
20 def very_interesting_function(which_has, some_interesting, arguments):
...
42 s = "I want to master the universe!"
What's the quickest way to get there? Plugins, custom keybinds are welcome!
My solutions:
?whichi
22k%a
-- requires simple math20ggf(a
- hold
k
and thenf(a
-- takes too long - hold
{
or(
, thenj
ork
if needed,f(a
-- too lame
But this is just an easy example. The use case may be far more complicated -- getting to a position of the screen, where 2) and 3) are unfeasible.
So, what you guys use? I feel like searching (/
, ?
) is most superior.
Edit: looks like my question may be a dupe of this one. The main difference is that Peter provided very precise answer (I couldn't find such an excellent answer in the former question).
f
,t
– Tomas Tomecek Feb 25 '15 at 22:46