If you come to Split, first thing to do when you arrive to Split, go buy tickets in ferry. There are two companies, Jadrolinija and Krilo ticket shops are ~150m one from another. In Split you can buy tickets only on the day of departure and in Hvar you can buy tickets a day before.