Find a file (via recursive directory search) in Vim

后端 未结 15 1144
感情败类
感情败类 2020-12-22 18:42

Is there any way to search a directory recursively for a file (using wildcards when needed) in Vim? If not natively, is there a plugin that can handle this?

15条回答
  •  情话喂你
    2020-12-22 19:11

    vim has bild in commands named grep, lgrep, vimgrep or lvimgrep that can do this

    here is a tutorial on how to use them http://vim.wikia.com/wiki/Find_in_files_within_Vim#Recursive_Search

    you can also use an external command like find or grep from vim by executing it like this

    :!find ...
    

提交回复
热议问题