« Vim: How to print out form feeds | Main | Fictitious Web Sites from "The Confession" »

October 11, 2010

VIM: How to Sort and Remove Duplicate Lines

In VIM, you can quickly sort a list of lines and remove all the duplicates by running the following command:

:sort u

Other options for using the command.

Chris

 

 

Posted at 08:49 PM in VIM | Permalink

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d8341f85d553ef0133f4fdbd25970b

Listed below are links to weblogs that reference VIM: How to Sort and Remove Duplicate Lines:

Comments

Post a comment