Timeline for Sort lines ignoring leading component
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 17, 2020 at 0:38 | comment | added | knightofiam |
If you want to include commented-out lines (no space after # ): :sort /^\s*\(#\s*\)\?/
|
|
Sep 7, 2018 at 4:14 | vote | accept | mkaito | ||
Sep 4, 2018 at 14:19 | comment | added | Rich | @mkaito It's because I didn't notice/failed to account for the whitespace before the prefix in your examples. I've updated with regular expressions that now handle this correctly. | |
Sep 4, 2018 at 14:18 | history | edited | Rich | CC BY-SA 4.0 |
Account for leading whitespace
|
Sep 4, 2018 at 14:10 | comment | added | mkaito | As far as I can tell, this still does what I hoped it would not: sorting matching lines first, then non-matching ones. | |
Sep 2, 2018 at 8:21 | history | edited | Rich | CC BY-SA 4.0 |
Didn’t need to use \ze
|
Sep 1, 2018 at 22:25 | history | edited | Rich | CC BY-SA 4.0 |
added 113 characters in body
|
Sep 1, 2018 at 22:19 | history | edited | Rich | CC BY-SA 4.0 |
added 113 characters in body
|
Sep 1, 2018 at 22:14 | history | answered | Rich | CC BY-SA 4.0 |