TIL: :sort in vim

Last updated: Wed Feb 05 2025

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

Reply by email!