erich13’s blog

Blogging, web 2.0, music, food, and other important stuff

TIP: Vim sort

Posted by erich13 on December 28, 2007

Being a big fan of vi*, I also use vim.

Not knowing how to sort, on a Windows system, from vim, I searched and found a Vim Wiki, where I read in VimTip588:

the simple sample in the tip can be solved by native :sort command, no plugin required.

:sort /\s\+/

and for the visual blocking condition, you need not any plugin neither. e.g. if your Visuall Block start at visual colume 7, without selecting it, just execute

:sort /\%7v/

* from BSD

Leave a Reply

You must be logged in to post a comment.