Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " open the quickfix window if there are valid errors
- function! qf#OpenQuickfix()
- if get(g:, 'qf_auto_open_quickfix', 1)
- " get user-defined maximum height
- let max_height = get(g:, 'qf_max_height', 10) < 1 ? 10 : get(g:, 'qf_max_height', 10)
- execute get(g:, "qf_auto_resize", 1) ? 'cclose|' . min([ max_height, len(getqflist()) ]) . 'cwindow' : 'cwindow'
- echom 'Opening QuickFIX'
- endif
- endfunction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement