alignment - Align text only on first separator in VIM -
Assume I have this code:
width: 215px; Height: 22px; Margin-top: 3px; Background color: white; Border: 1 px solid # 999999;
I want to align it like this:
width: 215px; Height: 22px; Margin-top: 3px; Background color: white; Border: 1 px solid # 999999;
Using Align.vim, I can use : align \ s
whotspace as a separator, but there are 2 problems in it
Align.vim offers option I have read through many people, but I did not find any way to do this.
If you use, you can simply : Tabularize /: \ zs /
.
Looking at the alignment details on vim.org, similar traffic should work for it. You can try: : Align: \ zs
I do not align, so I'm not positive.
Comments
Post a Comment