junegunn / junegunn/vim-easy-align

Default range % instead of current line similar to :global

Open
#120 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vim Script
Stars
4.2k
Forks
122
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.