[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] vi -- replace char with newline
- Subject: [ale] vi -- replace char with newline
- From: cade at computerreligion.com (Cade Thacker)
- Date: Thu, 5 Jul 2001 08:35:01 -0600 (MDT)
How do you search/replace for the newline character in vi/vim. very simple
problem, I have a classpath
export CLASSPATH=classes.zip:cade.jar:bubba.jar:hello.jar
i want to make it
export CLASSPATH=classes.zip:\
cade.jar:\
bubba.jar:\
hello.jar
So I want to search for all ':' and replace them with ':\<newline>' so I
try
:%s/:/:\\\n/g
this does not work,
can sombody tell me how to search for special characters (ie tabs,
newlines, etc)
Thanks.
--cade
"Burn your tv in your yard, and gather round it with your friends,
and warm your hands upon the fire and start again" --Toad the Wet Sprocket
--------------------------------------------------------------------------
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.