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