Searching some pattern in multiple files is something that is required very often. There are multiple ways to do it, like grep, ack, find and so on so forth. But if your editor already has the capability to do that, then why leave your favourite vi and go to shell. I will point you to some scripts and some wiki pages on how to do this 🙂
http://vim.wikia.com/wiki/Search_for_current_word_in_multiple_files
http://www.vim.org/scripts/script.php?script_id=2438
http://www.vim.org/scripts/script.php?script_id=311
Related articles by Zemanta
- Better Than Grep: ack (ezran.org)
- Use curl to Monitor Your Vonage Phone Bill (slumpedoverkeyboarddead.com)
- Extract all urls from the last firefox sessionstore.js file used. (amit-agarwal.co.in)
Link to this post!
One thought to “vim search multiple files”
You must log in to post a comment.