Vim: Equal Sign

Primarily used to indent

But you can use it to “pipe” it to external command by setting the ‘equalprg’ or ‘ep’.

:set equalprg?
:set equalprg=md5

Now we can pipe input from Vim to md5 and back to Vim.

hello

when we press “==” it will cut the word “hello” pipe “hello” to md5 and output the result back to vim

b1946ac92492d2347c6235b4d2611184


Comments

Leave a Reply

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