On 26/03/09 07:20, Leandro N. Camargo wrote:
>
> Now, what if I want to do the reverse, tranforming this:
>
> a.anything {
> color:#eee;
> display:block;
> width:300px;
> }
>
> onto this:
>
> a.anything {color:#eee;display:block;width:300px;}
>
> ???
>
> All the best,
> Leandro.
>
What about (untested)
:%g/{/.,/}/j
meaning (if I didn't goof): Whenever a line containing { is found, join
lines from here to the next } (assuming it isn't on the same line).
Known limitation: The above won't work correctly if you have some braces
that alerady open and close on the same line.
Best regards,
Tony.
--
Megaton Man: "LOOK at them! Helpless, tender creatures, relying on
ME, waiting for ME to make my move!"
(from below): "Move your ASS, Fat-head!"
Megaton Man: "It is a MANDATE, and I am DUTY BOUND to OBEY!"
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---