Re: [OT] Vim highlighting for trailing spaces

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Björn
Date: Friday, June 29, 2007 - 2:21 am

On 2007.06.29 01:42:22 -0700, Josh Triplett wrote:

You need to convince grep. When piping its output to less, it won't
colorize unless forced. Always forcing color via GREP_OPTIONS might
break certain use-cases, and git-grep doesn't allow to pass options. So
for me, a bash alias it is:

alias gg='GREP_OPTIONS=--color=always git-grep'

You might need to set LESS=-R in addition to that, to stop less from
stripping the color codes.

Björn
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[OT] Vim highlighting for trailing spaces, Kyle Moffett, (Thu Jun 28, 8:11 pm)
Re: [OT] Vim highlighting for trailing spaces, Jan Engelhardt, (Fri Jun 29, 12:39 am)
Re: [OT] Vim highlighting for trailing spaces, Josh Triplett, (Fri Jun 29, 12:53 am)
Re: [OT] Vim highlighting for trailing spaces, Jan Engelhardt, (Fri Jun 29, 1:01 am)
Re: [OT] Vim highlighting for trailing spaces, Josh Triplett, (Fri Jun 29, 1:42 am)
Re: [OT] Vim highlighting for trailing spaces, Björn, (Fri Jun 29, 2:21 am)
Re: [OT] Vim highlighting for trailing spaces, Dave Young, (Fri Jun 29, 2:26 am)
Re: [OT] Vim highlighting for trailing spaces, Michael Tokarev, (Fri Jun 29, 5:40 am)
Re: [OT] Vim highlighting for trailing spaces, Dmitry Torokhov, (Fri Jun 29, 5:49 am)
Re: [OT] Vim highlighting for trailing spaces, Kyle Moffett, (Fri Jun 29, 5:00 pm)