Is there a way echoing a message if grep has no result and
getqflist() is empty?
I've tried this, but it doesn't work:
au QuickFixCmdPost grep call g:GrepPostActions() function! g:GrepPostActions() let qflist = getqflist() if len(qflist) > 0 "Move window to the very bottom wincmd J else "??? QuickFixCmdPost doesn't fire on empty qflist ??? echo 'No match found in '.getcwd() endif endfunction