Skip to Content
Modern Vim
book

Modern Vim

by Drew Neil
May 2018
Intermediate to advanced
168 pages
4h 2m
English
Pragmatic Bookshelf
Content preview from Modern Vim
Tip 13Searching Files with Grep-Alikes

Grep searches the contents of files for a specified pattern. Vim’s built-in :grep command executes grep and then parses the results and loads them into the quickfix list for easy navigation. While the built-in :grep command runs synchronously, the Grepper plugin makes it possible to run grep asynchronously. This means you can continue to operate Vim while the process runs in the background.

Preparation

In this tip, you’ll use the Grepper plugin[37] by Marco Hinz. You can install it to your bundle package like this:

=> $ cd $VIMCONFIG/pack/bundle/start
=> $ git clone https://github.com/mhinz/vim-grepper.git

Run :helptags ALL, then you can find extensive documentation for the plugin by looking up ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Vim Masterclass

Vim Masterclass

Jason Cannon
Mastering Vim

Mastering Vim

Ruslan Osipov

Publisher Resources

ISBN: 9781680506006Errata Page