One of rare occasion that we have to reverse the whole file or part of the file content in line order. Vim handles such cases effortlessly. This command given in below will reverse all lines in the current buffer: :g/^/m0Continue reading… Vim: Reverse all lines