Skip to content

Instantly share code, notes, and snippets.

@puremourning
Created October 16, 2020 13:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save puremourning/df3a231940ac2f206f8fc87e08ae235e to your computer and use it in GitHub Desktop.
Save puremourning/df3a231940ac2f206f8fc87e08ae235e to your computer and use it in GitHub Desktop.
Vertical QuickFix windows in Vim
let cpo=&cpo
set cpo&vim
function! s:MakeVertical()
let b:ycm_no_resize = 1
wincmd L
endfunction
function! s:EnableVerticalQuickFix() abort
augroup VerticalQuickFix
au!
autocmd FileType qf call s:MakeVertical()
augroup END
endfunction
function! s:DisableVerticalQuickFix() abort
au! VerticalQuickFix
endfunction
command! VerticalQuickFix call s:EnableVerticalQuickFix()
command! VerticalQuickFixDisable call s:DisableVerticalQuickFix()
let &cpo = cpo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment