惺惺相惜

Idiom

 * 1) to have a friendship based on intellectual compatibility