Is there a way to sort a list (single column, each item separated by \r
) in the buffer using just vim?
You can use the built-in sort utility:
:sort
Or pipe the buffer to an external Unix command:
:%!sort
For more info and options see :help :sort
and man sort
.
help list-functions
. – romainl Aug 22 '15 at 14:31