Selecting resulting files from grep in vim

前端 未结 4 1788
轻奢々
轻奢々 2021-02-02 01:21

After I run a grep search in vim with :grep, I get a list of files. Is there a way to select one of those files and open it in a new tab at that particular line?

4条回答
  •  情歌与酒
    2021-02-02 02:12

    For achieving what you want you have to open the quickfix/error window after calling grep:

    :copen
    

    I have a script that makes it for me every time i use grep.

提交回复
热议问题