erich13’s blog

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

  • Categories

  • Recent Comments

    naruto shippuden man… on keyword.URL in about:config…
    |Casinos|Casino Spie… on keyword.URL in about:config…
    Online Casinos on Blogs in Plain English
    Twitter Follow Me -… on Task: tweet: Switch to old Twi…
    youtube video downlo… on keyword.URL in about:config…
  • My Delicious Bookmarks

  • My Recent Tweets

    Error: Twitter did not respond. Please wait a few minutes and refresh this page.

  • Flickr Photos

    #longboarder

    the old and the new AKA fresh young #longboard

    #ugly

    #water #coldwater

    recharging

    SACRAMENTO JOB FAIR MAY 24, 2017 – 11:00am – 2:00pm Hilton Sacramento Arden West 2200 Harvard St, CA 95815

    More Photos

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

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: