Created
October 16, 2020 13:01
-
-
Save puremourning/df3a231940ac2f206f8fc87e08ae235e to your computer and use it in GitHub Desktop.
Vertical QuickFix windows in Vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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