All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Wichmann, Mats D" <mats.d.wichmann@intel.com>
To: linux-ia64@vger.kernel.org
Subject: RE: [Linux-ia64] Re: trailing white space...
Date: Mon, 02 Jun 2003 18:23:51 +0000	[thread overview]
Message-ID: <marc-linux-ia64-105590723706111@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590723706105@msgid-missing>

> > Emacs users can (and should!)  consider:
> > 
> > 	(setq show-trailing-whitespace t)
> 
> Anything similar for vi and gvim?

:set list

but in either case this just shows you
the stuff, it doesn't remove it.
If it's a persistent problem, a simple
filter is easier to use.  I find Python's
rstrip string method useful for this,
i.e. if you have a line of text in 'line',

    line = line.rstrip()

saves a new copy of the line with the
trailing whitespace removed.



  parent reply	other threads:[~2003-06-02 18:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-31  6:18 [Linux-ia64] Re: trailing white space David Mosberger
2003-05-31  6:41 ` Sam Ravnborg
2003-06-02 18:23 ` Wichmann, Mats D [this message]
2003-06-02 23:16 ` Chris Wedgwood

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-linux-ia64-105590723706111@msgid-missing \
    --to=mats.d.wichmann@intel.com \
    --cc=linux-ia64@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.