Fast 'Find in Files' for VIM?

后端 未结 6 2071
慢半拍i
慢半拍i 2021-02-02 13:28

What are some options for getting really fast \'Find in Files\' searching in VIM?

Our codebase is large enough that searching needs to work off an index. grep/vimgrep/et

6条回答
  •  别跟我提以往
    2021-02-02 14:07

    Try to install https://github.com/mileszs/ack.vim, http://beyondgrep.com/ ,

    then make a link

    ln -s /usr/bin/ack-grep /usr/bin/ack 
    

    and add

    noremap  :copen:Ack -aQi --ignore-dir someignoringdir
    

    to your .vimrc, after you can find in files through Ctrl+F, enjoy

    _   /|
    \'o.O'
    =(___)=
       U  
    

提交回复
热议问题