There are a lot of times were I have something like int x = someFunction(a, b, c); If my cursor is somewhere after the equals sign, is there a good way to put the cursor on the “s” in someFunction?

All the options I’ve tried suck. F=ll has too many keypresses far away from each other, spamming B until I get there is dumb and doesn’t work with macros, and counting words and doing (number)B ruins the workflow because I have to stop and count words.

  • 1
    F=ll has too many keypresses Create a mapping. Sort of nnoremap F F=w. – Matt Sep 27 '19 at 4:24
  • Do you like F(b any better? Fs? – Rich Sep 27 '19 at 9:31
  • 2
    Or how about %b? F=w? – Rich Sep 27 '19 at 9:39
  • I like %b, Rich. Besides being short and pretty easy to type, a double % (%%b) will get you there if you start to the left of the left parens – B Layer Sep 27 '19 at 15:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.