X-Git-Url: https://git.r.bdr.sh/rbdr/dotfiles/blobdiff_plain/e54416f3b727a89ea3bf1a28507d58681ba89c64..a40a5ec5e33473ce65da647d7eda28c8168cd1f6:/vimrc?ds=sidebyside 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()