sending vim text through Python filter

Ant antroy at gmail.com
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 "sort.py < test.txt" from the command
line, and you'll get the same error. Try "python sort.py < 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 :%!sort.py

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




More information about the Python-list mailing list