sending vim text through Python filter

Ant antroy at
Mon Oct 23 12:35:45 CEST 2006

BartlebyScrivener wrote:
> Hello,
> I'm sure this is my fault or some Windows snafu. But using gvim 7.0 on

It's a bug in Windows. Try doing " < test.txt" from the command
line, and you'll get the same error. Try "python < test.txt"
and it should work fine. Apparently cmd.exe can't pick up the
registered file extensions.

> I'm sending standard text with the vim command :%!

You'll have to use :%!python to get the filter to work.

More information about the Python-list mailing list