1 " toggle unite, quickfix list and location list
2 if exists("g:loaded_toggle_list")
5 let g:loaded_toggle_list = 1
8 " https://github.com/drmingdrmer/vim-toggle-quickfix/blob/master/autoload/togglequickfix.vim
9 function! s:ToggleLocationList()
15 echohl WarningMsg | echon 'No Location List' | echohl None
24 function! s:ToggleQuickfixList()
36 function! s:ToggleUnite()
37 for i in range(1, winnr('$'))
38 let name = bufname(winbufnr(i))
39 if match(name, '^\[unite\]') == 0
47 nnoremap <silent> [oq :copen<cr>
48 nnoremap <silent> ]oq :cclose<cr>
49 nnoremap <silent> coq :call <SID>ToggleQuickfixList()<CR>
50 nnoremap <silent> [ol :lopen<cr>
51 nnoremap <silent> ]ol :lclose<cr>
52 nnoremap <silent> col :call <SID>ToggleLocationList()<CR>
53 nnoremap <silent> cop :pclose<CR>