On Mon, Aug 07, 2006 at 10:59:01AM -0700, manuhack wrote: > When I use raw_input('Please type something.\n') in the python 2.4 > command line windows, it doesn't have any problem. However, when I run > the same command in vim 7 as :py raw_input('Please type something.\n'), > there is an EOFError: EOF when reading a line. Is there a way to use > that command within vim without raising errors? >
You could call vim functions indirectly: :py << EOF import vim vim.command('let vim_str=input("Please type something.\n")') py_str = vim.eval('vim_str') # now you can do something with your 'py_str' ... EOF HTH -- http://mail.python.org/mailman/listinfo/python-list