sorting lines
You can sort lines with Vim's sort()
command. To sort the entire buffer, simply run:
:sort
To sort starting from line 6 to the end of the file, run: :6,$sort
You can also sort just the lines that are visually selected.
You can sort lines with Vim's sort()
command. To sort the entire buffer, simply run:
:sort
To sort starting from line 6 to the end of the file, run: :6,$sort
You can also sort just the lines that are visually selected.