Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 1120

Vim command for sorting a set of lines.

4 votes
2 answers
1k views

Is there an efficient way to sort a selection of comma separated values in a single line?

first 1,2,3,17,198,232,999 and some other text second 1,2,3,4,5,71,98 and some more text So far I always do it the "pedestrian" way - in my head where possible, or yank out sort there and paste back … (I also tried splitting those into lines, sort -n, join, adjust commas,... - but this was even less efficient.) …
bdecaf's user avatar
  • 279
6 votes
3 answers
2k views

How can I sort multiline blocks in vim?

The task I have in mind is I have grown files containing multiline definitions. Currently I'm working on a file containing acronyms for latex - many entries like this, but most much more complex: \D …
bdecaf's user avatar
  • 279