Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932963AbXF2Hx6 (ORCPT ); Fri, 29 Jun 2007 03:53:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759390AbXF2Hxs (ORCPT ); Fri, 29 Jun 2007 03:53:48 -0400 Received: from mail6.sea5.speakeasy.net ([69.17.117.8]:50258 "EHLO mail6.sea5.speakeasy.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752590AbXF2Hxs (ORCPT ); Fri, 29 Jun 2007 03:53:48 -0400 Message-ID: <4684BA77.7090804@kernel.org> Date: Fri, 29 Jun 2007 00:53:27 -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> 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: 864 Lines: 25 Jan Engelhardt wrote: > On Jun 28 2007 23:11, Kyle Moffett 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. :) - 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/