In Vim, I often find myself performing one search immediately followed by another search. I am wondering if I can combine the two searches into one command.
For example, if I want to find the first instance of the
foobar variable within a function named
transmogrify, I would enter:
/def transmogrify /foobar
Or if I'm in a log file and I want to search for an error that happened after a specific date:
Is there a better way to do this? And no, I'm not looking to record a macro.