cfg - Added quickfix window commands

This commit is contained in:
Emmanuel BENOîT 2023-06-18 16:38:51 +02:00
parent 3148837e1a
commit 46f9922bbd
No known key found for this signature in database
GPG key ID: 2356DC6956CF54EF

View file

@ -39,5 +39,9 @@ function! ToggleQuickfix(size, ...)
noautocmd silent! exec ''.l:winnr.'wincmd w'
endfunc
command! -bar QuickfixClose call ToggleQuickfix(0, 0)
command! -bar QuickfixOpen call ToggleQuickfix(0, 1)
command! -bar QuickfixToggle call ToggleQuickfix(0, 2)
nmap <silent> <F12> :call ToggleQuickfix(0)<CR>
nmap <silent> <Leader>q :call ToggleQuickfix(0)<CR>