Selecting resulting files from grep in vim

前端 未结 4 1799
轻奢々
轻奢々 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 01:50

    If you get a list of files you can browse them in a tree-like manner via

    :cn
    :colder
    

    For more information

    :help grep
    

    and scroll to the bottom of the entry

提交回复
热议问题