vim Remove duplicated rows with sort :sort u Numeric sort, the 1, 2, 3, 4 ... 9, 10 way. :sort n reindent the entire file gg=G To display the name of the current file, type Ctrl-G (or press 1 then Ctrl-G for the full path). 1 Ctrl-G