Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (13 sloc) 463 Bytes
command! -nargs=0 -bar Qargs execute 'args' QuickfixFilenames()
function! QuickfixFilenames()
" Building a hash ensures we get each buffer only once
let buffer_numbers = {}
for quickfix_item in getqflist()
let bufnr = quickfix_item['bufnr']
" Lines without files will appear as bufnr=0
if bufnr > 0
let buffer_numbers[bufnr] = bufname(bufnr)
endif
endfor
return join(map(values(buffer_numbers), 'fnameescape(v:val)'))
endfunction
Something went wrong with that request. Please try again.