TIL: :sort in vim

Last updated: Sat May 20 2023

vim has a built-in sorting function. Specify a range or a visual selection and run :sort in command mode to sort the given lines. You can also do things like:

References