On 26 мар, 09:56, Maxim Kim <[email protected]> wrote:
> Try
> g/[;}]\s*$/-1j
>
> It works for me with:
> a.anything {
> color:#eee;
> display:block;
> width:300px;}
>
> a.anything {
> color:#eee;
> display:block;
> width:300px;
>
> }
Result:
a.anything { color:#eee; display:block; width:300px;
}
a.anything { color:#eee; display:block; width:300px;
}
Run :g/[;}]\s*$/-1j one more time to get
a.anything { color:#eee; display:block; width:300px; }
a.anything { color:#eee; display:block; width:300px; }
Or use
:g/\%([;}]\s*$\|^\s*$\)/-1j
Regards,
Maxim Kim.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---