Last Updated: February 25, 2016
·
1.303K
· jimr

Reverse the order of selected lines in vim

Select the lines you want to reverse, and type:

:!tac

which pipes the selection through the 'tac' shell command.