[TriLUG] Stupid VI question
Brian Weaver
cmdrclueless at gmail.com
Wed Feb 8 10:14:34 EST 2006
Rick,
try using the combination '<CTRL-V><ENTER>' for the *nl* in your substitution.
-Brian
On 2/8/06, Rick DeNatale <rick.denatale at gmail.com> wrote:
> So, I'm trying to grok VI, really I am.
>
> The other day I had a file of e-mail addresses, separated by commas. I
> wanted to put each one on it's own line.
>
> So I fired up vi(m) figuring this would be easy, just do a global
> change of comma to new line with something like:
>
> :%s/,/*nl*/g
>
> I couldn't figure out how to represent a new line in the substitution.
> Surely this is possible, isn't it? What's the right thing to replace *nl*?
>
> --
> Rick DeNatale
>
> Visit the Project Mercury Wiki Site
> http://www.mercuryspacecraft.com/
> --
> TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ : http://trilug.org/faq/
> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
>
--
/* insert witty comment here */
More information about the TriLUG
mailing list