Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " quickfix niceties
- " Barry Arthur, Jan 2012
- " http://stackoverflow.com/questions/1830839/how-to-open-multiple-files-in-vim-after-vimgrep
- command! -nargs=+ Qfixdo call QuickFixDo(<q-args>)
- function! QuickFixDo(cmd)
- let bufnam = {}
- for q in getqflist()
- let bufnam[q.bufnr] = bufname(q.bufnr)
- endfor
- for n in keys(bufnam)
- exe 'buffer' n
- exe a:cmd
- update
- endfor
- endfunction
- " fill quickfix windows horizontally
- augroup QF
- au!
- au FileType qf wincmd J
- augroup END
Advertisement
Add Comment
Please, Sign In to add comment