vem: tab behavior as described in #2289. WIP