Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759137AbXF2Imd (ORCPT ); Fri, 29 Jun 2007 04:42:33 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753758AbXF2ImZ (ORCPT ); Fri, 29 Jun 2007 04:42:25 -0400 Received: from mail2.sea5.speakeasy.net ([69.17.117.4]:55724 "EHLO mail2.sea5.speakeasy.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753157AbXF2ImY (ORCPT ); Fri, 29 Jun 2007 04:42:24 -0400 Message-ID: <4684C5EE.9000606@kernel.org> Date: Fri, 29 Jun 2007 01:42:22 -0700 From: Josh Triplett User-Agent: Mozilla-Thunderbird 2.0.0.4 (X11/20070622) MIME-Version: 1.0 To: Jan Engelhardt CC: Kyle Moffett , Dave Young , Li Yang-r58472 , Chris Shoemaker , Josh Triplett , linux-kernel@vger.kernel.org, akpm@linux-foundation.org Subject: Re: [OT] Vim highlighting for trailing spaces References: <46835C16.9020700@kernel.org> <989B956029373F45A0B8AF0297081890D834BE@zch01exm26.fsl.freescale.net> <7958FF64-140B-435A-8B69-A503C5C18D79@mac.com> <4684BA77.7090804@kernel.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1013 Lines: 27 Jan Engelhardt wrote: > On Jun 29 2007 00:53, Josh Triplett wrote: >>>> I actually prefer this (in .vimrc): >>>> >>>> " Show trailing whitespace and spaces before tabs >>>> hi link localWhitespaceError Error >>>> au Syntax * syn match localWhitespaceError /\(\zs\%#\|\s\)\+$/ display >>>> au Syntax * syn match localWhitespaceError / \+\ze\t/ display >>> I prefer this: >>> >>> find . -type f -print0 | xargs -0 grep -Pn '[\t ]+$' >>> >>> It is editor agnostic, and I do not have to look through all source files for >>> highlighted whitespace :-) >> And if you really want highlighting, you can always use grep --color. :) > > Been there, done that, have GREP_COLOR env variable defined! Same here. Now I just need to convince git-grep to use it. - Josh Triplett - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/