X-Git-Url: https://git.r.bdr.sh/rbdr/dotfiles/blobdiff_plain/7da00f6032b26afa3dcdee804933d4785ec48408..c06591654132cbc1c241d570e02ae518882e8c67:/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()