How to run Unix Commands in vi/vim editor

1 Response

  1. Shawn H Corey says:

    You can filter lines through a shell command. For example, to sort some lines:

    Go the the top of the lines and press: ma

    Go to the bottom of the lines and press: !’asort
    and then RETURN.

    The lines will be sorted. 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *