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
Written by Shahmir Javaid
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#