aboutsummaryrefslogtreecommitdiff
path: root/vim/.vim/autoload/dyamon/qf.vim
blob: dd617497963d223a20c227b4f8d5a5669a8e56b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
" Autoload functions for QuickFix window
" Last Changed: 2019-01-27
" Author: Federico Igne <>
" License: This file is placed in the public domain.

function! dyamon#qf#toggle() abort
    if exists("g:qfOpen")
        cclose
        unlet g:qfOpen
    else
        let g:qfOpen = 1
        botright copen
        " Keep the current window focused
        wincmd p
    endif
endfunc