Vim:打开Grep给出的线上的匹配文件?

我想在命令行上自动获得在Vim中的结果位置.有这样的功能吗?

文件打开在Vim给出的线上由grep:

% grep --colour -n checkWordInFile *
SearchToUser.java:170:  public boolean checkWordInFile(String word,File file) {
SearchToUser.java~:17:  public boolean checkWordInFile(String word,File file) {
SearchToUser.java~:41:          if(checkWordInFile(word,f))
看看“ Grep search tools integration with Vim”和“ Find in files within Vim”.基本上vim提供了这些用于搜索文件的命令:
:grep
:lgrep
:vimgrep
:lvimgrep

这些文章提供了有关其使用的更多信息.

相关文章

解决方案:解决linux下vim乱码的情况:(修改vimrc的内容)全...
Linuxvi/vim所有的UnixLike系统都会内建vi文书编辑器,其他的...
      vim正则匹配:空行:/^$/  /^[\t]*$/注释...
$select-editorSelectaneditor.Tochangelater,run'sele...
上次手贱忘了保存,这次就简单做个备忘吧,把踩过的坑记一下...
Linux之文本编译器小结vim的优势所有的UNIX-LIKE习通都会内置...