Skip to content

Commit

Permalink
Version 1.5 (April 28, 2005)
Browse files Browse the repository at this point in the history
  • Loading branch information
yegappan committed Nov 14, 2013
1 parent 003e228 commit ae8b9dc
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions plugin/grep.vim
Original file line number Diff line number Diff line change
@@ -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
" --------
Expand Down Expand Up @@ -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

Expand All @@ -345,9 +349,6 @@ function! s:RunGrepCmd(cmd, pattern)
botright copen
endif

" Jump to the first error
cc

call delete(tmpfile)
endfunction

Expand Down

0 comments on commit ae8b9dc

Please sign in to comment.