vim search multiple files
Searching some pattern in multiple files is something that is required very often. There are multiple ways to do it, like <a class="zem_slink freebase/en/grep" title="Grep" rel="wikipedia" href="http://en.wikipedia.org/wiki/Grep">grep, <a class="zem_slink freebase/guid/9202a8c04000641f8000000006b66ec6" title="Ack (command-line utility)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Ack_%28command-line_utility%29">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 π
<a href="http://vim.wikia.com/wiki/Search_for_current_word_in_multiple_files">http://vim.wikia.com/wiki/Search_for_current_word_in_multiple_files
<a href="http://www.vim.org/scripts/script.php?script_id=2438">http://www.vim.org/scripts/script.php?script_id=2438
<a href="http://www.vim.org/scripts/script.php?script_id=311">http://www.vim.org/scripts/script.php?script_id=311<h6 class="zemanta-related-title">Related articles by Zemanta <ul class="zemanta-article-ul"> <li class="zemanta-article-ul-li"><a href="http://www.ezran.org/blog/2009/10/better-than-grep-ack/">Better Than Grep: ack (ezran.org) <li class="zemanta-article-ul-li"><a href="http://www.slumpedoverkeyboarddead.com/2009/09/17/use-curl-to-monitor-your-vonage-phone-bill/">Use curl to Monitor Your Vonage Phone Bill (slumpedoverkeyboarddead.com) <li class="zemanta-article-ul-li"><a href="http://blog.amit-agarwal.co.in/2009/12/27/extract-all-urls-from-the-last-firefox-sessionstore-js-file-used/">Extract all urls from the last firefox sessionstore.js file used. (amit-agarwal.co.in) <div class="zemanta-pixie"><a class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" href="http://reblog.zemanta.com/zemified/47d4eb72-f194-4af1-84c6-67efba292911/"><img class="zemanta-pixie-img" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/reblog_b37.png" alt="Reblog this post [with Zemanta]" /><span class="zem-script more-related more-info pretty-attribution paragraph-reblog">
Related Articles:
- 2010/03/08 eclim for Fedora β Leonidas β installation.
- 2010/03/24 Recursive Regular Expressions
- 2010/03/16 Linux find command β Find file and directories faster and easier
- 2010/01/19 Perl script to create csv files with a pattern β Generic script.
- 2010/01/04 Display the output of a command from the first line until the first instance of a regular expression.