Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Vim Tip: Sort Lines Alphabetically

Tags: sort

Have a list that you need to alphabetize quickly? Vim has you covered. There’s a handy :sort command (:help sort for optional arguments) that will do just what it says on the box. All you have to do is select the lines in visual mode (v), and run :sort.

What Sort of arguments does it support? The most common are probably ! and i, which reverse the sort order and ignore case, respectively. It supports some more advanced pattern-matching stuff, but I haven’t had cause to experiment with it yet.



This post first appeared on Webmaster-Source | Blogging Tips, Webmaster Resour, please read the originial post: here

Share the post

Vim Tip: Sort Lines Alphabetically

×

Subscribe to Webmaster-source | Blogging Tips, Webmaster Resour

Get updates delivered right to your inbox!

Thank you for your subscription

×