Vi Editor magics

Adding line number to a file with vi

open the file with vi editor


of-course there are other ways to do it with vi :)

Add empty line after every line with vi


Remove white space at the beginning of a line with vi


Sorting lines with vi

:sort u

Leave a Reply

Your email address will not be published. Required fields are marked *