From e54716ab50283b7f52f6af829e31a9aec6704c1a Mon Sep 17 00:00:00 2001 From: Michael Campagnaro Date: Thu, 6 Dec 2012 09:31:19 -0500 Subject: [PATCH] fix grep options --- .vimrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.vimrc b/.vimrc index 8dc07b0..4d0c5d6 100644 --- a/.vimrc +++ b/.vimrc @@ -11,7 +11,7 @@ set runtimepath^=~/.vim/bundle/ctrlp.vim let g:ctrlp_map = 'ff' let g:ctrlp_cmd = 'CtrlP' let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$' -map fR :call ShowRoutes() +map fr :call ShowRoutes() map fv :CtrlP app/views map fc :CtrlP app/controllers map fm :CtrlP app/models @@ -19,6 +19,7 @@ map fh :CtrlP app/helpers map fl :CtrlP lib map fp :CtrlP public map fs :CtrlP app/stylesheets +map ft :CtrlP test "let g:ctrlp_prompt_mappings = { " \ 'AcceptSelection("e")': [''], " \ 'AcceptSelection("t")': ['', '<2-LeftMouse>'], @@ -181,7 +182,7 @@ map n :call RenameFile() function! Search() let term = input('Grep search term: ') if term != '' - exec '!grep "' . term . '" .' + exec '!grep "' . term . '" *' endif endfunction map s :call Search()