X-Git-Url: https://git.r.bdr.sh/rbdr/dotfiles/blobdiff_plain/7da00f6032b26afa3dcdee804933d4785ec48408..357710836fcc85419856fa820a2e81bc89b2c0e4:/vimrc diff --git a/vimrc b/vimrc index a9c30a0..bc9d40b 100755 --- a/vimrc +++ b/vimrc @@ -183,3 +183,17 @@ function! NumberToggle() endfunction nnoremap :call NumberToggle() + +" Find file and Find stuff to quickfix. +command -nargs=1 Qff :cexpr system('find . \| ag ') | copen + +function! ToggleCWindow() + if exists("g:qwindow") + cclose + unlet g:qwindow + else + copen + let g:qwindow = 1 + endif +endfunction +nnoremap :call ToggleCWindow()