[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] vi -- replace char with newline



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.