junegunn / vim-easy-align

:sunflower: A Vim alignment plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Default range % instead of current line similar to :global

kiryph opened this issue · comments

I think the situation that you want to use :EasyAlign only on the current line are quite rare and
can be still done by :.EasyAlign.

An advanced behavior has been builtin into the plugin Tabular.vim:
:Tabularize tries to automatically detect the most sensible line range:

[...] instead of requiring a range, Tabularize tries to figure out what you want to
happen. Since it knows that you want to act on lines matching a comma, it
will look upwards and downwards for lines around the current line that match a
comma, and consider all contiguous lines matching the pattern to be the range
to be acted upon. You can always override this by specifying a range, though.

Would this be feasible for easyalign as well?