Shougo/vimshell.vim

print python user input

petobens opened this issue · 3 comments

Consider the following python file:

user_input = input('Enter some word: ')
print(user_input)

Open Gvim, and in the directory of that file run :VimShell -popup. Once the vimshell buffer opens run python bar.py. You will see, as in the GIF, that vimshell accepts the user input (foo) but when I press enter it returns (instead of printing foo). The expected behaviour is the one seen in the second GIF where I run the python file from the cmd prompt:

blahh

blah2

This has 2 completely independent issues.

  1. You are using python wrong. input is to accept user input and evaluate it. foo variable doesn't exist, so it fails
  2. Your vimshell for some reason doesn't show any STDERR outputs. This seems to be a bug or misconfiguration

Unfortunatelly, in Windows, user input featurer is not supported.
Windows does not have PTY.

Thanks @Shougo.