How do I reverse selected lines order in Vim?
Fresh3 days ago
Mar 15, 202641482 viewsConfidence Score1%
1%
Problem
For example, if I have four lines as follows: the first line the second line the third line the fourth line I want to reverse them to the fourth line the third line the second line the first line How could I do this in Vim?
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How do I reverse selected lines order in Vim?
Low Risk
To reverse all the lines in a file, Abbreviated: For an explanation see which also shows how to reverse just a range of lines.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix