After entering :Grep in the vim command line, the grep plug-in will prompt you to enter the keywords to be found, and then
For the file type you are looking for, press Enter to perform the search, and the search results will be listed in quickfix (note, vim and
Many external commands and plug-in interaction information will be presented in quickfix).
If you want to suddenly change the case, execute it
:Grep -i
If you want to search subdirectories recursively, execute it
:Grep -r
If you execute the :Grep command in a non-blank space, the grep plug-in will automatically search for the word currently under the cursor as a keyword
Separating line
grep.vim will open the quickfix window :cwOpen the quickfix window:cw打开 quickfix 窗口 :q:qExit quickfix
You can refer to: http://vim.wikia.com/wiki/Find_in_fil...
Recommended Grep.vim plug-in
http://www.vim.org/scripts/script.php...
After entering
:Grep
in the vim command line, the grep plug-in will prompt you to enter the keywords to be found, and thenFor the file type you are looking for, press Enter to perform the search, and the search results will be listed in quickfix (note, vim and
Many external commands and plug-in interaction information will be presented in quickfix).
If you want to suddenly change the case, execute it
If you want to search subdirectories recursively, execute it
If you execute the :Grep command in a non-blank space, the grep plug-in will automatically search for the word currently under the cursor as a keyword
Separating linegrep.vim will open the quickfix window
:cw
Open the quickfix window:cw
打开 quickfix 窗口:q
:q
Exit quickfixYes. See details
Use ack
grep -rl