You can open a file with vim to the first match of a pattern like so:

vim file.txt  +/<pattern>