Created
June 7, 2016 08:51
-
-
Save suewonjp/c9bc75605d4ead232261b1cdc0ef4fb6 to your computer and use it in GitHub Desktop.
[vim tip] Toggle Quickfix Window
This file contains hidden or 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
function! ToggleQuickfix() | |
let l:nr = winnr("$") | |
if l:nr == 1 | |
copen | |
else | |
cclose | |
endif | |
endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment