Last Updated: February 25, 2016
·
289
· shahmirj

Vim commandline filter

In vim you can select text and pass it through command line. Best example is to use sort or uniq linux commands

Select text using <KBD>CTRL+V</KBD>, whilst selected run the following command:

:! sort

You can ofcourse use any command that can take in piped input, try the same with uniq