Skip to main content

Sort Text Lines with VIM

Updated Markdown
Part of seriesTechnology

To sort text lines with VIM you first select the lines you wish to sort with visual mode and then sort them. To execute this task follow the following steps:

  • Place the cursor on the first line you wish to sort.

  • Move the cursor down into the last line you wish to sort.

  • Press: Shift + ;

  • Write the word sort.

  • Press enter.

Now these lines should be sorted out in alphabetical order.

About the author

No comments yet. Be the first to comment.