From 357710836fcc85419856fa820a2e81bc89b2c0e4 Mon Sep 17 00:00:00 2001 From: Ben Beltran Date: Fri, 7 Feb 2014 07:46:13 -0600 Subject: Updates w/new configs --- vimrc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to '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() -- cgit