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