Vague question, but how much of swinging onto a ship to steal and sword fighting is true? Likely none, but I'd like to know what actually happened.
Here, if you want to know more about stealing ships and battle tactics, this issue has been addressed several times in the Frequently Asked Questions about the Golden Age of Piracy. More specific questions are encouraged after taking a look through that.