2021-12-07

A Simple Python Code-Runner in VIM

A Vim filter is a program that accepts text at standard input, changes it in some way, and sends it to standard output (from :h filter). It can be a shell program, like sort, sed, or tr. As shown below, for instance, it's possible to remove all digit characters inside a buffer with:

   :%! tr -d 0-9