Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to sort lines in Vim

📅 2015-Mar-17 ⬩ ✍️ Ashwin Nanjappa ⬩ 📚 Archive

The easiest method to sort a range of lines in Vim: visually mark the lines and then type :sort.

Tried with: Vim 7.4 and Ubuntu 14.04