Skip to content

align equal signs in a visual selection #3

@burnt43

Description

@burnt43
foo1 = 100
foobar2 = 5000

there should be a mapping like l= (align equals) to change it so it looks like

foo1    = 100
foobar2 = 5000

I'll need a function that can iterate over a visual selection. I'll need to use

line("'<")
line("'>'")

to get the begin and end lines of the visual selection and find the column of the furthest equal sign and change all the lines to align with that column

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions