Sort Lines in Vim Alphabetically for Elixir aliases and Credo

I'm a long time vim developer and have no plans to try another editor.

After working with credo for a while and needing to sort aliases alphabetically, I found that this feature is built into vim.

Let's imagine you have these aliases:

Rather than needing to focus in on alphabetizing the aliases manually to satisfy Credo, select the modules with Shift + V.

Then you can enter :sort to envoke the sort function.

This is a real time-saver when you have many files to process.

Keep in the Loop

Implore user action with this attractive form.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.