I would like to search for some pattern with :vimgrep in the current directory::vimgrep /pattern/ *However this returns the results by filenames ordered alphabetically.If I run :vimgrepadd the results for the current file get duplicated::vimgrep /pattern/ %:vimgrepadd /pattern/ *How can I change this so that results from the current file are always on top and not duplicated?
Calling vimgrep so that results from the current file are on top?
quickfix;vimgrep