Version 1.5: Don't automatically jump to the first match in the grep output.

This commit is contained in:
Yegappan Lakshmanan
2005-04-28 00:00:00 +00:00
committed by Able Scraper
parent c4ae2bf4df
commit b47670e314

View File

@@ -1,7 +1,7 @@
" File: grep.vim " File: grep.vim
" Author: Yegappan Lakshmanan (yegappan AT yahoo DOT com) " Author: Yegappan Lakshmanan (yegappan AT yahoo DOT com)
" Version: 1.4 " Version: 1.5
" Last Modified: October 27, 2004 " Last Modified: October 30, 2004
" "
" Overview " Overview
" -------- " --------
@@ -335,7 +335,11 @@ function! s:RunGrepCmd(cmd, pattern)
let old_efm = &efm let old_efm = &efm
set efm=%f:%\\s%#%l:%m set efm=%f:%\\s%#%l:%m
if exists(":cgetfile")
execute "silent! cgetfile " . tmpfile
else
execute "silent! cfile " . tmpfile execute "silent! cfile " . tmpfile
endif
let &efm = old_efm let &efm = old_efm
@@ -345,9 +349,6 @@ function! s:RunGrepCmd(cmd, pattern)
botright copen botright copen
endif endif
" Jump to the first error
cc
call delete(tmpfile) call delete(tmpfile)
endfunction endfunction