Vimgrep is similar to the find command.
There are a few differences between find and vimgrep.
We need to tell vimgrep where we want it to search the percent sign % means the current open document and */ means the current working directory.
(Note: You must have your .vimrc file updated with the lines from video 34 for this to work like it does in this video)
Vimgrep will also return the number of times that search argument was found.
All found search arguments can be found in the quickfix list by typing :cope (for c open) or :cw (for c window)
We can use k and j to move up and down to and pressing enter will take us to that spot in the document.
We can also use :cnext, :cprev, :cfirst, and :clast to jump to the
The shortcut for vimgrep is vim
See the complete Vim playlist at:
https://www.youtube.com/watch?v=1lzXr-MztOU
See the complete Vim playlist in a single video at:
https://www.youtube.com/watch?v=3G6kAEvbv2A
Website link:
https://thefrugalcomputerguy.com/linux/seriespg.php?ser=10002
12 Comments