Fixed vi_e in visual mode: it did not select full word at end of file

This change didn't break any existing tests, so I think it's OK.

Added one quick test for visual mode. In a separate pull request, I'll try to convert test__vi_e.py to the new testing style.