mirror of
https://github.com/vim-scripts/grep.vim.git
synced 2025-12-07 05:14:28 +08:00
Version 1.5: Don't automatically jump to the first match in the grep output.
This commit is contained in:
committed by
Able Scraper
parent
c4ae2bf4df
commit
b47670e314
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user