junegunn / vim-easy-align

:sunflower: A Vim alignment plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Align to *backslash* ( \ ) at bash file

wow2006 opened this issue · comments

Hello, I hope problem to align using backslash
This is example:

cmake \
-G Ninja \
-D USE_EXTERNAL_ZLIB=ON \
..

I want it to be like

cmake                                          \
-G Ninja                                       \
-D USE_EXTERNAL_ZLIB=ON                        \
..

Is it legal to do that?!
Thanks

How about just doing "minus space" alignment (around the last whitespace)?

https://github.com/junegunn/vim-easy-align#examples-using-predefined-rules

You can specify the size of margin around the delimiter, but if you are trying to put the backslashes on a fixed column, like 80, easy-align does not support it. You'll have to post-process the lines after aligning them.

I am really sorry I don't know that

No problem.