As pointed out in #2, some things don't work if _G.vi_mode isn't set. There's a simple workaround, but it would be nice to fix that.