Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933032AbXF2Hjw (ORCPT ); Fri, 29 Jun 2007 03:39:52 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1764445AbXF2Hjp (ORCPT ); Fri, 29 Jun 2007 03:39:45 -0400 Received: from sovereign.computergmbh.de ([85.214.69.204]:27985 "EHLO sovereign.computergmbh.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752360AbXF2Hjo (ORCPT ); Fri, 29 Jun 2007 03:39:44 -0400 Date: Fri, 29 Jun 2007 09:39:43 +0200 (CEST) From: Jan Engelhardt To: Kyle Moffett cc: Dave Young , Li Yang-r58472 , Josh Triplett , Chris Shoemaker , Josh Triplett , linux-kernel@vger.kernel.org, akpm@linux-foundation.org Subject: Re: [OT] Vim highlighting for trailing spaces In-Reply-To: <7958FF64-140B-435A-8B69-A503C5C18D79@mac.com> Message-ID: References: <46835C16.9020700@kernel.org> <989B956029373F45A0B8AF0297081890D834BE@zch01exm26.fsl.freescale.net> <7958FF64-140B-435A-8B69-A503C5C18D79@mac.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 845 Lines: 29 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 :-) > The script mentioned there *is* good for removing said whitespace, though > > Cheers, > Kyle Moffett > Jan -- - 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/