Suppose I have this code:
width: 215px;
height: 22px;
margin-top: 3px;
background-color: white;
border: 1px solid #999999;
I want to align it this way:
width: 215px;
height: 22px;
margin-top: 3px;
background-color: white;
border: 1px solid #999999;
using Align.vim I can do :Align \s
to use whitespace as separator, but that has 2 problems
I've read through the many options Align.vim offers, but I haven't found a way to do this.
If you use Tabular, then you can just do :Tabularize /:\zs/
.
Looking at Align's description on vim.org, a similar invocation should work for it. You could try :Align :\zs
. I don't use Align, so I'm not positive.