"In doing so" refers back to a specific activity that has just been mentioned. qy=in+doing+so "In this vein" refers back to a general manner or general topic that has just been mentioned. qy=in+this+vein The BNC (British National Corpus) is a good source for examples of usage.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.