技巧109-不必离开Vim也能调用grep
- Vim的grep命令给外部的grep程序提供了一层封装。
- 通过grep在多个文件中查找摸个模式,然后就可以用quickfix列表浏览这些查找结果了。
Vim内部调用grep
- :grepWaldo * Vim将在后台为我们再shell中执行 grep -n Waldo *,创建一个quickfix列表。
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help