diff --git a/autoload/ag.vim b/autoload/ag.vim index 432ef444..305545b8 100644 --- a/autoload/ag.vim +++ b/autoload/ag.vim @@ -73,7 +73,7 @@ function! ag#AgBuffer(cmd, args) endfunction function! ag#Ag(cmd, args) - let l:ag_executable = get(split(g:ag_prg, " "), 0) + let l:ag_executable = expand(get(split(g:ag_prg, " "), 0)) " Ensure that `ag` is installed if !executable(l:ag_executable)