if $(which mvim > /dev/null); then
  EDITOR="mvim"
elif $(which gvim > /dev/null); then
  EDITOR="gvim"
else
  EDITOR="vim"
fi

export VISUAL="$EDITOR"
export HOMEBREW_EDITOR="$EDITOR"
export GIT_EDITOR="$(which mvim || which vim) -f" # http://is.gd/hGrsF
export GEM_EDITOR=$GIT_EDITOR

export IRBRC="$HOME/.irbrc"
export JEWELER_OPTS="--rspec --gemcutter --rubyforge --reek --roodi"

#export TERM=xterm-256color
export GREP_OPTIONS='--color=auto'
export GREP_COLOR='1;32'
export CLICOLOR=1

export PAGER="vimpager"
export GIT_PAGER="less"
export NODE_PATH="/usr/local/lib/node:/usr/local/lib/node_modules:$NODE_PATH"

export ACK_COLOR_FILENAME="bold white on_black"
export ACK_COLOR_MATCH="magenta on_black"

export HISTSIZE=1000000

export REPORTTIME=2
export TIMEFMT="%*Es total, %U user, %S system, %P cpu"

if $(which mvim > /dev/null); then
  EDITOR="mvim"
elif $(which gvim > /dev/null); then
  EDITOR="gvim"
else
  EDITOR="vim"
fi

export VISUAL="$EDITOR"
export HOMEBREW_EDITOR="$EDITOR"
export GIT_EDITOR="$(which mvim || which vim) -f" # http://is.gd/hGrsF
export GEM_EDITOR=$GIT_EDITOR

export IRBRC="$HOME/.irbrc"
export JEWELER_OPTS="--rspec --gemcutter --rubyforge --reek --roodi"

#export TERM=xterm-256color
export GREP_OPTIONS='--color=auto'
export GREP_COLOR='1;32'
export CLICOLOR=1

export PAGER="less"
export GIT_PAGER="less"
export NODE_PATH="/usr/local/lib/node:/usr/local/lib/node_modules:$NODE_PATH"

export ACK_COLOR_FILENAME="bold white on_black"
export ACK_COLOR_MATCH="magenta on_black"

export HISTSIZE=1000000

export REPORTTIME=2
export TIMEFMT="%*Es total, %U user, %S system, %P cpu"

Switch back to less over vimpager
Switch back to less over vimpager
