adjust Grep command for vim7

This commit is contained in:
Tyler Starr 2024-01-02 22:15:34 -08:00
parent 162fb559c0
commit 0435853919

View File

@ -165,7 +165,7 @@ nnoremap <down> <C-x>
" https://gist.github.com/romainl/56f0c28ef953ffc157f36cc495947ab3
"
function! Grep(...)
return system(join([&grepprg] + [expandcmd(join(a:000, ' '))], ' '))
return system(join([&grepprg] + [expand(join(a:000, ' '))], ' '))
endfunction
" Check if file is valid and exists