vim

vi / vim : Remove space at beginning and end of each lines

In this article, we will learn in vi / vim editor how can we remove all the spaces at the beginning or end of the file. Recently, we have encountered the problem where contents where copied from one file to another file with new file extension. There we found too many uneven spaces in each line at beginning and end.