Created
December 12, 2012 17:29
-
-
Save aar0nTw/4269800 to your computer and use it in GitHub Desktop.
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
"Qfix toggle (vim) | |
command -bang -nargs=? QFix call QFixToggle(<bang>0) | |
function! QFixToggle(forced) | |
if exists("g:qfix_win") && a:forced == 0 | |
cclose | |
unlet g:qfix_win | |
else | |
copen10 | |
letg:qfix_win=bufnr("$") | |
endif | |
endfunction | |
nnoremap <leader>q :QFix<CR> | |
autocmdBufWinEnterquickfixletg:qfix_win = bufnr("$")\w⚡" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment