Sorting Lines in VIM



To sort all lines (and remove duplicates):

:%sort u

Home