0

Let's say I have a line like so:

setUp.then(() => process.exit())

Is it possible in vim to navigate to that line and start typing 'proc' and have it jump to process?

Thanks

timothyylim
  • 1,399
  • 2
  • 14
  • 32

1 Answers1

0

If "process" appears in only one line in your file, then vim search will take you to this very line.

/proc    

If "process" appears in more than one line, then you can make your search a little specific (assuming the pattern => process appears only one in your file), search instead with:

/=> proc    
brokenfoot
  • 11,083
  • 10
  • 59
  • 80