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