Vim tips: nnoremap <silent> <leader>X :<C-U>windo lclose <bar> cclose<CR>. This allows to automagically close the Quickfix or Loclist window, without worrying about which kind of window we deal with. #vim
nnoremap <silent> <leader>X :<C-U>windo lclose <bar> cclose<CR>
#vim