I do use Ag as my grep replacement. My problem is that when I search for something that does not exist (search result empty) my quick fix windows closes automatically.
Is that normal? Would it be possible to keep it open with something like "No results found" ?
This is my config
" bind \ (backward slash) to grep shortcut " https://robots.thoughtbot.com/faster-grepping-in-vim " https://vi.stackexchange.com/questions/14923/my-ag-shortcut-chokes-on-spaces function! Ag(args) abort execute "silent! grep!" shellescape(a:args) cwindow redraw! endfunction command! -nargs=+ -complete=file Ag call Ag(<q-args>) nnoremap \ :Ag<SPACE>
Thank you for your help