All of lore.kernel.org
 help / color / mirror / Atom feed
* VI Problems
@ 2002-04-14  4:32 Matt Grill
  2002-04-14  6:44 ` Karthik Vishwanath
  0 siblings, 1 reply; 2+ messages in thread
From: Matt Grill @ 2002-04-14  4:32 UTC (permalink / raw)
  To: linux-newbie

Hi,

I'm having problems doing the following in VI (due to my inexperience):

1) I want to delete all trailing 'white space' (SPACE and TAB) at the
end of all lines in the vi buffer?

2) How would you change all instances of multiple consecutive spaces to
a single space in vi?

3) How do you search for a word without regard to use of uppercase or
lowercase letters?

If anybody can give me a clue I would appreciate it.

Thanks
Matt G.


-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" 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.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: VI Problems
  2002-04-14  4:32 VI Problems Matt Grill
@ 2002-04-14  6:44 ` Karthik Vishwanath
  0 siblings, 0 replies; 2+ messages in thread
From: Karthik Vishwanath @ 2002-04-14  6:44 UTC (permalink / raw)
  To: Matt Grill; +Cc: linux-newbie

On Sun, 14 Apr 2002, Matt Grill wrote:

> 2) How would you change all instances of multiple consecutive spaces to
> a single space in vi?

:%s/\s\+/ /g

> 
> 3) How do you search for a word without regard to use of uppercase or
> lowercase letters?
> 

:set ignorecase


-Karthik.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" 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.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-04-14  6:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-14  4:32 VI Problems Matt Grill
2002-04-14  6:44 ` Karthik Vishwanath

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.