If you are wanting to see the archive of you custom posts the archive will be:
archive-vendorpost.php
When you switch to a category there is a separate template wordpress uses:
taxonomy-vendorpost_category.php
Remember also, that you’ll need to visit the permalinks page to reset them after as your code doesn’t do that for you.
I’ve tested your code on my system and everything is working properly for me.