alfredodeza / pytest.vim

Runs your UnitTests with py.test displaying red/green bars and errors
274 stars 39 forks source link

`:Pytest file delgado` requires redraw for terminal vim #13

Closed shaunduncan closed 11 years ago

shaunduncan commented 11 years ago

I've seen this happen in both terminal.app and iTerm2, but doesn't seem to happen when using MacVim. When I run :Pytest file delgado, terminal vim chokes on the redraw and I'm required to manually issue :redraw!.

FWIW, I was able to remedy this by adding redraw! after the call to silent! exe command in the Delgado function in pytest.vim. However, I lost the ability to see the ability to see messages like "py.test ==> Running tests for entire file"

alfredodeza commented 11 years ago

Can you try the fix by pulling so I can close this issue?

Ideally though, this would be more for running on gvim, as gvim doesn't have a shell. You can always shell out in terminal Vim because, well, you are already on a shell :) It is definitely more powerful

ZNBezD

shaunduncan commented 11 years ago

Looks like everything works fine for terminal vim now.

chowyunfat