I have two questions about the replace command.
First, how do I replace a line that begins with a
pattern with a line with only \n ? I tried
:1,$ s/^pattern/\n/g
but it didn't work.
A similar question is about replacing
break;
with
{
break;
}
Regards,
S.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment