Make tab elements inline blocks

Closes #1380
[vim] Fix :num and add unit test