diff --git a/.vimrc b/.vimrc index 69d020b..08f36e4 100644 --- a/.vimrc +++ b/.vimrc @@ -7,20 +7,20 @@ call pathogen#helptags() " ctrlp.vim Config set runtimepath^=~/.vim/bundle/ctrlp.vim map gR :call ShowRoutes() +map gv :CtrlP app/views " Command-T Config -map gv :CommandTFlush\|:CommandT app/views -map gc :CommandTFlush\|:CommandT app/controllers -map gm :CommandTFlush\|:CommandT app/models -map gh :CommandTFlush\|:CommandT app/helpers -map gl :CommandTFlush\|:CommandT lib -map gp :CommandTFlush\|:CommandT public -map gs :CommandTFlush\|:CommandT public/stylesheets/sass -map gf :CommandTFlush\|:CommandT features +map gv :CtrlP app/views +map gc :CtrlP app/controllers +map gm :CtrlP app/models +map gh :CtrlP app/helpers +map gl :CtrlP lib +map gp :CtrlP public +map gs :CtrlP public/stylesheets/sass +map gf :CtrlP features map gg :topleft 100 :split Gemfile -map gt :CommandTFlush\|:CommandTTag -map f :CommandTFlush\|:CommandT -map F :CommandTFlush\|:CommandT %% +map f :CtrlP +map F :CtrlP %% """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " BASIC EDITING CONFIGURATION @@ -150,6 +150,14 @@ function! RenameFile() endfunction map n :call RenameFile() +function! Search() + let term = input('Grep search term: ') + if term != '' + exec '!grep ' . term . ' .' + endif +endfunction +map s :call Search() + """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " PROMOTE VARIABLE TO RSPEC LET """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" diff --git a/.zshrc b/.zshrc index 8519774..281dc93 100644 --- a/.zshrc +++ b/.zshrc @@ -31,7 +31,7 @@ alias ls='ls -G' alias ll='ls -lG' alias l='ls -laG' alias duh='du -csh' -export GREP_OPTIONS="-n --color" +export GREP_OPTIONS="-nr --color" # Unbreak history export HISTSIZE=10000 @@ -41,6 +41,7 @@ export SAVEHIST=$HISTSIZE # Alias alias r=rails alias g=git +alias gco='git co' alias gst='git st' alias gci='git ci' alias gp='git push'