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.
Written by James Rutherford
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#