[ale] vi -- replace char with newline
Cade Thacker
cade at computerreligion.com
Thu Jul 5 10:35:01 EDT 2001
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.
More information about the Ale
mailing list