You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
377 B
VimL

let g:qf_l = 0
let g:qf_g = 0
fun! ToggleQFList(global)
if a:global
if g:qf_g == 1
let g:qf_g = 0
cclose
else
let g:qf_g = 1
copen
end
else
if g:qf_l == 1
let g:qf_l = 0
lclose
else
let g:qf_l = 1
lopen
end
endif
endfun