aboutsummaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
authorBen Beltran <ben@freshout.us>2014-02-07 07:46:13 -0600
committerBen Beltran <ben@freshout.us>2014-02-07 07:46:13 -0600
commit357710836fcc85419856fa820a2e81bc89b2c0e4 (patch)
tree54f1f930572907b8f0ec0ceebab5f8fa0d158164 /vimrc
parent7afd149163abf1d6a1ce7f3a24709d3f9f2dbf29 (diff)
Updates w/new configs
Diffstat (limited to 'vimrc')
-rwxr-xr-xvimrc14
1 files changed, 14 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index a9c30a0..bc9d40b 100755
--- 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>