vim-quickrun
vim-quickrun copied to clipboard
Mapping to quit QuickRun buffer
Is there a way that I can map a key to close the QuickRun output buffer ?
Bump?
Simply q already closes it for me. Your request is about customizing that?
Well, you have to first change windows and then press q. The original poster was probably asking for help on how to streamline that.
This command enables you to close the quickrun output by \q (no matter which buffer you are in).
nnoremap <Leader>q :<C-u>bw! quickrun\ output<CR>
And FYI, this may also be helpful. You can force-quit quickrun by \Q.
nnoremap <Leader>Q :call quickrun#sweep_sessions()<CR>:<C-u>bw! quickrun\ output<CR>