]> git.r.bdr.sh - rbdr/dotfiles/blobdiff - vimrc
Updates the prezto config
[rbdr/dotfiles] / vimrc
diff --git a/vimrc b/vimrc
index a9c30a0315cc6355a3c59f771f71faa82a6e0611..bc9d40ba4edd220f932b262660a13a8b3a08a3b9 100755 (executable)
--- a/vimrc
+++ b/vimrc
@@ -183,3 +183,17 @@ function! NumberToggle()
 endfunction
 
 nnoremap <C-n> :call NumberToggle()<cr>
+
+" Find file and Find stuff to quickfix.
+command -nargs=1 Qff :cexpr system('find . \| ag <f-args>') | copen
+
+function! ToggleCWindow()
+  if exists("g:qwindow")
+    cclose
+    unlet g:qwindow
+  else
+    copen
+    let g:qwindow = 1
+  endif
+endfunction
+nnoremap <C-h> :call ToggleCWindow()<cr>