DEV Community

Cover image for Vim Filters

Vim Filters

Ryan Palo on March 19, 2018

Quick tip time! Let's talk about Vim filters. This is a way to execute any external command and pipe the results into your current buffer. This ...
Collapse
 
joschasa profile image
André

By the way, the last two examples can be achieved by only using vim features as well:

:sort will sort all lines in the current buffer and gU will uppercase any text given, so 'gggUG' would uppercase the whole buffer.

Collapse
 
rpalo profile image
Ryan Palo

Cool! I’ll have to put those ones on my cheat sheet! Thanks!

Collapse
 
jesswest profile image
Jess West (she/her)

This is awesome! I'm huge fan-girl of VIM and love reading tricks like this. :)

Collapse
 
rpalo profile image
Ryan Palo

Glad you like it!

Collapse
 
einenlum profile image
Yann Rabiller

Awesome! Very useful. Thanks!

Collapse
 
rrampage profile image
Raunak Ramakrishnan

This is really useful! Was not aware vim had these superpowers built-in!