vim-easy-align icon indicating copy to clipboard operation
vim-easy-align copied to clipboard

Default range % instead of current line similar to :global

Open kiryph opened this issue 7 years ago • 0 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?

kiryph avatar Aug 31 '18 16:08 kiryph