erich13’s blog

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

  • Categories

  • Recent Comments… on keyword.URL in about:config…
    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…
  • My Delicious Bookmarks

  • My Recent Tweets

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

  • Flickr 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


Leave a Reply

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

You are commenting using your 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: