git config --global color.diff auto

preventing ANSI escape sequences when piping to vim