You should be able to catch a train from Nanaimo to Victoria after taking the foot ferry from Vancouver.